discord-jadx/app/src/main/java/c/i/a/f/e/h/j/z.java

48 lines
1.5 KiB
Java

package c.i.a.f.e.h.j;
import android.util.Log;
import c.i.a.f.e.h.a;
import c.i.a.f.e.h.j.g;
import com.google.android.gms.common.ConnectionResult;
/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */
public final class z implements Runnable {
public final /* synthetic */ ConnectionResult i;
public final /* synthetic */ g.b j;
public z(g.b bVar, ConnectionResult connectionResult) {
this.j = bVar;
this.i = connectionResult;
}
@Override // java.lang.Runnable
public final void run() {
c.i.a.f.e.k.g gVar;
g.b bVar = this.j;
g.a<?> aVar = g.this.f1036s.get(bVar.b);
if (aVar != null) {
if (this.i.w0()) {
g.b bVar2 = this.j;
bVar2.e = true;
if (bVar2.a.o()) {
g.b bVar3 = this.j;
if (bVar3.e && (gVar = bVar3.f1039c) != null) {
bVar3.a.b(gVar, bVar3.d);
return;
}
return;
}
try {
a.f fVar = this.j.a;
fVar.b(null, fVar.a());
} catch (SecurityException e) {
Log.e("GoogleApiManager", "Failed to get service from broker. ", e);
this.j.a.c("Failed to get service from broker.");
aVar.d(new ConnectionResult(10), null);
}
} else {
aVar.d(this.i, null);
}
}
}
}