65 lines
2.4 KiB
Java
65 lines
2.4 KiB
Java
package c.i.a.f.e.k;
|
|
|
|
import android.content.ComponentName;
|
|
import android.os.Handler;
|
|
import android.os.Message;
|
|
import android.util.Log;
|
|
import c.i.a.f.e.k.e;
|
|
import java.util.Objects;
|
|
/* compiled from: com.google.android.gms:play-services-basement@@17.4.0 */
|
|
public final class f0 implements Handler.Callback {
|
|
public final /* synthetic */ e0 i;
|
|
|
|
public f0(e0 e0Var, d0 d0Var) {
|
|
this.i = e0Var;
|
|
}
|
|
|
|
@Override // android.os.Handler.Callback
|
|
public final boolean handleMessage(Message message) {
|
|
int i = message.what;
|
|
if (i == 0) {
|
|
synchronized (this.i.f1057c) {
|
|
e.a aVar = (e.a) message.obj;
|
|
g0 g0Var = this.i.f1057c.get(aVar);
|
|
if (g0Var != null && g0Var.i.isEmpty()) {
|
|
if (g0Var.k) {
|
|
g0Var.o.e.removeMessages(1, g0Var.m);
|
|
e0 e0Var = g0Var.o;
|
|
e0Var.f.c(e0Var.d, g0Var);
|
|
g0Var.k = false;
|
|
g0Var.j = 2;
|
|
}
|
|
this.i.f1057c.remove(aVar);
|
|
}
|
|
}
|
|
return true;
|
|
} else if (i != 1) {
|
|
return false;
|
|
} else {
|
|
synchronized (this.i.f1057c) {
|
|
e.a aVar2 = (e.a) message.obj;
|
|
g0 g0Var2 = this.i.f1057c.get(aVar2);
|
|
if (g0Var2 != null && g0Var2.j == 3) {
|
|
String valueOf = String.valueOf(aVar2);
|
|
StringBuilder sb = new StringBuilder(valueOf.length() + 47);
|
|
sb.append("Timeout waiting for ServiceConnection callback ");
|
|
sb.append(valueOf);
|
|
Log.e("GmsClientSupervisor", sb.toString(), new Exception());
|
|
ComponentName componentName = g0Var2.n;
|
|
if (componentName == null) {
|
|
Objects.requireNonNull(aVar2);
|
|
componentName = null;
|
|
}
|
|
if (componentName == null) {
|
|
String str = aVar2.f1056c;
|
|
Objects.requireNonNull(str, "null reference");
|
|
componentName = new ComponentName(str, "unknown");
|
|
}
|
|
g0Var2.onServiceDisconnected(componentName);
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
}
|
|
}
|