Rabbit-R1/original r1/smali/smali_classes2/androidx/fragment/app/FragmentManager$8.smali

150 lines
4.4 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class Landroidx/fragment/app/FragmentManager$8;
.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<",
"Landroidx/activity/result/ActivityResult;",
">;"
}
.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$8;->this$0:Landroidx/fragment/app/FragmentManager;
.line 2735
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public onActivityResult(Landroidx/activity/result/ActivityResult;)V
.locals 3
iget-object v0, p0, Landroidx/fragment/app/FragmentManager$8;->this$0:Landroidx/fragment/app/FragmentManager;
.line 2738
iget-object v0, v0, Landroidx/fragment/app/FragmentManager;->mLaunchedFragments:Ljava/util/ArrayDeque;
invoke-virtual {v0}, Ljava/util/ArrayDeque;->pollLast()Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroidx/fragment/app/FragmentManager$LaunchedFragmentInfo;
const-string v1, "FragmentManager"
if-nez v0, :cond_0
.line 2740
new-instance p1, Ljava/lang/StringBuilder;
const-string v0, "No Activities were started for result 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 {v1, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-void
.line 2743
:cond_0
iget-object v2, v0, Landroidx/fragment/app/FragmentManager$LaunchedFragmentInfo;->mWho:Ljava/lang/String;
.line 2744
iget v0, v0, Landroidx/fragment/app/FragmentManager$LaunchedFragmentInfo;->mRequestCode:I
iget-object p0, p0, Landroidx/fragment/app/FragmentManager$8;->this$0:Landroidx/fragment/app/FragmentManager;
.line 2745
invoke-static {p0}, Landroidx/fragment/app/FragmentManager;->access$200(Landroidx/fragment/app/FragmentManager;)Landroidx/fragment/app/FragmentStore;
move-result-object p0
invoke-virtual {p0, v2}, Landroidx/fragment/app/FragmentStore;->findFragmentByWho(Ljava/lang/String;)Landroidx/fragment/app/Fragment;
move-result-object p0
if-nez p0, :cond_1
.line 2750
new-instance p0, Ljava/lang/StringBuilder;
const-string p1, "Activity result delivered for unknown Fragment "
invoke-direct {p0, p1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, v2}, 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 {v1, p0}, Landroid/util/Log;->w(Ljava/lang/String;Ljava/lang/String;)I
return-void
.line 2755
:cond_1
invoke-virtual {p1}, Landroidx/activity/result/ActivityResult;->getResultCode()I
move-result v1
.line 2756
invoke-virtual {p1}, Landroidx/activity/result/ActivityResult;->getData()Landroid/content/Intent;
move-result-object p1
.line 2755
invoke-virtual {p0, v0, v1, p1}, Landroidx/fragment/app/Fragment;->onActivityResult(IILandroid/content/Intent;)V
return-void
.end method
.method public bridge synthetic onActivityResult(Ljava/lang/Object;)V
.locals 0
.line 2735
check-cast p1, Landroidx/activity/result/ActivityResult;
invoke-virtual {p0, p1}, Landroidx/fragment/app/FragmentManager$8;->onActivityResult(Landroidx/activity/result/ActivityResult;)V
return-void
.end method