granularity level: instruction
.class public final Lx/d;
.super Lx/e;
.source "SourceFile"
.field public static final b:Ljava/lang/Object;
.field public static final c:Lx/d;
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Ljava/lang/Object;
invoke-direct {v0}, Ljava/lang/Object;-><init>()V
sput-object v0, Lx/d;->b:Ljava/lang/Object;
new-instance v0, Lx/d;
invoke-direct {v0}, Lx/d;-><init>()V
sput-object v0, Lx/d;->c:Lx/d;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Lx/e;-><init>()V
return-void
.end method
.method public static e(Landroid/content/Context;ILa0/q;Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/AlertDialog;
.locals 5
const/4 v0, 0x0
if-nez p1, :cond_0
return-object v0
:cond_0
new-instance v1, Landroid/util/TypedValue;
invoke-direct {v1}, Landroid/util/TypedValue;-><init>()V
invoke-virtual {p0}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;
move-result-object v2
const v3, 0x1010309
const/4 v4, 0x1
invoke-virtual {v2, v3, v1, v4}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v2
iget v1, v1, Landroid/util/TypedValue;->resourceId:I
invoke-virtual {v2, v1}, Landroid/content/res/Resources;->getResourceEntryName(I)Ljava/lang/String;
move-result-object v1
const-string v2, "Theme.Dialog.Alert"
invoke-virtual {v2, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_1
new-instance v0, Landroid/app/AlertDialog$Builder;
const/4 v1, 0x5
invoke-direct {v0, p0, v1}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;I)V
:cond_1
if-nez v0, :cond_2
new-instance v0, Landroid/app/AlertDialog$Builder;
invoke-direct {v0, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V
:cond_2
invoke-static {p0, p1}, La0/n;->b(Landroid/content/Context;I)Ljava/lang/String;
move-result-object v1
invoke-virtual {v0, v1}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
if-eqz p3, :cond_3
invoke-virtual {v0, p3}, Landroid/app/AlertDialog$Builder;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/AlertDialog$Builder;
:cond_3
invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object p3
if-eq p1, v4, :cond_6
const/4 v1, 0x2
if-eq p1, v1, :cond_5
const/4 v1, 0x3
if-eq p1, v1, :cond_4
const v1, 0x104000a
goto :goto_0
:cond_4
const/high16 v1, 0x7f090000
goto :goto_0
:cond_5
const v1, 0x7f09000a
goto :goto_0
:cond_6
const v1, 0x7f090003
:goto_0
invoke-virtual {p3, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object p3
if-eqz p3, :cond_7
invoke-virtual {v0, p3, p2}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
:cond_7
invoke-static {p0, p1}, La0/n;->c(Landroid/content/Context;I)Ljava/lang/String;
move-result-object p0
if-eqz p0, :cond_8
invoke-virtual {v0, p0}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
:cond_8
new-array p0, v4, [Ljava/lang/Object;
const/4 p2, 0x0
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object p1
aput-object p1, p0, p2
const-string p1, "Creating dialog for Google Play services availability issue. ConnectionResult=%s"
invoke-static {p1, p0}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object p0
new-instance p1, Ljava/lang/IllegalArgumentException;
invoke-direct {p1}, Ljava/lang/IllegalArgumentException;-><init>()V
const-string p2, "GoogleApiAvailability"
invoke-static {p2, p0, p1}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;
move-result-object p0
return-object p0
.end method
.method public static f(Landroid/app/Activity;Landroid/app/AlertDialog;Ljava/lang/String;Landroid/content/DialogInterface$OnCancelListener;)V
.locals 2
invoke-virtual {p0}, Landroid/app/Activity;->getFragmentManager()Landroid/app/FragmentManager;
move-result-object p0
new-instance v0, Lx/b;
invoke-direct {v0}, Lx/b;-><init>()V
if-eqz p1, :cond_1
const/4 v1, 0x0
invoke-virtual {p1, v1}, Landroid/app/Dialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V
invoke-virtual {p1, v1}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V
iput-object p1, v0, Lx/b;->a:Landroid/app/Dialog;
if-eqz p3, :cond_0
iput-object p3, v0, Lx/b;->b:Landroid/content/DialogInterface$OnCancelListener;
:cond_0
invoke-virtual {v0, p0, p2}, Lx/b;->show(Landroid/app/FragmentManager;Ljava/lang/String;)V
return-void
:cond_1
new-instance p0, Ljava/lang/NullPointerException;
const-string p1, "Cannot display null dialog"
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p0
.end method
.method public final a(ILandroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;
.locals 0
invoke-super {p0, p1, p2, p3}, Lx/e;->a(ILandroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;
move-result-object p1
return-object p1
.end method
.method public final b(Landroid/content/Context;I)I
.locals 0
invoke-super {p0, p1, p2}, Lx/e;->b(Landroid/content/Context;I)I
move-result p1
return p1
.end method
.method public final c(Landroid/content/Context;)I
.locals 1
sget v0, Lx/e;->a:I
invoke-super {p0, p1, v0}, Lx/e;->b(Landroid/content/Context;I)I
move-result p1
return p1
.end method
.method public final d(Landroid/app/Activity;ILandroid/content/DialogInterface$OnCancelListener;)V
.locals 2
const-string v0, "d"
invoke-super {p0, p2, p1, v0}, Lx/e;->a(ILandroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;
move-result-object v0
new-instance v1, La0/o;
invoke-direct {v1, p1, v0}, La0/o;-><init>(Landroid/app/Activity;Landroid/content/Intent;)V
invoke-static {p1, p2, v1, p3}, Lx/d;->e(Landroid/content/Context;ILa0/q;Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/AlertDialog;
move-result-object p2
if-nez p2, :cond_0
return-void
:cond_0
const-string v0, "GooglePlayServicesErrorDialog"
invoke-static {p1, p2, v0, p3}, Lx/d;->f(Landroid/app/Activity;Landroid/app/AlertDialog;Ljava/lang/String;Landroid/content/DialogInterface$OnCancelListener;)V
return-void
.end method
.method public final g(Landroid/content/Context;ILandroid/app/PendingIntent;)V
.locals 11
const/4 v0, 0x2
new-array v1, v0, [Ljava/lang/Object;
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
const/4 v3, 0x0
aput-object v2, v1, v3
const/4 v2, 0x1
const/4 v4, 0x0
aput-object v4, v1, v2
const-string v5, "GMS core API Availability. ConnectionResult=%s, tag=%s"
invoke-static {v5, v1}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
move-result-object v1
new-instance v5, Ljava/lang/IllegalArgumentException;
invoke-direct {v5}, Ljava/lang/IllegalArgumentException;-><init>()V
const-string v6, "GoogleApiAvailability"
invoke-static {v6, v1, v5}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
const/16 v1, 0x12
if-ne p2, v1, :cond_0
new-instance p2, Lx/i;
invoke-direct {p2, p0, p1}, Lx/i;-><init>(Lx/d;Landroid/content/Context;)V
const-wide/32 v0, 0x1d4c0
invoke-virtual {p2, v2, v0, v1}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z
return-void
:cond_0
const/4 v1, 0x6
if-nez p3, :cond_2
if-ne p2, v1, :cond_1
const-string p1, "GoogleApiAvailability"
const-string p2, "Missing resolution for ConnectionResult.RESOLUTION_REQUIRED. Call GoogleApiAvailability#showErrorNotification(Context, ConnectionResult) instead."
invoke-static {p1, p2}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
:cond_1
return-void
:cond_2
if-ne p2, v1, :cond_3
const-string v5, "common_google_play_services_resolution_required_title"
invoke-static {p1, v5}, La0/n;->e(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
move-result-object v5
goto :goto_0
:cond_3
invoke-static {p1, p2}, La0/n;->c(Landroid/content/Context;I)Ljava/lang/String;
move-result-object v5
:goto_0
const v6, 0x7f090007
if-nez v5, :cond_4
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v5
invoke-virtual {v5, v6}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v5
:cond_4
if-eq p2, v1, :cond_6
const/16 v1, 0x13
if-ne p2, v1, :cond_5
goto :goto_1
:cond_5
invoke-static {p1, p2}, La0/n;->b(Landroid/content/Context;I)Ljava/lang/String;
move-result-object v1
goto :goto_2
:goto_1
:cond_6
invoke-static {p1}, La0/n;->a(Landroid/content/Context;)Ljava/lang/String;
move-result-object v1
const-string v7, "common_google_play_services_resolution_required_text"
invoke-static {p1, v7, v1}, La0/n;->d(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
:goto_2
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object v7
const-string v8, "notification"
invoke-virtual {p1, v8}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v8
invoke-static {v8}, Lp0/a;->j(Ljava/lang/Object;)V
check-cast v8, Landroid/app/NotificationManager;
new-instance v9, Lc/d;
invoke-direct {v9, p1, v4}, Lc/d;-><init>(Landroid/content/Context;Ljava/lang/String;)V
iput-boolean v2, v9, Lc/d;->l:Z
iget-object v4, v9, Lc/d;->r:Landroid/app/Notification;
iget v10, v4, Landroid/app/Notification;->flags:I
or-int/lit8 v10, v10, 0x10
iput v10, v4, Landroid/app/Notification;->flags:I
invoke-static {v5}, Lc/d;->b(Ljava/lang/String;)Ljava/lang/CharSequence;
move-result-object v4
iput-object v4, v9, Lc/d;->d:Ljava/lang/CharSequence;
new-instance v4, Lc/c;
invoke-direct {v4}, Lc/c;-><init>()V
invoke-static {v1}, Lc/d;->b(Ljava/lang/String;)Ljava/lang/CharSequence;
move-result-object v5
iput-object v5, v4, Lc/c;->b:Ljava/lang/CharSequence;
invoke-virtual {v9, v4}, Lc/d;->d(Lc/e;)V
invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager;
move-result-object v4
sget-object v5, Lp0/a;->a:Ljava/lang/Boolean;
if-nez v5, :cond_7
const-string v5, "android.hardware.type.watch"
invoke-virtual {v4, v5}, Landroid/content/pm/PackageManager;->hasSystemFeature(Ljava/lang/String;)Z
move-result v4
invoke-static {v4}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v4
sput-object v4, Lp0/a;->a:Ljava/lang/Boolean;
:cond_7
sget-object v4, Lp0/a;->a:Ljava/lang/Boolean;
invoke-virtual {v4}, Ljava/lang/Boolean;->booleanValue()Z
move-result v4
if-eqz v4, :cond_9
invoke-virtual {p1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
move-result-object v1
iget v1, v1, Landroid/content/pm/ApplicationInfo;->icon:I
iget-object v4, v9, Lc/d;->r:Landroid/app/Notification;
iput v1, v4, Landroid/app/Notification;->icon:I
iput v0, v9, Lc/d;->i:I
invoke-static {p1}, Lp0/a;->w(Landroid/content/Context;)Z
move-result v1
if-eqz v1, :cond_8
const v1, 0x7f09000f
invoke-virtual {v7, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v1
iget-object v4, v9, Lc/d;->b:Ljava/util/ArrayList;
new-instance v5, Lc/a;
invoke-direct {v5, v1, p3}, Lc/a;-><init>(Ljava/lang/String;Landroid/app/PendingIntent;)V
invoke-virtual {v4, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
goto :goto_3
:cond_8
iput-object p3, v9, Lc/d;->f:Landroid/app/PendingIntent;
goto :goto_3
:cond_9
const v4, 0x108008a
iget-object v5, v9, Lc/d;->r:Landroid/app/Notification;
iput v4, v5, Landroid/app/Notification;->icon:I
invoke-virtual {v7, v6}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object v4
iget-object v5, v9, Lc/d;->r:Landroid/app/Notification;
invoke-static {v4}, Lc/d;->b(Ljava/lang/String;)Ljava/lang/CharSequence;
move-result-object v4
iput-object v4, v5, Landroid/app/Notification;->tickerText:Ljava/lang/CharSequence;
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v4
iget-object v6, v9, Lc/d;->r:Landroid/app/Notification;
iput-wide v4, v6, Landroid/app/Notification;->when:J
iput-object p3, v9, Lc/d;->f:Landroid/app/PendingIntent;
invoke-static {v1}, Lc/d;->b(Ljava/lang/String;)Ljava/lang/CharSequence;
move-result-object p3
iput-object p3, v9, Lc/d;->e:Ljava/lang/CharSequence;
:goto_3
invoke-static {}, Lp0/a;->u()Z
move-result p3
if-nez p3, :cond_a
goto :goto_5
:cond_a
invoke-static {}, Lp0/a;->u()Z
move-result p3
if-eqz p3, :cond_e
sget-object p3, Lx/d;->b:Ljava/lang/Object;
monitor-enter p3
:try_start_0
monitor-exit p3
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
const-string p3, "com.google.android.gms.availability"
invoke-virtual {v8, p3}, Landroid/app/NotificationManager;->getNotificationChannel(Ljava/lang/String;)Landroid/app/NotificationChannel;
move-result-object v1
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
move-result-object p1
const v4, 0x7f090006
invoke-virtual {p1, v4}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
move-result-object p1
if-nez v1, :cond_b
new-instance v1, Landroid/app/NotificationChannel;
const/4 v4, 0x4
invoke-direct {v1, p3, p1, v4}, Landroid/app/NotificationChannel;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;I)V
goto :goto_4
:cond_b
invoke-virtual {v1}, Landroid/app/NotificationChannel;->getName()Ljava/lang/CharSequence;
move-result-object v4
invoke-virtual {p1, v4}, Ljava/lang/String;->contentEquals(Ljava/lang/CharSequence;)Z
move-result v4
if-nez v4, :cond_c
invoke-virtual {v1, p1}, Landroid/app/NotificationChannel;->setName(Ljava/lang/CharSequence;)V
:goto_4
invoke-virtual {v8, v1}, Landroid/app/NotificationManager;->createNotificationChannel(Landroid/app/NotificationChannel;)V
:cond_c
iput-object p3, v9, Lc/d;->p:Ljava/lang/String;
:goto_5
invoke-virtual {v9}, Lc/d;->a()Landroid/app/Notification;
move-result-object p1
if-eq p2, v2, :cond_d
if-eq p2, v0, :cond_d
const/4 p3, 0x3
if-eq p2, p3, :cond_d
const p2, 0x9b6d
goto :goto_6
:cond_d
sget-object p2, Lx/g;->a:Ljava/util/concurrent/atomic/AtomicBoolean;
invoke-virtual {p2, v3}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
const/16 p2, 0x28c4
:goto_6
invoke-virtual {v8, p2, p1}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
return-void
:catchall_0
move-exception p1
:try_start_1
monitor-exit p3
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0
throw p1
:cond_e
new-instance p1, Ljava/lang/IllegalStateException;
invoke-direct {p1}, Ljava/lang/IllegalStateException;-><init>()V
throw p1
.end method
.method public final h(Landroid/app/Activity;Lz/g;ILz/k;)V
.locals 2
const-string v0, "d"
invoke-super {p0, p3, p1, v0}, Lx/e;->a(ILandroid/content/Context;Ljava/lang/String;)Landroid/content/Intent;
move-result-object v0
new-instance v1, La0/p;
invoke-direct {v1, v0, p2}, La0/p;-><init>(Landroid/content/Intent;Lz/g;)V
invoke-static {p1, p3, v1, p4}, Lx/d;->e(Landroid/content/Context;ILa0/q;Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/AlertDialog;
move-result-object p2
if-nez p2, :cond_0
return-void
:cond_0
const-string p3, "GooglePlayServicesErrorDialog"
invoke-static {p1, p2, p3, p4}, Lx/d;->f(Landroid/app/Activity;Landroid/app/AlertDialog;Ljava/lang/String;Landroid/content/DialogInterface$OnCancelListener;)V
return-void
.end method