67 lines
2.3 KiB
Java
67 lines
2.3 KiB
Java
|
package com.google.android.gms.common.api.internal;
|
||
|
|
||
|
import android.os.Handler;
|
||
|
import android.util.Log;
|
||
|
import com.google.android.gms.common.ConnectionResult;
|
||
|
import com.google.android.gms.common.api.Api;
|
||
|
import com.google.android.gms.common.api.Scope;
|
||
|
import com.google.android.gms.common.internal.BaseGmsClient;
|
||
|
import com.google.android.gms.common.internal.IAccountAccessor;
|
||
|
import java.util.Map;
|
||
|
import java.util.Set;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class zabu implements BaseGmsClient.ConnectionProgressReportCallbacks, zacs {
|
||
|
final GoogleApiManager zaa;
|
||
|
private final Api.Client zab;
|
||
|
private final ApiKey<?> zac;
|
||
|
private IAccountAccessor zad = null;
|
||
|
private Set<Scope> zae = null;
|
||
|
private boolean zaf = false;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: private */
|
||
|
public final void zag() {
|
||
|
IAccountAccessor iAccountAccessor;
|
||
|
if (!this.zaf || (iAccountAccessor = this.zad) == null) {
|
||
|
return;
|
||
|
}
|
||
|
this.zab.getRemoteService(iAccountAccessor, this.zae);
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.common.internal.BaseGmsClient.ConnectionProgressReportCallbacks
|
||
|
public final void onReportServiceBinding(ConnectionResult connectionResult) {
|
||
|
Handler handler;
|
||
|
handler = this.zaa.zat;
|
||
|
handler.post(new zabt(this, connectionResult));
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.common.api.internal.zacs
|
||
|
public final void zae(ConnectionResult connectionResult) {
|
||
|
Map map;
|
||
|
map = this.zaa.zap;
|
||
|
zabq zabqVar = (zabq) map.get(this.zac);
|
||
|
if (zabqVar != null) {
|
||
|
zabqVar.zas(connectionResult);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // com.google.android.gms.common.api.internal.zacs
|
||
|
public final void zaf(IAccountAccessor iAccountAccessor, Set<Scope> set) {
|
||
|
if (iAccountAccessor == null || set == null) {
|
||
|
Log.wtf("GoogleApiManager", "Received null response from onSignInSuccess", new Exception());
|
||
|
zae(new ConnectionResult(4));
|
||
|
} else {
|
||
|
this.zad = iAccountAccessor;
|
||
|
this.zae = set;
|
||
|
zag();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
public zabu(GoogleApiManager googleApiManager, Api.Client client, ApiKey<?> apiKey) {
|
||
|
this.zaa = googleApiManager;
|
||
|
this.zab = client;
|
||
|
this.zac = apiKey;
|
||
|
}
|
||
|
}
|