263 lines
6.8 KiB
Smali
263 lines
6.8 KiB
Smali
.class public Landroidx/activity/ComponentActivity$b;
|
|
.super Landroidx/activity/result/ActivityResultRegistry;
|
|
.source "ComponentActivity.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Landroidx/activity/ComponentActivity;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x1
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic p:Landroidx/activity/ComponentActivity;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Landroidx/activity/ComponentActivity;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
iput-object p1, p0, Landroidx/activity/ComponentActivity$b;->p:Landroidx/activity/ComponentActivity;
|
|
|
|
invoke-direct {p0}, Landroidx/activity/result/ActivityResultRegistry;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public f(ILb/a;Ljava/lang/Object;Landroidx/core/app/c;)V
|
|
.locals 8
|
|
.param p2 # Lb/a;
|
|
.annotation build Landroidx/annotation/NonNull;
|
|
.end annotation
|
|
.end param
|
|
.param p4 # Landroidx/core/app/c;
|
|
.annotation build Landroidx/annotation/Nullable;
|
|
.end annotation
|
|
.end param
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"<I:",
|
|
"Ljava/lang/Object;",
|
|
"O:",
|
|
"Ljava/lang/Object;",
|
|
">(I",
|
|
"Lb/a<",
|
|
"TI;TO;>;TI;",
|
|
"Landroidx/core/app/c;",
|
|
")V"
|
|
}
|
|
.end annotation
|
|
|
|
.line 1
|
|
iget-object v0, p0, Landroidx/activity/ComponentActivity$b;->p:Landroidx/activity/ComponentActivity;
|
|
|
|
.line 2
|
|
invoke-virtual {p2, v0, p3}, Lb/a;->b(Landroid/content/Context;Ljava/lang/Object;)Lb/a$a;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 3
|
|
new-instance p2, Landroid/os/Handler;
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object p3
|
|
|
|
invoke-direct {p2, p3}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
|
|
|
new-instance p3, Landroidx/activity/ComponentActivity$b$a;
|
|
|
|
invoke-direct {p3, p0, p1, v1}, Landroidx/activity/ComponentActivity$b$a;-><init>(Landroidx/activity/ComponentActivity$b;ILb/a$a;)V
|
|
|
|
invoke-virtual {p2, p3}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
return-void
|
|
|
|
.line 4
|
|
:cond_0
|
|
invoke-virtual {p2, v0, p3}, Lb/a;->a(Landroid/content/Context;Ljava/lang/Object;)Landroid/content/Intent;
|
|
|
|
move-result-object p2
|
|
|
|
const/4 p3, 0x0
|
|
|
|
.line 5
|
|
invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v1
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Landroid/os/Bundle;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v1
|
|
|
|
if-nez v1, :cond_1
|
|
|
|
.line 6
|
|
invoke-virtual {v0}, Landroid/app/Activity;->getClassLoader()Ljava/lang/ClassLoader;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p2, v1}, Landroid/content/Intent;->setExtrasClassLoader(Ljava/lang/ClassLoader;)V
|
|
|
|
:cond_1
|
|
const-string v1, "androidx.activity.result.contract.extra.ACTIVITY_OPTIONS_BUNDLE"
|
|
|
|
.line 7
|
|
invoke-virtual {p2, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_2
|
|
|
|
.line 8
|
|
invoke-virtual {p2, v1}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle;
|
|
|
|
move-result-object p3
|
|
|
|
.line 9
|
|
invoke-virtual {p2, v1}, Landroid/content/Intent;->removeExtra(Ljava/lang/String;)V
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
if-eqz p4, :cond_3
|
|
|
|
.line 10
|
|
invoke-virtual {p4}, Landroidx/core/app/c;->l()Landroid/os/Bundle;
|
|
|
|
move-result-object p3
|
|
|
|
:cond_3
|
|
:goto_0
|
|
move-object v7, p3
|
|
|
|
.line 11
|
|
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
const-string p4, "androidx.activity.result.contract.action.REQUEST_PERMISSIONS"
|
|
|
|
invoke-virtual {p4, p3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_5
|
|
|
|
const-string p3, "androidx.activity.result.contract.extra.PERMISSIONS"
|
|
|
|
.line 12
|
|
invoke-virtual {p2, p3}, Landroid/content/Intent;->getStringArrayExtra(Ljava/lang/String;)[Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
if-nez p2, :cond_4
|
|
|
|
const/4 p2, 0x0
|
|
|
|
new-array p2, p2, [Ljava/lang/String;
|
|
|
|
.line 13
|
|
:cond_4
|
|
invoke-static {v0, p2, p1}, Landroidx/core/app/a;->E(Landroid/app/Activity;[Ljava/lang/String;I)V
|
|
|
|
goto :goto_1
|
|
|
|
.line 14
|
|
:cond_5
|
|
invoke-virtual {p2}, Landroid/content/Intent;->getAction()Ljava/lang/String;
|
|
|
|
move-result-object p3
|
|
|
|
const-string p4, "androidx.activity.result.contract.action.INTENT_SENDER_REQUEST"
|
|
|
|
invoke-virtual {p4, p3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
|
|
|
move-result p3
|
|
|
|
if-eqz p3, :cond_6
|
|
|
|
const-string p3, "androidx.activity.result.contract.extra.INTENT_SENDER_REQUEST"
|
|
|
|
.line 15
|
|
invoke-virtual {p2, p3}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;
|
|
|
|
move-result-object p2
|
|
|
|
check-cast p2, Landroidx/activity/result/IntentSenderRequest;
|
|
|
|
.line 16
|
|
:try_start_0
|
|
invoke-virtual {p2}, Landroidx/activity/result/IntentSenderRequest;->e()Landroid/content/IntentSender;
|
|
|
|
move-result-object v1
|
|
|
|
.line 17
|
|
invoke-virtual {p2}, Landroidx/activity/result/IntentSenderRequest;->b()Landroid/content/Intent;
|
|
|
|
move-result-object v3
|
|
|
|
invoke-virtual {p2}, Landroidx/activity/result/IntentSenderRequest;->c()I
|
|
|
|
move-result v4
|
|
|
|
.line 18
|
|
invoke-virtual {p2}, Landroidx/activity/result/IntentSenderRequest;->d()I
|
|
|
|
move-result v5
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move v2, p1
|
|
|
|
.line 19
|
|
invoke-static/range {v0 .. v7}, Landroidx/core/app/a;->M(Landroid/app/Activity;Landroid/content/IntentSender;ILandroid/content/Intent;IIILandroid/os/Bundle;)V
|
|
:try_end_0
|
|
.catch Landroid/content/IntentSender$SendIntentException; {:try_start_0 .. :try_end_0} :catch_0
|
|
|
|
goto :goto_1
|
|
|
|
:catch_0
|
|
move-exception p2
|
|
|
|
.line 20
|
|
new-instance p3, Landroid/os/Handler;
|
|
|
|
invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-direct {p3, p4}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V
|
|
|
|
new-instance p4, Landroidx/activity/ComponentActivity$b$b;
|
|
|
|
invoke-direct {p4, p0, p1, p2}, Landroidx/activity/ComponentActivity$b$b;-><init>(Landroidx/activity/ComponentActivity$b;ILandroid/content/IntentSender$SendIntentException;)V
|
|
|
|
invoke-virtual {p3, p4}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
|
|
|
|
goto :goto_1
|
|
|
|
.line 21
|
|
:cond_6
|
|
invoke-static {v0, p2, p1, v7}, Landroidx/core/app/a;->L(Landroid/app/Activity;Landroid/content/Intent;ILandroid/os/Bundle;)V
|
|
|
|
:goto_1
|
|
return-void
|
|
.end method
|