Rabbit-R1/original r1/smali/smali_classes2/androidx/fragment/app/FragmentManager$10.smali
2024-05-21 17:08:36 -04:00

220 lines
5.6 KiB
Smali

.class Landroidx/fragment/app/FragmentManager$10;
.super Ljava/lang/Object;
.source "FragmentManager.java"
# interfaces
.implements Landroidx/activity/result/ActivityResultCallback;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Landroidx/fragment/app/FragmentManager;->attachController(Landroidx/fragment/app/FragmentHostCallback;Landroidx/fragment/app/FragmentContainer;Landroidx/fragment/app/Fragment;)V
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x0
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/lang/Object;",
"Landroidx/activity/result/ActivityResultCallback<",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Boolean;",
">;>;"
}
.end annotation
# instance fields
.field final synthetic this$0:Landroidx/fragment/app/FragmentManager;
# direct methods
.method constructor <init>(Landroidx/fragment/app/FragmentManager;)V
.locals 0
iput-object p1, p0, Landroidx/fragment/app/FragmentManager$10;->this$0:Landroidx/fragment/app/FragmentManager;
.line 2789
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public bridge synthetic onActivityResult(Ljava/lang/Object;)V
.locals 0
.line 2789
check-cast p1, Ljava/util/Map;
invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentManager$10;->onActivityResult(Ljava/util/Map;)V
return-void
.end method
.method public onActivityResult(Ljava/util/Map;)V
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/String;",
"Ljava/lang/Boolean;",
">;)V"
}
.end annotation
.line 2793
invoke-interface {p1}, Ljava/util/Map;->keySet()Ljava/util/Set;
move-result-object v0
const/4 v1, 0x0
new-array v2, v1, [Ljava/lang/String;
invoke-interface {v0, v2}, Ljava/util/Set;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v0
check-cast v0, [Ljava/lang/String;
.line 2794
new-instance v2, Ljava/util/ArrayList;
invoke-interface {p1}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object p1
invoke-direct {v2, p1}, Ljava/util/ArrayList;-><init>(Ljava/util/Collection;)V
.line 2795
invoke-virtual {v2}, Ljava/util/ArrayList;->size()I
move-result p1
new-array p1, p1, [I
move v3, v1
.line 2796
:goto_0
invoke-virtual {v2}, Ljava/util/ArrayList;->size()I
move-result v4
if-ge v3, v4, :cond_1
.line 2797
invoke-virtual {v2, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/Boolean;
invoke-virtual {v4}, Ljava/lang/Boolean;->booleanValue()Z
move-result v4
if-eqz v4, :cond_0
move v4, v1
goto :goto_1
:cond_0
const/4 v4, -0x1
.line 2799
:goto_1
aput v4, p1, v3
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_1
iget-object v1, p0, Landroidx/fragment/app/FragmentManager$10;->this$0:Landroidx/fragment/app/FragmentManager;
.line 2801
iget-object v1, v1, Landroidx/fragment/app/FragmentManager;->mLaunchedFragments:Ljava/util/ArrayDeque;
invoke-virtual {v1}, Ljava/util/ArrayDeque;->pollFirst()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroidx/fragment/app/FragmentManager$LaunchedFragmentInfo;
const-string v2, "FragmentManager"
if-nez v1, :cond_2
.line 2803
new-instance p1, Ljava/lang/StringBuilder;
const-string v0, "No permissions were requested for "
invoke-direct {p1, v0}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-static {v2, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-void
.line 2806
:cond_2
iget-object v3, v1, Landroidx/fragment/app/FragmentManager$LaunchedFragmentInfo;->mWho:Ljava/lang/String;
.line 2807
iget v1, v1, Landroidx/fragment/app/FragmentManager$LaunchedFragmentInfo;->mRequestCode:I
iget-object p0, p0, Landroidx/fragment/app/FragmentManager$10;->this$0:Landroidx/fragment/app/FragmentManager;
.line 2808
invoke-static {p0}, Landroidx/fragment/app/FragmentManager;->access$200(Landroidx/fragment/app/FragmentManager;)Landroidx/fragment/app/FragmentStore;
move-result-object p0
invoke-virtual {p0, v3}, Landroidx/fragment/app/FragmentStore;->findFragmentByWho(Ljava/lang/String;)Landroidx/fragment/app/Fragment;
move-result-object p0
if-nez p0, :cond_3
.line 2813
new-instance p0, Ljava/lang/StringBuilder;
const-string p1, "Permission request result delivered for unknown Fragment "
invoke-direct {p0, p1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-static {v2, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-void
.line 2817
:cond_3
invoke-virtual {p0, v1, v0, p1}, Landroidx/fragment/app/Fragment;->onRequestPermissionsResult(I[Ljava/lang/String;[I)V
return-void
.end method