57 lines
2.2 KiB
Java
57 lines
2.2 KiB
Java
package com.google.android.gms.common.api.internal;
|
|
|
|
import android.os.Looper;
|
|
import android.os.Message;
|
|
import android.util.Log;
|
|
import com.google.android.gms.common.api.PendingResult;
|
|
import com.google.android.gms.common.api.Status;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public final class zacz extends com.google.android.gms.internal.base.zaq {
|
|
final zada zaa;
|
|
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public zacz(zada zadaVar, Looper looper) {
|
|
super(looper);
|
|
this.zaa = zadaVar;
|
|
}
|
|
|
|
@Override // android.os.Handler
|
|
public final void handleMessage(Message message) {
|
|
Object obj;
|
|
zada zadaVar;
|
|
int i = message.what;
|
|
if (i != 0) {
|
|
if (i == 1) {
|
|
RuntimeException runtimeException = (RuntimeException) message.obj;
|
|
String valueOf = String.valueOf(runtimeException.getMessage());
|
|
Log.e("TransformedResultImpl", valueOf.length() != 0 ? "Runtime exception on the transformation worker thread: ".concat(valueOf) : new String("Runtime exception on the transformation worker thread: "));
|
|
throw runtimeException;
|
|
}
|
|
int i2 = message.what;
|
|
StringBuilder sb = new StringBuilder(70);
|
|
sb.append("TransformationResultHandler received unknown message type: ");
|
|
sb.append(i2);
|
|
Log.e("TransformedResultImpl", sb.toString());
|
|
return;
|
|
}
|
|
PendingResult<?> pendingResult = (PendingResult) message.obj;
|
|
obj = this.zaa.zae;
|
|
synchronized (obj) {
|
|
zadaVar = this.zaa.zab;
|
|
zada zadaVar2 = (zada) Preconditions.checkNotNull(zadaVar);
|
|
if (pendingResult != null) {
|
|
if (!(pendingResult instanceof zacp)) {
|
|
zadaVar2.zai(pendingResult);
|
|
} else {
|
|
zadaVar2.zaj(((zacp) pendingResult).zaa());
|
|
}
|
|
} else {
|
|
zadaVar2.zaj(new Status(13, "Transform returned null"));
|
|
}
|
|
}
|
|
}
|
|
}
|