886 lines
26 KiB
Smali
886 lines
26 KiB
Smali
.class public Lcom/google/android/gms/common/GoogleApiAvailability;
|
|
.super Lf/h/a/f/e/c;
|
|
.source "com.google.android.gms:play-services-base@@17.1.0"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/google/android/gms/common/GoogleApiAvailability$a;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final c:Ljava/lang/Object;
|
|
|
|
.field public static final d:Lcom/google/android/gms/common/GoogleApiAvailability;
|
|
|
|
.field public static final e:I
|
|
|
|
|
|
# direct methods
|
|
.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, Lcom/google/android/gms/common/GoogleApiAvailability;->c:Ljava/lang/Object;
|
|
|
|
new-instance v0, Lcom/google/android/gms/common/GoogleApiAvailability;
|
|
|
|
invoke-direct {v0}, Lcom/google/android/gms/common/GoogleApiAvailability;-><init>()V
|
|
|
|
sput-object v0, Lcom/google/android/gms/common/GoogleApiAvailability;->d:Lcom/google/android/gms/common/GoogleApiAvailability;
|
|
|
|
sget v0, Lf/h/a/f/e/c;->a:I
|
|
|
|
sput v0, Lcom/google/android/gms/common/GoogleApiAvailability;->e:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lf/h/a/f/e/c;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static f(Landroid/app/Activity;Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/Dialog;
|
|
.locals 3
|
|
|
|
new-instance v0, Landroid/widget/ProgressBar;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const v2, 0x101007a
|
|
|
|
invoke-direct {v0, p0, v1, v2}, Landroid/widget/ProgressBar;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {v0, v2}, Landroid/widget/ProgressBar;->setIndeterminate(Z)V
|
|
|
|
const/4 v2, 0x0
|
|
|
|
invoke-virtual {v0, v2}, Landroid/widget/ProgressBar;->setVisibility(I)V
|
|
|
|
new-instance v2, Landroid/app/AlertDialog$Builder;
|
|
|
|
invoke-direct {v2, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V
|
|
|
|
invoke-virtual {v2, v0}, Landroid/app/AlertDialog$Builder;->setView(Landroid/view/View;)Landroid/app/AlertDialog$Builder;
|
|
|
|
const/16 v0, 0x12
|
|
|
|
invoke-static {p0, v0}, Lf/h/a/f/e/k/d;->c(Landroid/content/Context;I)Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v2, v0}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;
|
|
|
|
const-string v0, ""
|
|
|
|
invoke-virtual {v2, v0, v1}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;
|
|
|
|
invoke-virtual {v2}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "GooglePlayServicesUpdatingDialog"
|
|
|
|
invoke-static {p0, v0, v1, p1}, Lcom/google/android/gms/common/GoogleApiAvailability;->i(Landroid/app/Activity;Landroid/app/Dialog;Ljava/lang/String;Landroid/content/DialogInterface$OnCancelListener;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static g(Landroid/content/Context;ILf/h/a/f/e/k/e;Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/Dialog;
|
|
.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}, Lf/h/a/f/e/k/d;->c(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
|
|
|
|
invoke-virtual {p3, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_4
|
|
sget v1, Lcom/google/android/gms/base/R$b;->common_google_play_services_enable_button:I
|
|
|
|
invoke-virtual {p3, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_5
|
|
sget v1, Lcom/google/android/gms/base/R$b;->common_google_play_services_update_button:I
|
|
|
|
invoke-virtual {p3, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_6
|
|
sget v1, Lcom/google/android/gms/base/R$b;->common_google_play_services_install_button:I
|
|
|
|
invoke-virtual {p3, v1}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
:goto_0
|
|
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}, Lf/h/a/f/e/k/d;->d(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
|
|
invoke-virtual {v0}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static i(Landroid/app/Activity;Landroid/app/Dialog;Ljava/lang/String;Landroid/content/DialogInterface$OnCancelListener;)V
|
|
.locals 3
|
|
|
|
instance-of v0, p0, Landroidx/fragment/app/FragmentActivity;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const-string v2, "Cannot display null dialog"
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
check-cast p0, Landroidx/fragment/app/FragmentActivity;
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/FragmentActivity;->getSupportFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance v0, Lf/h/a/f/e/g;
|
|
|
|
invoke-direct {v0}, Lf/h/a/f/e/g;-><init>()V
|
|
|
|
invoke-static {p1, v2}, Lf/h/a/c/i1/e;->B(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
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, Lf/h/a/f/e/g;->d:Landroid/app/Dialog;
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
iput-object p3, v0, Lf/h/a/f/e/g;->e:Landroid/content/DialogInterface$OnCancelListener;
|
|
|
|
:cond_0
|
|
invoke-virtual {v0, p0, p2}, Lf/h/a/f/e/g;->show(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
|
|
:cond_1
|
|
invoke-virtual {p0}, Landroid/app/Activity;->getFragmentManager()Landroid/app/FragmentManager;
|
|
|
|
move-result-object p0
|
|
|
|
new-instance v0, Lf/h/a/f/e/b;
|
|
|
|
invoke-direct {v0}, Lf/h/a/f/e/b;-><init>()V
|
|
|
|
invoke-static {p1, v2}, Lf/h/a/c/i1/e;->B(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
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, Lf/h/a/f/e/b;->d:Landroid/app/Dialog;
|
|
|
|
if-eqz p3, :cond_2
|
|
|
|
iput-object p3, v0, Lf/h/a/f/e/b;->e:Landroid/content/DialogInterface$OnCancelListener;
|
|
|
|
:cond_2
|
|
invoke-virtual {v0, p0, p2}, Lf/h/a/f/e/b;->show(Landroid/app/FragmentManager;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public a(Landroid/content/Context;ILjava/lang/String;)Landroid/content/Intent;
|
|
.locals 0
|
|
.param p3 # Ljava/lang/String;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
invoke-super {p0, p1, p2, p3}, Lf/h/a/f/e/c;->a(Landroid/content/Context;ILjava/lang/String;)Landroid/content/Intent;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public b(Landroid/content/Context;I)I
|
|
.locals 0
|
|
|
|
invoke-super {p0, p1, p2}, Lf/h/a/f/e/c;->b(Landroid/content/Context;I)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public c(Landroid/content/Context;)I
|
|
.locals 1
|
|
|
|
sget v0, Lf/h/a/f/e/c;->a:I
|
|
|
|
invoke-virtual {p0, p1, v0}, Lf/h/a/f/e/c;->b(Landroid/content/Context;I)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public d(Landroid/app/Activity;)Lcom/google/android/gms/tasks/Task;
|
|
.locals 4
|
|
.annotation build Landroidx/annotation/MainThread;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Landroid/app/Activity;",
|
|
")",
|
|
"Lcom/google/android/gms/tasks/Task<",
|
|
"Ljava/lang/Void;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
sget v0, Lcom/google/android/gms/common/GoogleApiAvailability;->e:I
|
|
|
|
const-string v1, "makeGooglePlayServicesAvailable must be called from the main thread"
|
|
|
|
invoke-static {v1}, Lf/h/a/c/i1/e;->w(Ljava/lang/String;)V
|
|
|
|
invoke-super {p0, p1, v0}, Lf/h/a/f/e/c;->b(Landroid/content/Context;I)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
invoke-static {v1}, Lf/h/a/c/i1/e;->I0(Ljava/lang/Object;)Lcom/google/android/gms/tasks/Task;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
invoke-static {p1}, Lcom/google/android/gms/common/api/internal/LifecycleCallback;->c(Landroid/app/Activity;)Lf/h/a/f/e/h/i/j;
|
|
|
|
move-result-object p1
|
|
|
|
const-class v2, Lf/h/a/f/e/h/i/f0;
|
|
|
|
const-string v3, "GmsAvailabilityHelper"
|
|
|
|
invoke-interface {p1, v3, v2}, Lf/h/a/f/e/h/i/j;->c(Ljava/lang/String;Ljava/lang/Class;)Lcom/google/android/gms/common/api/internal/LifecycleCallback;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lf/h/a/f/e/h/i/f0;
|
|
|
|
if-eqz v2, :cond_1
|
|
|
|
iget-object p1, v2, Lf/h/a/f/e/h/i/f0;->i:Lcom/google/android/gms/tasks/TaskCompletionSource;
|
|
|
|
iget-object p1, p1, Lcom/google/android/gms/tasks/TaskCompletionSource;->a:Lf/h/a/f/o/c0;
|
|
|
|
invoke-virtual {p1}, Lcom/google/android/gms/tasks/Task;->j()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
new-instance p1, Lcom/google/android/gms/tasks/TaskCompletionSource;
|
|
|
|
invoke-direct {p1}, Lcom/google/android/gms/tasks/TaskCompletionSource;-><init>()V
|
|
|
|
iput-object p1, v2, Lf/h/a/f/e/h/i/f0;->i:Lcom/google/android/gms/tasks/TaskCompletionSource;
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
new-instance v2, Lf/h/a/f/e/h/i/f0;
|
|
|
|
invoke-direct {v2, p1}, Lf/h/a/f/e/h/i/f0;-><init>(Lf/h/a/f/e/h/i/j;)V
|
|
|
|
:cond_2
|
|
:goto_0
|
|
new-instance p1, Lcom/google/android/gms/common/ConnectionResult;
|
|
|
|
invoke-direct {p1, v0, v1}, Lcom/google/android/gms/common/ConnectionResult;-><init>(ILandroid/app/PendingIntent;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {v2, p1, v0}, Lf/h/a/f/e/h/i/v0;->l(Lcom/google/android/gms/common/ConnectionResult;I)V
|
|
|
|
iget-object p1, v2, Lf/h/a/f/e/h/i/f0;->i:Lcom/google/android/gms/tasks/TaskCompletionSource;
|
|
|
|
iget-object p1, p1, Lcom/google/android/gms/tasks/TaskCompletionSource;->a:Lf/h/a/f/o/c0;
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public e(Landroid/app/Activity;IILandroid/content/DialogInterface$OnCancelListener;)Z
|
|
.locals 2
|
|
|
|
const-string v0, "d"
|
|
|
|
invoke-super {p0, p1, p2, v0}, Lf/h/a/f/e/c;->a(Landroid/content/Context;ILjava/lang/String;)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lf/h/a/f/e/k/p;
|
|
|
|
invoke-direct {v1, v0, p1, p3}, Lf/h/a/f/e/k/p;-><init>(Landroid/content/Intent;Landroid/app/Activity;I)V
|
|
|
|
invoke-static {p1, p2, v1, p4}, Lcom/google/android/gms/common/GoogleApiAvailability;->g(Landroid/content/Context;ILf/h/a/f/e/k/e;Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/Dialog;
|
|
|
|
move-result-object p2
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
const-string p3, "GooglePlayServicesErrorDialog"
|
|
|
|
invoke-static {p1, p2, p3, p4}, Lcom/google/android/gms/common/GoogleApiAvailability;->i(Landroid/app/Activity;Landroid/app/Dialog;Ljava/lang/String;Landroid/content/DialogInterface$OnCancelListener;)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|
|
|
|
.method public final h(Landroid/content/Context;Lf/h/a/f/e/h/i/y0;)Lf/h/a/f/e/h/i/e0;
|
|
.locals 2
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
|
|
new-instance v0, Landroid/content/IntentFilter;
|
|
|
|
const-string v1, "android.intent.action.PACKAGE_ADDED"
|
|
|
|
invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V
|
|
|
|
const-string v1, "package"
|
|
|
|
invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addDataScheme(Ljava/lang/String;)V
|
|
|
|
new-instance v1, Lf/h/a/f/e/h/i/e0;
|
|
|
|
invoke-direct {v1, p2}, Lf/h/a/f/e/h/i/e0;-><init>(Lf/h/a/f/e/h/i/y0;)V
|
|
|
|
invoke-virtual {p1, v1, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;
|
|
|
|
iput-object p1, v1, Lf/h/a/f/e/h/i/e0;->a:Landroid/content/Context;
|
|
|
|
const-string v0, "com.google.android.gms"
|
|
|
|
invoke-static {p1, v0}, Lf/h/a/f/e/e;->f(Landroid/content/Context;Ljava/lang/String;)Z
|
|
|
|
move-result p1
|
|
|
|
if-nez p1, :cond_1
|
|
|
|
iget-object p1, p2, Lf/h/a/f/e/h/i/y0;->b:Lf/h/a/f/e/h/i/w0;
|
|
|
|
iget-object p1, p1, Lf/h/a/f/e/h/i/w0;->e:Lf/h/a/f/e/h/i/v0;
|
|
|
|
invoke-virtual {p1}, Lf/h/a/f/e/h/i/v0;->n()V
|
|
|
|
iget-object p1, p2, Lf/h/a/f/e/h/i/y0;->a:Landroid/app/Dialog;
|
|
|
|
invoke-virtual {p1}, Landroid/app/Dialog;->isShowing()Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
iget-object p1, p2, Lf/h/a/f/e/h/i/y0;->a:Landroid/app/Dialog;
|
|
|
|
invoke-virtual {p1}, Landroid/app/Dialog;->dismiss()V
|
|
|
|
:cond_0
|
|
invoke-virtual {v1}, Lf/h/a/f/e/h/i/e0;->a()V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
|
|
:cond_1
|
|
return-object v1
|
|
.end method
|
|
|
|
.method public final j(Landroid/content/Context;ILandroid/app/PendingIntent;)V
|
|
.locals 9
|
|
.annotation build Landroid/annotation/TargetApi;
|
|
value = 0x14
|
|
.end annotation
|
|
|
|
const/4 v0, 0x1
|
|
|
|
const/16 v1, 0x12
|
|
|
|
if-ne p2, v1, :cond_0
|
|
|
|
new-instance p2, Lcom/google/android/gms/common/GoogleApiAvailability$a;
|
|
|
|
invoke-direct {p2, p0, p1}, Lcom/google/android/gms/common/GoogleApiAvailability$a;-><init>(Lcom/google/android/gms/common/GoogleApiAvailability;Landroid/content/Context;)V
|
|
|
|
const-wide/32 v1, 0x1d4c0
|
|
|
|
invoke-virtual {p2, v0, v1, v2}, 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 v2, "common_google_play_services_resolution_required_title"
|
|
|
|
invoke-static {p1, v2}, Lf/h/a/f/e/k/d;->e(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
invoke-static {p1, p2}, Lf/h/a/f/e/k/d;->d(Landroid/content/Context;I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
:goto_0
|
|
if-nez v2, :cond_4
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;
|
|
|
|
move-result-object v2
|
|
|
|
sget v3, Lcom/google/android/gms/base/R$b;->common_google_play_services_notification_ticker:I
|
|
|
|
invoke-virtual {v2, v3}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v2
|
|
|
|
: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}, Lf/h/a/f/e/k/d;->c(Landroid/content/Context;I)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
:goto_1
|
|
invoke-static {p1}, Lf/h/a/f/e/k/d;->a(Landroid/content/Context;)Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
const-string v3, "common_google_play_services_resolution_required_text"
|
|
|
|
invoke-static {p1, v3, v1}, Lf/h/a/f/e/k/d;->f(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 v3
|
|
|
|
const-string v4, "notification"
|
|
|
|
invoke-virtual {p1, v4}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
move-result-object v4
|
|
|
|
check-cast v4, Landroid/app/NotificationManager;
|
|
|
|
new-instance v5, Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
invoke-direct {v5, p1}, Landroidx/core/app/NotificationCompat$Builder;-><init>(Landroid/content/Context;)V
|
|
|
|
invoke-virtual {v5, v0}, Landroidx/core/app/NotificationCompat$Builder;->setLocalOnly(Z)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5, v0}, Landroidx/core/app/NotificationCompat$Builder;->setAutoCancel(Z)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v5, v2}, Landroidx/core/app/NotificationCompat$Builder;->setContentTitle(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
new-instance v5, Landroidx/core/app/NotificationCompat$BigTextStyle;
|
|
|
|
invoke-direct {v5}, Landroidx/core/app/NotificationCompat$BigTextStyle;-><init>()V
|
|
|
|
invoke-virtual {v5, v1}, Landroidx/core/app/NotificationCompat$BigTextStyle;->bigText(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$BigTextStyle;
|
|
|
|
move-result-object v5
|
|
|
|
invoke-virtual {v2, v5}, Landroidx/core/app/NotificationCompat$Builder;->setStyle(Landroidx/core/app/NotificationCompat$Style;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-static {p1}, Lf/h/a/c/i1/e;->Z0(Landroid/content/Context;)Z
|
|
|
|
move-result v5
|
|
|
|
const/4 v6, 0x2
|
|
|
|
if-eqz v5, :cond_8
|
|
|
|
invoke-static {v0}, Lf/h/a/c/i1/e;->H(Z)V
|
|
|
|
invoke-virtual {p1}, Landroid/content/Context;->getApplicationInfo()Landroid/content/pm/ApplicationInfo;
|
|
|
|
move-result-object v1
|
|
|
|
iget v1, v1, Landroid/content/pm/ApplicationInfo;->icon:I
|
|
|
|
invoke-virtual {v2, v1}, Landroidx/core/app/NotificationCompat$Builder;->setSmallIcon(I)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1, v6}, Landroidx/core/app/NotificationCompat$Builder;->setPriority(I)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
invoke-static {p1}, Lf/h/a/c/i1/e;->a1(Landroid/content/Context;)Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_7
|
|
|
|
sget v1, Lcom/google/android/gms/base/R$a;->common_full_open_on_phone:I
|
|
|
|
sget v5, Lcom/google/android/gms/base/R$b;->common_open_on_phone:I
|
|
|
|
invoke-virtual {v3, v5}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v2, v1, v3, p3}, Landroidx/core/app/NotificationCompat$Builder;->addAction(ILjava/lang/CharSequence;Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
invoke-virtual {v2, p3}, Landroidx/core/app/NotificationCompat$Builder;->setContentIntent(Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
goto :goto_3
|
|
|
|
:cond_8
|
|
const v5, 0x108008a
|
|
|
|
invoke-virtual {v2, v5}, Landroidx/core/app/NotificationCompat$Builder;->setSmallIcon(I)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
move-result-object v5
|
|
|
|
sget v7, Lcom/google/android/gms/base/R$b;->common_google_play_services_notification_ticker:I
|
|
|
|
invoke-virtual {v3, v7}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v5, v3}, Landroidx/core/app/NotificationCompat$Builder;->setTicker(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
|
|
|
|
move-result-wide v7
|
|
|
|
invoke-virtual {v3, v7, v8}, Landroidx/core/app/NotificationCompat$Builder;->setWhen(J)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {v3, p3}, Landroidx/core/app/NotificationCompat$Builder;->setContentIntent(Landroid/app/PendingIntent;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-virtual {p3, v1}, Landroidx/core/app/NotificationCompat$Builder;->setContentText(Ljava/lang/CharSequence;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
:goto_3
|
|
invoke-static {}, Lf/h/a/c/i1/e;->U0()Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_b
|
|
|
|
invoke-static {}, Lf/h/a/c/i1/e;->U0()Z
|
|
|
|
move-result p3
|
|
|
|
invoke-static {p3}, Lf/h/a/c/i1/e;->H(Z)V
|
|
|
|
sget-object p3, Lcom/google/android/gms/common/GoogleApiAvailability;->c: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 {v4, p3}, Landroid/app/NotificationManager;->getNotificationChannel(Ljava/lang/String;)Landroid/app/NotificationChannel;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {p1}, Lf/h/a/f/e/k/d;->b(Landroid/content/Context;)Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
if-nez v1, :cond_9
|
|
|
|
new-instance v1, Landroid/app/NotificationChannel;
|
|
|
|
const/4 v3, 0x4
|
|
|
|
invoke-direct {v1, p3, p1, v3}, Landroid/app/NotificationChannel;-><init>(Ljava/lang/String;Ljava/lang/CharSequence;I)V
|
|
|
|
invoke-virtual {v4, v1}, Landroid/app/NotificationManager;->createNotificationChannel(Landroid/app/NotificationChannel;)V
|
|
|
|
goto :goto_4
|
|
|
|
:cond_9
|
|
invoke-virtual {v1}, Landroid/app/NotificationChannel;->getName()Ljava/lang/CharSequence;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {p1, v3}, Ljava/lang/String;->contentEquals(Ljava/lang/CharSequence;)Z
|
|
|
|
move-result v3
|
|
|
|
if-nez v3, :cond_a
|
|
|
|
invoke-virtual {v1, p1}, Landroid/app/NotificationChannel;->setName(Ljava/lang/CharSequence;)V
|
|
|
|
invoke-virtual {v4, v1}, Landroid/app/NotificationManager;->createNotificationChannel(Landroid/app/NotificationChannel;)V
|
|
|
|
:cond_a
|
|
:goto_4
|
|
invoke-virtual {v2, p3}, Landroidx/core/app/NotificationCompat$Builder;->setChannelId(Ljava/lang/String;)Landroidx/core/app/NotificationCompat$Builder;
|
|
|
|
goto :goto_5
|
|
|
|
: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_b
|
|
:goto_5
|
|
invoke-virtual {v2}, Landroidx/core/app/NotificationCompat$Builder;->build()Landroid/app/Notification;
|
|
|
|
move-result-object p1
|
|
|
|
if-eq p2, v0, :cond_c
|
|
|
|
if-eq p2, v6, :cond_c
|
|
|
|
const/4 p3, 0x3
|
|
|
|
if-eq p2, p3, :cond_c
|
|
|
|
const p2, 0x9b6d
|
|
|
|
goto :goto_6
|
|
|
|
:cond_c
|
|
const/16 p2, 0x28c4
|
|
|
|
sget-object p3, Lf/h/a/f/e/e;->d:Ljava/util/concurrent/atomic/AtomicBoolean;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-virtual {p3, v0}, Ljava/util/concurrent/atomic/AtomicBoolean;->set(Z)V
|
|
|
|
:goto_6
|
|
invoke-virtual {v4, p2, p1}, Landroid/app/NotificationManager;->notify(ILandroid/app/Notification;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public final k(Landroid/app/Activity;Lf/h/a/f/e/h/i/j;ILandroid/content/DialogInterface$OnCancelListener;)Z
|
|
.locals 3
|
|
.param p2 # Lf/h/a/f/e/h/i/j;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "d"
|
|
|
|
invoke-super {p0, p1, p3, v0}, Lf/h/a/f/e/c;->a(Landroid/content/Context;ILjava/lang/String;)Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lf/h/a/f/e/k/q;
|
|
|
|
const/4 v2, 0x2
|
|
|
|
invoke-direct {v1, v0, p2, v2}, Lf/h/a/f/e/k/q;-><init>(Landroid/content/Intent;Lf/h/a/f/e/h/i/j;I)V
|
|
|
|
invoke-static {p1, p3, v1, p4}, Lcom/google/android/gms/common/GoogleApiAvailability;->g(Landroid/content/Context;ILf/h/a/f/e/k/e;Landroid/content/DialogInterface$OnCancelListener;)Landroid/app/Dialog;
|
|
|
|
move-result-object p2
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return p1
|
|
|
|
:cond_0
|
|
const-string p3, "GooglePlayServicesErrorDialog"
|
|
|
|
invoke-static {p1, p2, p3, p4}, Lcom/google/android/gms/common/GoogleApiAvailability;->i(Landroid/app/Activity;Landroid/app/Dialog;Ljava/lang/String;Landroid/content/DialogInterface$OnCancelListener;)V
|
|
|
|
const/4 p1, 0x1
|
|
|
|
return p1
|
|
.end method
|