87 lines
3.6 KiB
Java
87 lines
3.6 KiB
Java
package c.i.a.f.e.h.j;
|
|
|
|
import android.app.Activity;
|
|
import android.app.AlertDialog;
|
|
import android.app.PendingIntent;
|
|
import android.content.Context;
|
|
import android.content.DialogInterface;
|
|
import android.content.Intent;
|
|
import android.content.IntentFilter;
|
|
import android.widget.ProgressBar;
|
|
import androidx.annotation.MainThread;
|
|
import c.i.a.f.e.e;
|
|
import c.i.a.f.e.k.m;
|
|
import com.google.android.gms.common.ConnectionResult;
|
|
import com.google.android.gms.common.GoogleApiAvailability;
|
|
import com.google.android.gms.common.api.GoogleApiActivity;
|
|
import java.util.Objects;
|
|
/* compiled from: com.google.android.gms:play-services-base@@17.3.0 */
|
|
public final class t0 implements Runnable {
|
|
public final q0 i;
|
|
public final /* synthetic */ r0 j;
|
|
|
|
public t0(r0 r0Var, q0 q0Var) {
|
|
this.j = r0Var;
|
|
this.i = q0Var;
|
|
}
|
|
|
|
@Override // java.lang.Runnable
|
|
@MainThread
|
|
public final void run() {
|
|
if (this.j.j) {
|
|
ConnectionResult connectionResult = this.i.b;
|
|
if (connectionResult.v0()) {
|
|
r0 r0Var = this.j;
|
|
j jVar = r0Var.i;
|
|
Activity b = r0Var.b();
|
|
PendingIntent pendingIntent = connectionResult.l;
|
|
Objects.requireNonNull(pendingIntent, "null reference");
|
|
int i = this.i.a;
|
|
int i2 = GoogleApiActivity.i;
|
|
Intent intent = new Intent(b, GoogleApiActivity.class);
|
|
intent.putExtra("pending_intent", pendingIntent);
|
|
intent.putExtra("failing_client_id", i);
|
|
intent.putExtra("notify_manager", false);
|
|
jVar.startActivityForResult(intent, 1);
|
|
} else if (this.j.m.d(connectionResult.k)) {
|
|
r0 r0Var2 = this.j;
|
|
GoogleApiAvailability googleApiAvailability = r0Var2.m;
|
|
Activity b2 = r0Var2.b();
|
|
r0 r0Var3 = this.j;
|
|
googleApiAvailability.j(b2, r0Var3.i, connectionResult.k, r0Var3);
|
|
} else if (connectionResult.k == 18) {
|
|
Activity b3 = this.j.b();
|
|
r0 r0Var4 = this.j;
|
|
ProgressBar progressBar = new ProgressBar(b3, null, 16842874);
|
|
progressBar.setIndeterminate(true);
|
|
progressBar.setVisibility(0);
|
|
AlertDialog.Builder builder = new AlertDialog.Builder(b3);
|
|
builder.setView(progressBar);
|
|
builder.setMessage(m.e(b3, 18));
|
|
builder.setPositiveButton("", (DialogInterface.OnClickListener) null);
|
|
AlertDialog create = builder.create();
|
|
GoogleApiAvailability.h(b3, create, "GooglePlayServicesUpdatingDialog", r0Var4);
|
|
r0 r0Var5 = this.j;
|
|
GoogleApiAvailability googleApiAvailability2 = r0Var5.m;
|
|
Context applicationContext = r0Var5.b().getApplicationContext();
|
|
s0 s0Var = new s0(this, create);
|
|
Objects.requireNonNull(googleApiAvailability2);
|
|
IntentFilter intentFilter = new IntentFilter("android.intent.action.PACKAGE_ADDED");
|
|
intentFilter.addDataScheme("package");
|
|
a0 a0Var = new a0(s0Var);
|
|
applicationContext.registerReceiver(a0Var, intentFilter);
|
|
a0Var.a = applicationContext;
|
|
if (!e.b(applicationContext, "com.google.android.gms")) {
|
|
this.j.m();
|
|
if (create.isShowing()) {
|
|
create.dismiss();
|
|
}
|
|
a0Var.a();
|
|
}
|
|
} else {
|
|
this.j.l(connectionResult, this.i.a);
|
|
}
|
|
}
|
|
}
|
|
}
|