39 lines
1.4 KiB
Java
39 lines
1.4 KiB
Java
|
package com.google.android.gms.common.internal;
|
||
|
|
||
|
import android.app.Activity;
|
||
|
import android.content.ActivityNotFoundException;
|
||
|
import android.content.DialogInterface;
|
||
|
import android.content.Intent;
|
||
|
import android.os.Build;
|
||
|
import android.util.Log;
|
||
|
import androidx.fragment.app.Fragment;
|
||
|
import com.google.android.gms.common.api.internal.LifecycleFragment;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public abstract class zag implements DialogInterface.OnClickListener {
|
||
|
@Override // android.content.DialogInterface.OnClickListener
|
||
|
public final void onClick(DialogInterface dialogInterface, int i) {
|
||
|
try {
|
||
|
zaa();
|
||
|
} catch (ActivityNotFoundException e) {
|
||
|
Log.e("DialogRedirect", true == Build.FINGERPRINT.contains("generic") ? "Failed to start resolution intent. This may occur when resolving Google Play services connection issues on emulators with Google APIs but not Google Play Store." : "Failed to start resolution intent.", e);
|
||
|
} finally {
|
||
|
dialogInterface.dismiss();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
protected abstract void zaa();
|
||
|
|
||
|
public static zag zad(LifecycleFragment lifecycleFragment, Intent intent, int i) {
|
||
|
return new zaf(intent, lifecycleFragment, 2);
|
||
|
}
|
||
|
|
||
|
public static zag zac(Fragment fragment, Intent intent, int i) {
|
||
|
return new zae(intent, fragment, i);
|
||
|
}
|
||
|
|
||
|
public static zag zab(Activity activity, Intent intent, int i) {
|
||
|
return new zad(intent, activity, i);
|
||
|
}
|
||
|
}
|