.class public abstract Lp5/q;
.super Ljava/lang/Object;
.source ""

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# direct methods
.method public constructor <init>()V
    .registers 1

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/content/DialogInterface;I)V
    .registers 6

    :try_start_0
    move-object p2, p0

    check-cast p2, Lp5/p;

    .line 1
    iget-object v0, p2, Lp5/p;->r:Landroid/content/Intent;

    if-eqz v0, :cond_11

    iget-object v1, p2, Lp5/p;->s:Landroid/app/Activity;

    iget p2, p2, Lp5/p;->t:I

    invoke-virtual {v1, v0, p2}, Landroid/app/Activity;->startActivityForResult(Landroid/content/Intent;I)V
    :try_end_e
    .catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_e} :catch_f
    .catchall {:try_start_0 .. :try_end_e} :catchall_2d

    goto :goto_11

    :catch_f
    move-exception p2

    goto :goto_15

    .line 2
    :cond_11
    :goto_11
    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    return-void

    :goto_15
    :try_start_15
    const-string v0, "Failed to start resolution intent."

    sget-object v1, Landroid/os/Build;->FINGERPRINT:Ljava/lang/String;

    const-string v2, "generic"

    invoke-virtual {v1, v2}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v1
    :try_end_1f
    .catchall {:try_start_15 .. :try_end_1f} :catchall_2d

    const/4 v2, 0x1

    if-ne v2, v1, :cond_24

    const-string v0, "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."

    :cond_24
    :try_start_24
    const-string v1, "DialogRedirect"

    invoke-static {v1, v0, p2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
    :try_end_29
    .catchall {:try_start_24 .. :try_end_29} :catchall_2d

    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    return-void

    :catchall_2d
    move-exception p2

    invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V

    throw p2
.end method
