-
Notifications
You must be signed in to change notification settings - Fork 966
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
134 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...PlayGamesPluginSupport/src/main/java/com/google/games/bridge/CompareProfileUiRequest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.google.games.bridge; | ||
|
||
import android.app.Activity; | ||
import android.content.Intent; | ||
import com.google.android.gms.auth.api.signin.GoogleSignInAccount; | ||
import com.google.android.gms.games.Games; | ||
import com.google.android.gms.games.PlayersClient; | ||
import com.google.android.gms.games.Player; | ||
import com.google.android.gms.tasks.Task; | ||
|
||
class CompareProfileUiRequest extends SimpleUiRequest { | ||
private static final String TAG = "CompareProfileUiRequest"; | ||
private Player player; | ||
|
||
CompareProfileUiRequest(Player player) { | ||
this.player = player; | ||
} | ||
|
||
@Override | ||
protected Task<Intent> getIntent(Activity activity) { | ||
GoogleSignInAccount account = HelperFragment.getAccount(activity); | ||
PlayersClient playersClient = Games.getPlayersClient(activity, account); | ||
return playersClient.getCompareProfileIntent(player); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters