File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
ButtonClicker/src/main/java/com/google/example/games/bc Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -639,6 +639,8 @@ public void onSuccess(Player player) {
639639 }
640640 }
641641 );
642+
643+ switchToMainScreen ();
642644 }
643645
644646 // register listener so we are notified if we receive an invitation to play
@@ -654,7 +656,7 @@ public void onSuccess(Player player) {
654656 public void onSuccess (Bundle hint ) {
655657 if (hint != null ) {
656658 Invitation invitation =
657- hint .getParcelable (Multiplayer .EXTRA_TURN_BASED_MATCH );
659+ hint .getParcelable (Multiplayer .EXTRA_INVITATION );
658660
659661 if (invitation != null && invitation .getInvitationId () != null ) {
660662 // retrieve and cache the invitation ID
@@ -665,8 +667,6 @@ public void onSuccess(Bundle hint) {
665667 }
666668 })
667669 .addOnFailureListener (createFailureListener ("There was a problem getting the activation hint!" ));
668-
669- switchToMainScreen ();
670670 }
671671
672672 private OnFailureListener createFailureListener (final String string ) {
You can’t perform that action at this time.
0 commit comments