53 lines
1.8 KiB
Java
53 lines
1.8 KiB
Java
|
package com.google.android.gms.common.api.internal;
|
||
|
|
||
|
import android.os.Bundle;
|
||
|
import com.google.android.gms.common.ConnectionResult;
|
||
|
import com.google.android.gms.common.api.GoogleApiClient;
|
||
|
import com.google.android.gms.common.internal.ClientSettings;
|
||
|
import com.google.android.gms.common.internal.Preconditions;
|
||
|
import java.util.concurrent.locks.Lock;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
final class zaat implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener {
|
||
|
final zaaw zaa;
|
||
|
|
||
|
@Override // com.google.android.gms.common.api.internal.ConnectionCallbacks
|
||
|
public final void onConnected(Bundle bundle) {
|
||
|
ClientSettings clientSettings;
|
||
|
com.google.android.gms.signin.zae zaeVar;
|
||
|
clientSettings = this.zaa.zar;
|
||
|
zaeVar = this.zaa.zak;
|
||
|
((com.google.android.gms.signin.zae) Preconditions.checkNotNull(zaeVar)).zad(new zaar(this.zaa));
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.common.api.internal.OnConnectionFailedListener
|
||
|
public final void onConnectionFailed(ConnectionResult connectionResult) {
|
||
|
Lock lock;
|
||
|
Lock lock2;
|
||
|
boolean zaI;
|
||
|
lock = this.zaa.zab;
|
||
|
lock.lock();
|
||
|
try {
|
||
|
zaI = this.zaa.zaI(connectionResult);
|
||
|
if (!zaI) {
|
||
|
this.zaa.zaD(connectionResult);
|
||
|
} else {
|
||
|
this.zaa.zaA();
|
||
|
this.zaa.zaF();
|
||
|
}
|
||
|
} finally {
|
||
|
lock2 = this.zaa.zab;
|
||
|
lock2.unlock();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.common.api.internal.ConnectionCallbacks
|
||
|
public final void onConnectionSuspended(int i) {
|
||
|
}
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public /* synthetic */ zaat(zaaw zaawVar, zaas zaasVar) {
|
||
|
this.zaa = zaawVar;
|
||
|
}
|
||
|
}
|