44 lines
1.4 KiB
Java
44 lines
1.4 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.Api;
|
|
import com.google.android.gms.common.api.GoogleApiClient;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class zat implements GoogleApiClient.ConnectionCallbacks, GoogleApiClient.OnConnectionFailedListener {
|
|
public final Api<?> zaa;
|
|
private final boolean zab;
|
|
private zau zac;
|
|
|
|
private final zau zab() {
|
|
Preconditions.checkNotNull(this.zac, "Callbacks must be attached to a ClientConnectionHelper instance before connecting the client.");
|
|
return this.zac;
|
|
}
|
|
|
|
@Override // com.google.android.gms.common.api.internal.ConnectionCallbacks
|
|
public final void onConnected(Bundle bundle) {
|
|
zab().onConnected(bundle);
|
|
}
|
|
|
|
@Override // com.google.android.gms.common.api.internal.OnConnectionFailedListener
|
|
public final void onConnectionFailed(ConnectionResult connectionResult) {
|
|
zab().zaa(connectionResult, this.zaa, this.zab);
|
|
}
|
|
|
|
@Override // com.google.android.gms.common.api.internal.ConnectionCallbacks
|
|
public final void onConnectionSuspended(int i) {
|
|
zab().onConnectionSuspended(i);
|
|
}
|
|
|
|
public final void zaa(zau zauVar) {
|
|
this.zac = zauVar;
|
|
}
|
|
|
|
public zat(Api<?> api, boolean z) {
|
|
this.zaa = api;
|
|
this.zab = z;
|
|
}
|
|
}
|