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