bug fix: remove crash with sign out google
This commit is contained in:
parent
04a804cf79
commit
d73965730c
@ -287,10 +287,14 @@ public class MainActivity extends UnityPlayerActivity
|
||||
}
|
||||
|
||||
public void signOutGoogle(String funId) {
|
||||
mGoogleSignInClient.signOut()
|
||||
.addOnCompleteListener(this, task -> {
|
||||
// ...
|
||||
});
|
||||
if (isGooglePlayServicesAvailable()) {
|
||||
if (mGoogleSignInClient != null) {
|
||||
mGoogleSignInClient.signOut()
|
||||
.addOnCompleteListener(this, task -> {
|
||||
// ...
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void handleSignInResult(Task<GoogleSignInAccount> completedTask) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user