Skip to content

Commit b9929ba

Browse files
committed
in Type a Number sample, always sign in silently when resuming
Change-Id: Ia9f664ac3c279c3c4e67b4426ffdda8d09d3d0e4
1 parent d830f73 commit b9929ba

File tree

1 file changed

+1
-3
lines changed
  • BasicSamples/TypeANumber/src/main/java/com/google/example/games/tanc

1 file changed

+1
-3
lines changed

BasicSamples/TypeANumber/src/main/java/com/google/example/games/tanc/MainActivity.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,7 @@ protected void onResume() {
174174

175175
// Since the state of the signed in user can change when the activity is not active
176176
// it is recommended to try and sign in silently from when the app resumes.
177-
if (!isSignedIn()) {
178-
signInSilently();
179-
}
177+
signInSilently();
180178
}
181179

182180
private void signOut() {

0 commit comments

Comments
 (0)