50 lines
1.8 KiB
Java
50 lines
1.8 KiB
Java
package c.i.a.f.e.h.j;
|
|
|
|
import android.os.DeadObjectException;
|
|
import android.os.RemoteException;
|
|
import androidx.annotation.NonNull;
|
|
import c.i.a.f.e.h.a;
|
|
import c.i.a.f.e.h.a.b;
|
|
import c.i.a.f.e.h.c;
|
|
import c.i.a.f.e.h.h;
|
|
import c.i.a.f.e.k.z;
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import com.google.android.gms.common.api.Status;
|
|
import com.google.android.gms.common.api.internal.BasePendingResult;
|
|
/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */
|
|
public abstract class d<R extends h, A extends a.b> extends BasePendingResult<R> implements e<R> {
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public d(@NonNull a<?> aVar, @NonNull c cVar) {
|
|
super(cVar);
|
|
AnimatableValueParser.z(cVar, "GoogleApiClient must not be null");
|
|
AnimatableValueParser.z(aVar, "Api must not be null");
|
|
if (aVar.b == null) {
|
|
throw new IllegalStateException("This API was constructed with null client keys. This should not be possible.");
|
|
}
|
|
}
|
|
|
|
@Override // c.i.a.f.e.h.j.e
|
|
public final void a(@NonNull Status status) {
|
|
AnimatableValueParser.p(!status.v0(), "Failed result must not be success");
|
|
b(d(status));
|
|
}
|
|
|
|
public abstract void k(@NonNull A a) throws RemoteException;
|
|
|
|
public final void l(@NonNull A a) throws DeadObjectException {
|
|
if (!(a instanceof z)) {
|
|
try {
|
|
k(a);
|
|
} catch (DeadObjectException e) {
|
|
a(new Status(8, e.getLocalizedMessage(), null));
|
|
throw e;
|
|
} catch (RemoteException e2) {
|
|
a(new Status(8, e2.getLocalizedMessage(), null));
|
|
}
|
|
} else {
|
|
z zVar = (z) a;
|
|
throw new NoSuchMethodError();
|
|
}
|
|
}
|
|
}
|