granularity level: instruction

		.class public Lcom/google/android/gms/common/api/GoogleApiActivity;
.super Landroid/app/Activity;
.source "SourceFile"
.implements Landroid/content/DialogInterface$OnCancelListener;

.annotation build Lcom/google/android/gms/common/annotation/KeepName;
.end annotation

.field public static final synthetic b:I
.field public a:I


.method public constructor <init>()V
	.locals 1

	invoke-direct {p0}, Landroid/app/Activity;-><init>()V
	const/4 v0, 0x0
	iput v0, p0, Lcom/google/android/gms/common/api/GoogleApiActivity;->a:I
	return-void
.end method

.method public final onActivityResult(IILandroid/content/Intent;)V
	.locals 3

	invoke-super {p0, p1, p2, p3}, Landroid/app/Activity;->onActivityResult(IILandroid/content/Intent;)V
	const/4 v0, 0x0
	const/4 v1, 0x1
	if-ne p1, v1, :cond_2
	invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
	move-result-object p1
	const-string v2, "notify_manager"
	invoke-virtual {p1, v2, v1}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
	move-result p1
	iput v0, p0, Lcom/google/android/gms/common/api/GoogleApiActivity;->a:I
	invoke-virtual {p0, p2, p3}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V
	if-eqz p1, :cond_3
	invoke-static {p0}, Lz/e;->e(Landroid/content/Context;)Lz/e;
	move-result-object p1
	const/4 p3, -0x1
	if-eq p2, p3, :cond_1
	if-eqz p2, :cond_0
	goto :goto_0
	:cond_0
	new-instance p2, Lx/a;
	const/16 v0, 0xd
	const/4 v1, 0x0
	invoke-direct {p2, v0, v1}, Lx/a;-><init>(ILandroid/app/PendingIntent;)V
	invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
	move-result-object v0
	const-string v1, "failing_client_id"
	invoke-virtual {v0, v1, p3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
	move-result p3
	invoke-virtual {p1, p2, p3}, Lz/e;->f(Lx/a;I)V
	goto :goto_0
	:cond_1
	iget-object p1, p1, Lz/e;->m:Lh0/d;
	const/4 p2, 0x3
	invoke-virtual {p1, p2}, Landroid/os/Handler;->obtainMessage(I)Landroid/os/Message;
	move-result-object p2
	invoke-virtual {p1, p2}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z
	goto :goto_0
	:cond_2
	const/4 v1, 0x2
	if-ne p1, v1, :cond_3
	iput v0, p0, Lcom/google/android/gms/common/api/GoogleApiActivity;->a:I
	invoke-virtual {p0, p2, p3}, Landroid/app/Activity;->setResult(ILandroid/content/Intent;)V
	:cond_3
	:goto_0
	invoke-virtual {p0}, Landroid/app/Activity;->finish()V
	return-void
.end method

.method public final onCancel(Landroid/content/DialogInterface;)V
	.locals 0

	const/4 p1, 0x0
	iput p1, p0, Lcom/google/android/gms/common/api/GoogleApiActivity;->a:I
	invoke-virtual {p0, p1}, Landroid/app/Activity;->setResult(I)V
	invoke-virtual {p0}, Landroid/app/Activity;->finish()V
	return-void
.end method

.method public final onCreate(Landroid/os/Bundle;)V
	.locals 10

	invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V
	if-eqz p1, :cond_0
	const-string v0, "resolution"
	invoke-virtual {p1, v0}, Landroid/os/BaseBundle;->getInt(Ljava/lang/String;)I
	move-result p1
	iput p1, p0, Lcom/google/android/gms/common/api/GoogleApiActivity;->a:I
	:cond_0
	iget p1, p0, Lcom/google/android/gms/common/api/GoogleApiActivity;->a:I
	const/4 v0, 0x1
	if-eq p1, v0, :cond_7
	invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
	move-result-object p1
	invoke-virtual {p1}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
	move-result-object p1
	const-string v1, "GoogleApiActivity"
	if-nez p1, :cond_1
	const-string p1, "Activity started without extras"
	goto :goto_0
	:cond_1
	const-string v2, "pending_intent"
	invoke-virtual {p1, v2}, Landroid/os/BaseBundle;->get(Ljava/lang/String;)Ljava/lang/Object;
	move-result-object v2
	check-cast v2, Landroid/app/PendingIntent;
	const-string v3, "error_code"
	invoke-virtual {p1, v3}, Landroid/os/BaseBundle;->get(Ljava/lang/String;)Ljava/lang/Object;
	move-result-object v3
	check-cast v3, Ljava/lang/Integer;
	if-nez v2, :cond_3
	if-eqz v3, :cond_2
	goto :goto_1
	:cond_2
	const-string p1, "Activity started without resolution"
	:goto_0
	invoke-static {v1, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
	goto/16 :goto_3
	:goto_1
	:cond_3
	if-eqz v2, :cond_6
	:try_start_0
	invoke-virtual {v2}, Landroid/app/PendingIntent;->getIntentSender()Landroid/content/IntentSender;
	move-result-object v4
	const/4 v5, 0x1
	const/4 v6, 0x0
	const/4 v7, 0x0
	const/4 v8, 0x0
	const/4 v9, 0x0
	move-object v3, p0
	invoke-virtual/range {v3 .. v9}, Landroid/app/Activity;->startIntentSenderForResult(Landroid/content/IntentSender;ILandroid/content/Intent;III)V
	iput v0, p0, Lcom/google/android/gms/common/api/GoogleApiActivity;->a:I
	:try_end_0
	.catch Landroid/content/ActivityNotFoundException; {:try_start_0 .. :try_end_0} :catch_1
	.catch Landroid/content/IntentSender$SendIntentException; {:try_start_0 .. :try_end_0} :catch_0
	goto :goto_4
	:catch_0
	move-exception p1
	const-string v0, "Failed to launch pendingIntent"
	invoke-static {v1, v0, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	goto :goto_3
	:catch_1
	move-exception v3
	const-string v4, "notify_manager"
	invoke-virtual {p1, v4, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
	move-result p1
	if-eqz p1, :cond_4
	invoke-static {p0}, Lz/e;->e(Landroid/content/Context;)Lz/e;
	move-result-object p1
	new-instance v1, Lx/a;
	const/16 v2, 0x16
	const/4 v3, 0x0
	invoke-direct {v1, v2, v3}, Lx/a;-><init>(ILandroid/app/PendingIntent;)V
	invoke-virtual {p0}, Landroid/app/Activity;->getIntent()Landroid/content/Intent;
	move-result-object v2
	const/4 v3, -0x1
	const-string v4, "failing_client_id"
	invoke-virtual {v2, v4, v3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I
	move-result v2
	invoke-virtual {p1, v1, v2}, Lz/e;->f(Lx/a;I)V
	goto :goto_2
	:cond_4
	invoke-virtual {v2}, Ljava/lang/Object;->toString()Ljava/lang/String;
	move-result-object p1
	new-instance v2, Ljava/lang/StringBuilder;
	invoke-virtual {p1}, Ljava/lang/String;->length()I
	move-result v4
	add-int/lit8 v4, v4, 0x24
	invoke-direct {v2, v4}, Ljava/lang/StringBuilder;-><init>(I)V
	const-string v4, "Activity not found while launching "
	invoke-virtual {v2, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	const-string p1, "."
	invoke-virtual {v2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
	invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
	move-result-object p1
	sget-object v2, Landroid/os/Build;->FINGERPRINT:Ljava/lang/String;
	const-string v4, "generic"
	invoke-virtual {v2, v4}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z
	move-result v2
	if-eqz v2, :cond_5
	const-string v2, " This may occur when resolving Google Play services connection issues on emulators with Google APIs but not Google Play Store."
	invoke-virtual {p1, v2}, Ljava/lang/String;->concat(Ljava/lang/String;)Ljava/lang/String;
	move-result-object p1
	:cond_5
	invoke-static {v1, p1, v3}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
	:goto_2
	iput v0, p0, Lcom/google/android/gms/common/api/GoogleApiActivity;->a:I
	:goto_3
	invoke-virtual {p0}, Landroid/app/Activity;->finish()V
	goto :goto_4
	:cond_6
	invoke-static {v3}, Lp0/a;->j(Ljava/lang/Object;)V
	invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I
	move-result p1
	sget-object v1, Lx/d;->c:Lx/d;
	invoke-virtual {v1, p0, p1, p0}, Lx/d;->d(Landroid/app/Activity;ILandroid/content/DialogInterface$OnCancelListener;)V
	iput v0, p0, Lcom/google/android/gms/common/api/GoogleApiActivity;->a:I
	:goto_4
	:cond_7
	return-void
.end method

.method public final onSaveInstanceState(Landroid/os/Bundle;)V
	.locals 2

	iget v0, p0, Lcom/google/android/gms/common/api/GoogleApiActivity;->a:I
	const-string v1, "resolution"
	invoke-virtual {p1, v1, v0}, Landroid/os/BaseBundle;->putInt(Ljava/lang/String;I)V
	invoke-super {p0, p1}, Landroid/app/Activity;->onSaveInstanceState(Landroid/os/Bundle;)V
	return-void
.end method