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) {
|
public void signOutGoogle(String funId) {
|
||||||
mGoogleSignInClient.signOut()
|
if (isGooglePlayServicesAvailable()) {
|
||||||
.addOnCompleteListener(this, task -> {
|
if (mGoogleSignInClient != null) {
|
||||||
// ...
|
mGoogleSignInClient.signOut()
|
||||||
});
|
.addOnCompleteListener(this, task -> {
|
||||||
|
// ...
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void handleSignInResult(Task<GoogleSignInAccount> completedTask) {
|
private void handleSignInResult(Task<GoogleSignInAccount> completedTask) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user