Rabbit-R1/original r1/smali/smali_classes2/androidx/fragment/app/DialogFragment.smali

1532 lines
40 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class public Landroidx/fragment/app/DialogFragment;
.super Landroidx/fragment/app/Fragment;
.source "DialogFragment.java"
# interfaces
.implements Landroid/content/DialogInterface$OnCancelListener;
.implements Landroid/content/DialogInterface$OnDismissListener;
# static fields
.field private static final SAVED_BACK_STACK_ID:Ljava/lang/String; = "android:backStackId"
.field private static final SAVED_CANCELABLE:Ljava/lang/String; = "android:cancelable"
.field private static final SAVED_DIALOG_STATE_TAG:Ljava/lang/String; = "android:savedDialogState"
.field private static final SAVED_INTERNAL_DIALOG_SHOWING:Ljava/lang/String; = "android:dialogShowing"
.field private static final SAVED_SHOWS_DIALOG:Ljava/lang/String; = "android:showsDialog"
.field private static final SAVED_STYLE:Ljava/lang/String; = "android:style"
.field private static final SAVED_THEME:Ljava/lang/String; = "android:theme"
.field public static final STYLE_NORMAL:I = 0x0
.field public static final STYLE_NO_FRAME:I = 0x2
.field public static final STYLE_NO_INPUT:I = 0x3
.field public static final STYLE_NO_TITLE:I = 0x1
# instance fields
.field private mBackStackId:I
.field private mCancelable:Z
.field private mCreatingDialog:Z
.field private mDialog:Landroid/app/Dialog;
.field private mDialogCreated:Z
.field private mDismissRunnable:Ljava/lang/Runnable;
.field private mDismissed:Z
.field private mHandler:Landroid/os/Handler;
.field private mObserver:Landroidx/lifecycle/Observer;
.annotation system Ldalvik/annotation/Signature;
value = {
"Landroidx/lifecycle/Observer<",
"Landroidx/lifecycle/LifecycleOwner;",
">;"
}
.end annotation
.end field
.field private mOnCancelListener:Landroid/content/DialogInterface$OnCancelListener;
.field private mOnDismissListener:Landroid/content/DialogInterface$OnDismissListener;
.field private mShownByMe:Z
.field private mShowsDialog:Z
.field private mStyle:I
.field private mTheme:I
.field private mViewDestroyed:Z
# direct methods
.method public constructor <init>()V
.locals 2
.line 434
invoke-direct {p0}, Landroidx/fragment/app/Fragment;-><init>()V
.line 353
new-instance v0, Landroidx/fragment/app/DialogFragment$1;
invoke-direct {v0, p0}, Landroidx/fragment/app/DialogFragment$1;-><init>(Landroidx/fragment/app/DialogFragment;)V
iput-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDismissRunnable:Ljava/lang/Runnable;
.line 361
new-instance v0, Landroidx/fragment/app/DialogFragment$2;
invoke-direct {v0, p0}, Landroidx/fragment/app/DialogFragment$2;-><init>(Landroidx/fragment/app/DialogFragment;)V
iput-object v0, p0, Landroidx/fragment/app/DialogFragment;->mOnCancelListener:Landroid/content/DialogInterface$OnCancelListener;
.line 372
new-instance v0, Landroidx/fragment/app/DialogFragment$3;
invoke-direct {v0, p0}, Landroidx/fragment/app/DialogFragment$3;-><init>(Landroidx/fragment/app/DialogFragment;)V
iput-object v0, p0, Landroidx/fragment/app/DialogFragment;->mOnDismissListener:Landroid/content/DialogInterface$OnDismissListener;
const/4 v0, 0x0
iput v0, p0, Landroidx/fragment/app/DialogFragment;->mStyle:I
iput v0, p0, Landroidx/fragment/app/DialogFragment;->mTheme:I
const/4 v1, 0x1
iput-boolean v1, p0, Landroidx/fragment/app/DialogFragment;->mCancelable:Z
iput-boolean v1, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
const/4 v1, -0x1
iput v1, p0, Landroidx/fragment/app/DialogFragment;->mBackStackId:I
.line 389
new-instance v1, Landroidx/fragment/app/DialogFragment$4;
invoke-direct {v1, p0}, Landroidx/fragment/app/DialogFragment$4;-><init>(Landroidx/fragment/app/DialogFragment;)V
iput-object v1, p0, Landroidx/fragment/app/DialogFragment;->mObserver:Landroidx/lifecycle/Observer;
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mDialogCreated:Z
return-void
.end method
.method public constructor <init>(I)V
.locals 1
.line 459
invoke-direct {p0, p1}, Landroidx/fragment/app/Fragment;-><init>(I)V
.line 353
new-instance p1, Landroidx/fragment/app/DialogFragment$1;
invoke-direct {p1, p0}, Landroidx/fragment/app/DialogFragment$1;-><init>(Landroidx/fragment/app/DialogFragment;)V
iput-object p1, p0, Landroidx/fragment/app/DialogFragment;->mDismissRunnable:Ljava/lang/Runnable;
.line 361
new-instance p1, Landroidx/fragment/app/DialogFragment$2;
invoke-direct {p1, p0}, Landroidx/fragment/app/DialogFragment$2;-><init>(Landroidx/fragment/app/DialogFragment;)V
iput-object p1, p0, Landroidx/fragment/app/DialogFragment;->mOnCancelListener:Landroid/content/DialogInterface$OnCancelListener;
.line 372
new-instance p1, Landroidx/fragment/app/DialogFragment$3;
invoke-direct {p1, p0}, Landroidx/fragment/app/DialogFragment$3;-><init>(Landroidx/fragment/app/DialogFragment;)V
iput-object p1, p0, Landroidx/fragment/app/DialogFragment;->mOnDismissListener:Landroid/content/DialogInterface$OnDismissListener;
const/4 p1, 0x0
iput p1, p0, Landroidx/fragment/app/DialogFragment;->mStyle:I
iput p1, p0, Landroidx/fragment/app/DialogFragment;->mTheme:I
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mCancelable:Z
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
const/4 v0, -0x1
iput v0, p0, Landroidx/fragment/app/DialogFragment;->mBackStackId:I
.line 389
new-instance v0, Landroidx/fragment/app/DialogFragment$4;
invoke-direct {v0, p0}, Landroidx/fragment/app/DialogFragment$4;-><init>(Landroidx/fragment/app/DialogFragment;)V
iput-object v0, p0, Landroidx/fragment/app/DialogFragment;->mObserver:Landroidx/lifecycle/Observer;
iput-boolean p1, p0, Landroidx/fragment/app/DialogFragment;->mDialogCreated:Z
return-void
.end method
.method static synthetic access$000(Landroidx/fragment/app/DialogFragment;)Landroid/app/Dialog;
.locals 0
.line 307
iget-object p0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
return-object p0
.end method
.method static synthetic access$100(Landroidx/fragment/app/DialogFragment;)Landroid/content/DialogInterface$OnDismissListener;
.locals 0
.line 307
iget-object p0, p0, Landroidx/fragment/app/DialogFragment;->mOnDismissListener:Landroid/content/DialogInterface$OnDismissListener;
return-object p0
.end method
.method static synthetic access$200(Landroidx/fragment/app/DialogFragment;)Z
.locals 0
.line 307
iget-boolean p0, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
return p0
.end method
.method private dismissInternal(ZZZ)V
.locals 3
iget-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mDismissed:Z
if-eqz v0, :cond_0
return-void
:cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mDismissed:Z
const/4 v1, 0x0
iput-boolean v1, p0, Landroidx/fragment/app/DialogFragment;->mShownByMe:Z
iget-object v1, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
if-eqz v1, :cond_2
const/4 v2, 0x0
.line 587
invoke-virtual {v1, v2}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V
iget-object v1, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
.line 588
invoke-virtual {v1}, Landroid/app/Dialog;->dismiss()V
if-nez p2, :cond_2
.line 594
invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper;
move-result-object p2
iget-object v1, p0, Landroidx/fragment/app/DialogFragment;->mHandler:Landroid/os/Handler;
invoke-virtual {v1}, Landroid/os/Handler;->getLooper()Landroid/os/Looper;
move-result-object v1
if-ne p2, v1, :cond_1
iget-object p2, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
.line 595
invoke-virtual {p0, p2}, Landroidx/fragment/app/DialogFragment;->onDismiss(Landroid/content/DialogInterface;)V
goto :goto_0
:cond_1
iget-object p2, p0, Landroidx/fragment/app/DialogFragment;->mHandler:Landroid/os/Handler;
iget-object v1, p0, Landroidx/fragment/app/DialogFragment;->mDismissRunnable:Ljava/lang/Runnable;
.line 597
invoke-virtual {p2, v1}, Landroid/os/Handler;->post(Ljava/lang/Runnable;)Z
:cond_2
:goto_0
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mViewDestroyed:Z
iget p2, p0, Landroidx/fragment/app/DialogFragment;->mBackStackId:I
if-ltz p2, :cond_4
if-eqz p3, :cond_3
.line 604
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->getParentFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object p1
iget p2, p0, Landroidx/fragment/app/DialogFragment;->mBackStackId:I
invoke-virtual {p1, p2, v0}, Landroidx/fragment/app/FragmentManager;->popBackStackImmediate(II)Z
goto :goto_1
.line 607
:cond_3
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->getParentFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object p2
iget p3, p0, Landroidx/fragment/app/DialogFragment;->mBackStackId:I
invoke-virtual {p2, p3, v0, p1}, Landroidx/fragment/app/FragmentManager;->popBackStack(IIZ)V
:goto_1
const/4 p1, -0x1
iput p1, p0, Landroidx/fragment/app/DialogFragment;->mBackStackId:I
goto :goto_2
.line 612
:cond_4
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->getParentFragmentManager()Landroidx/fragment/app/FragmentManager;
move-result-object p2
invoke-virtual {p2}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
move-result-object p2
.line 613
invoke-virtual {p2, v0}, Landroidx/fragment/app/FragmentTransaction;->setReorderingAllowed(Z)Landroidx/fragment/app/FragmentTransaction;
.line 614
invoke-virtual {p2, p0}, Landroidx/fragment/app/FragmentTransaction;->remove(Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransaction;
if-eqz p3, :cond_5
.line 617
invoke-virtual {p2}, Landroidx/fragment/app/FragmentTransaction;->commitNow()V
goto :goto_2
:cond_5
if-eqz p1, :cond_6
.line 619
invoke-virtual {p2}, Landroidx/fragment/app/FragmentTransaction;->commitAllowingStateLoss()I
goto :goto_2
.line 621
:cond_6
invoke-virtual {p2}, Landroidx/fragment/app/FragmentTransaction;->commit()I
:goto_2
return-void
.end method
.method private prepareDialog(Landroid/os/Bundle;)V
.locals 3
iget-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
if-nez v0, :cond_0
return-void
:cond_0
iget-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mDialogCreated:Z
if-nez v0, :cond_3
const/4 v0, 0x0
const/4 v1, 0x1
:try_start_0
iput-boolean v1, p0, Landroidx/fragment/app/DialogFragment;->mCreatingDialog:Z
.line 930
invoke-virtual {p0, p1}, Landroidx/fragment/app/DialogFragment;->onCreateDialog(Landroid/os/Bundle;)Landroid/app/Dialog;
move-result-object p1
iput-object p1, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
iget-boolean v2, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
if-eqz v2, :cond_2
iget v2, p0, Landroidx/fragment/app/DialogFragment;->mStyle:I
.line 934
invoke-virtual {p0, p1, v2}, Landroidx/fragment/app/DialogFragment;->setupDialog(Landroid/app/Dialog;I)V
.line 935
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->getContext()Landroid/content/Context;
move-result-object p1
.line 936
instance-of v2, p1, Landroid/app/Activity;
if-eqz v2, :cond_1
iget-object v2, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
.line 937
check-cast p1, Landroid/app/Activity;
invoke-virtual {v2, p1}, Landroid/app/Dialog;->setOwnerActivity(Landroid/app/Activity;)V
:cond_1
iget-object p1, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
iget-boolean v2, p0, Landroidx/fragment/app/DialogFragment;->mCancelable:Z
.line 939
invoke-virtual {p1, v2}, Landroid/app/Dialog;->setCancelable(Z)V
iget-object p1, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
iget-object v2, p0, Landroidx/fragment/app/DialogFragment;->mOnCancelListener:Landroid/content/DialogInterface$OnCancelListener;
.line 940
invoke-virtual {p1, v2}, Landroid/app/Dialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V
iget-object p1, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
iget-object v2, p0, Landroidx/fragment/app/DialogFragment;->mOnDismissListener:Landroid/content/DialogInterface$OnDismissListener;
.line 941
invoke-virtual {p1, v2}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V
iput-boolean v1, p0, Landroidx/fragment/app/DialogFragment;->mDialogCreated:Z
goto :goto_0
:cond_2
const/4 p1, 0x0
iput-object p1, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0
:goto_0
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mCreatingDialog:Z
goto :goto_1
:catchall_0
move-exception p1
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mCreatingDialog:Z
.line 950
throw p1
:cond_3
:goto_1
return-void
.end method
# virtual methods
.method createFragmentContainer()Landroidx/fragment/app/FragmentContainer;
.locals 2
.line 791
invoke-super {p0}, Landroidx/fragment/app/Fragment;->createFragmentContainer()Landroidx/fragment/app/FragmentContainer;
move-result-object v0
.line 792
new-instance v1, Landroidx/fragment/app/DialogFragment$5;
invoke-direct {v1, p0, v0}, Landroidx/fragment/app/DialogFragment$5;-><init>(Landroidx/fragment/app/DialogFragment;Landroidx/fragment/app/FragmentContainer;)V
return-object v1
.end method
.method public dismiss()V
.locals 1
const/4 v0, 0x0
.line 555
invoke-direct {p0, v0, v0, v0}, Landroidx/fragment/app/DialogFragment;->dismissInternal(ZZZ)V
return-void
.end method
.method public dismissAllowingStateLoss()V
.locals 2
const/4 v0, 0x1
const/4 v1, 0x0
.line 574
invoke-direct {p0, v0, v1, v1}, Landroidx/fragment/app/DialogFragment;->dismissInternal(ZZZ)V
return-void
.end method
.method public dismissNow()V
.locals 2
const/4 v0, 0x0
const/4 v1, 0x1
.line 564
invoke-direct {p0, v0, v0, v1}, Landroidx/fragment/app/DialogFragment;->dismissInternal(ZZZ)V
return-void
.end method
.method public getDialog()Landroid/app/Dialog;
.locals 0
iget-object p0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
return-object p0
.end method
.method public getShowsDialog()Z
.locals 0
iget-boolean p0, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
return p0
.end method
.method public getTheme()I
.locals 0
iget p0, p0, Landroidx/fragment/app/DialogFragment;->mTheme:I
return p0
.end method
.method public isCancelable()Z
.locals 0
iget-boolean p0, p0, Landroidx/fragment/app/DialogFragment;->mCancelable:Z
return p0
.end method
.method public onActivityCreated(Landroid/os/Bundle;)V
.locals 0
.annotation runtime Ljava/lang/Deprecated;
.end annotation
.line 983
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onActivityCreated(Landroid/os/Bundle;)V
return-void
.end method
.method public onAttach(Landroid/content/Context;)V
.locals 1
.line 731
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onAttach(Landroid/content/Context;)V
.line 732
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->getViewLifecycleOwnerLiveData()Landroidx/lifecycle/LiveData;
move-result-object p1
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mObserver:Landroidx/lifecycle/Observer;
invoke-virtual {p1, v0}, Landroidx/lifecycle/LiveData;->observeForever(Landroidx/lifecycle/Observer;)V
iget-boolean p1, p0, Landroidx/fragment/app/DialogFragment;->mShownByMe:Z
if-nez p1, :cond_0
const/4 p1, 0x0
iput-boolean p1, p0, Landroidx/fragment/app/DialogFragment;->mDismissed:Z
:cond_0
return-void
.end method
.method public onCancel(Landroid/content/DialogInterface;)V
.locals 0
return-void
.end method
.method public onCreate(Landroid/os/Bundle;)V
.locals 3
.line 757
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onCreate(Landroid/os/Bundle;)V
.line 759
new-instance v0, Landroid/os/Handler;
invoke-direct {v0}, Landroid/os/Handler;-><init>()V
iput-object v0, p0, Landroidx/fragment/app/DialogFragment;->mHandler:Landroid/os/Handler;
.line 761
iget v0, p0, Landroidx/fragment/app/DialogFragment;->mContainerId:I
const/4 v1, 0x1
const/4 v2, 0x0
if-nez v0, :cond_0
move v0, v1
goto :goto_0
:cond_0
move v0, v2
:goto_0
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
if-eqz p1, :cond_1
const-string v0, "android:style"
.line 764
invoke-virtual {p1, v0, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
move-result v0
iput v0, p0, Landroidx/fragment/app/DialogFragment;->mStyle:I
const-string v0, "android:theme"
.line 765
invoke-virtual {p1, v0, v2}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
move-result v0
iput v0, p0, Landroidx/fragment/app/DialogFragment;->mTheme:I
const-string v0, "android:cancelable"
.line 766
invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v0
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mCancelable:Z
const-string v0, "android:showsDialog"
iget-boolean v1, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
.line 767
invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
move-result v0
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
const-string v0, "android:backStackId"
const/4 v1, -0x1
.line 768
invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I
move-result p1
iput p1, p0, Landroidx/fragment/app/DialogFragment;->mBackStackId:I
:cond_1
return-void
.end method
.method public onCreateDialog(Landroid/os/Bundle;)Landroid/app/Dialog;
.locals 1
const/4 p1, 0x3
.line 897
invoke-static {p1}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
move-result p1
if-eqz p1, :cond_0
.line 898
new-instance p1, Ljava/lang/StringBuilder;
const-string v0, "onCreateDialog called for DialogFragment "
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 p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
const-string v0, "FragmentManager"
invoke-static {v0, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
.line 900
:cond_0
new-instance p1, Landroidx/activity/ComponentDialog;
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->requireContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->getTheme()I
move-result p0
invoke-direct {p1, v0, p0}, Landroidx/activity/ComponentDialog;-><init>(Landroid/content/Context;I)V
return-object p1
.end method
.method public onDestroyView()V
.locals 2
.line 1043
invoke-super {p0}, Landroidx/fragment/app/Fragment;->onDestroyView()V
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
if-eqz v0, :cond_1
const/4 v1, 0x1
iput-boolean v1, p0, Landroidx/fragment/app/DialogFragment;->mViewDestroyed:Z
const/4 v1, 0x0
.line 1052
invoke-virtual {v0, v1}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
.line 1053
invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V
iget-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mDismissed:Z
if-nez v0, :cond_0
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
.line 1057
invoke-virtual {p0, v0}, Landroidx/fragment/app/DialogFragment;->onDismiss(Landroid/content/DialogInterface;)V
:cond_0
iput-object v1, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mDialogCreated:Z
:cond_1
return-void
.end method
.method public onDetach()V
.locals 1
.line 743
invoke-super {p0}, Landroidx/fragment/app/Fragment;->onDetach()V
iget-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mShownByMe:Z
if-nez v0, :cond_0
iget-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mDismissed:Z
if-nez v0, :cond_0
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mDismissed:Z
.line 750
:cond_0
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->getViewLifecycleOwnerLiveData()Landroidx/lifecycle/LiveData;
move-result-object v0
iget-object p0, p0, Landroidx/fragment/app/DialogFragment;->mObserver:Landroidx/lifecycle/Observer;
invoke-virtual {v0, p0}, Landroidx/lifecycle/LiveData;->removeObserver(Landroidx/lifecycle/Observer;)V
return-void
.end method
.method public onDismiss(Landroid/content/DialogInterface;)V
.locals 1
iget-boolean p1, p0, Landroidx/fragment/app/DialogFragment;->mViewDestroyed:Z
if-nez p1, :cond_1
const/4 p1, 0x3
.line 915
invoke-static {p1}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
move-result p1
if-eqz p1, :cond_0
.line 916
new-instance p1, Ljava/lang/StringBuilder;
const-string v0, "onDismiss called for DialogFragment "
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 p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
const-string v0, "FragmentManager"
invoke-static {v0, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:cond_0
const/4 p1, 0x0
const/4 v0, 0x1
.line 918
invoke-direct {p0, v0, v0, p1}, Landroidx/fragment/app/DialogFragment;->dismissInternal(ZZZ)V
:cond_1
return-void
.end method
.method onFindViewById(I)Landroid/view/View;
.locals 0
iget-object p0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
if-eqz p0, :cond_0
.line 812
invoke-virtual {p0, p1}, Landroid/app/Dialog;->findViewById(I)Landroid/view/View;
move-result-object p0
return-object p0
:cond_0
const/4 p0, 0x0
return-object p0
.end method
.method public onGetLayoutInflater(Landroid/os/Bundle;)Landroid/view/LayoutInflater;
.locals 4
.line 831
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onGetLayoutInflater(Landroid/os/Bundle;)Landroid/view/LayoutInflater;
move-result-object v0
iget-boolean v1, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
const/4 v2, 0x2
const-string v3, "FragmentManager"
if-eqz v1, :cond_3
iget-boolean v1, p0, Landroidx/fragment/app/DialogFragment;->mCreatingDialog:Z
if-eqz v1, :cond_0
goto :goto_0
.line 844
:cond_0
invoke-direct {p0, p1}, Landroidx/fragment/app/DialogFragment;->prepareDialog(Landroid/os/Bundle;)V
.line 846
invoke-static {v2}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
move-result p1
if-eqz p1, :cond_1
.line 847
new-instance p1, Ljava/lang/StringBuilder;
const-string v1, "get layout inflater for DialogFragment "
invoke-direct {p1, v1}, 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 p1
const-string v1, " from dialog context"
invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {v3, p1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:cond_1
iget-object p0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
if-eqz p0, :cond_2
.line 851
invoke-virtual {p0}, Landroid/app/Dialog;->getContext()Landroid/content/Context;
move-result-object p0
invoke-virtual {v0, p0}, Landroid/view/LayoutInflater;->cloneInContext(Landroid/content/Context;)Landroid/view/LayoutInflater;
move-result-object v0
:cond_2
return-object v0
.line 833
:cond_3
:goto_0
invoke-static {v2}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
move-result p1
if-eqz p1, :cond_5
.line 834
new-instance p1, Ljava/lang/StringBuilder;
const-string v1, "getting layout inflater for DialogFragment "
invoke-direct {p1, v1}, 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 p1
invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
iget-boolean p0, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
if-nez p0, :cond_4
.line 836
new-instance p0, Ljava/lang/StringBuilder;
const-string v1, "mShowsDialog = false: "
invoke-direct {p0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, p1}, 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 {v3, p0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_1
.line 838
:cond_4
new-instance p0, Ljava/lang/StringBuilder;
const-string v1, "mCreatingDialog = true: "
invoke-direct {p0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {p0, p1}, 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 {v3, p0}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:cond_5
:goto_1
return-object v0
.end method
.method onHasView()Z
.locals 0
iget-boolean p0, p0, Landroidx/fragment/app/DialogFragment;->mDialogCreated:Z
return p0
.end method
.method public onSaveInstanceState(Landroid/os/Bundle;)V
.locals 3
.line 1005
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onSaveInstanceState(Landroid/os/Bundle;)V
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
if-eqz v0, :cond_0
.line 1007
invoke-virtual {v0}, Landroid/app/Dialog;->onSaveInstanceState()Landroid/os/Bundle;
move-result-object v0
const-string v1, "android:dialogShowing"
const/4 v2, 0x0
.line 1008
invoke-virtual {v0, v1, v2}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
const-string v1, "android:savedDialogState"
.line 1009
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V
:cond_0
iget v0, p0, Landroidx/fragment/app/DialogFragment;->mStyle:I
if-eqz v0, :cond_1
const-string v1, "android:style"
.line 1012
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
:cond_1
iget v0, p0, Landroidx/fragment/app/DialogFragment;->mTheme:I
if-eqz v0, :cond_2
const-string v1, "android:theme"
.line 1015
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
:cond_2
iget-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mCancelable:Z
if-nez v0, :cond_3
const-string v1, "android:cancelable"
.line 1018
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
:cond_3
iget-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
if-nez v0, :cond_4
const-string v1, "android:showsDialog"
.line 1021
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
:cond_4
iget p0, p0, Landroidx/fragment/app/DialogFragment;->mBackStackId:I
const/4 v0, -0x1
if-eq p0, v0, :cond_5
const-string v0, "android:backStackId"
.line 1024
invoke-virtual {p1, v0, p0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
:cond_5
return-void
.end method
.method public onStart()V
.locals 2
.line 989
invoke-super {p0}, Landroidx/fragment/app/Fragment;->onStart()V
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
if-eqz v0, :cond_0
const/4 v1, 0x0
iput-boolean v1, p0, Landroidx/fragment/app/DialogFragment;->mViewDestroyed:Z
.line 993
invoke-virtual {v0}, Landroid/app/Dialog;->show()V
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
.line 995
invoke-virtual {v0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;
move-result-object v0
invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;
move-result-object v0
.line 996
invoke-static {v0, p0}, Landroidx/lifecycle/ViewTreeLifecycleOwner;->set(Landroid/view/View;Landroidx/lifecycle/LifecycleOwner;)V
.line 997
invoke-static {v0, p0}, Landroidx/lifecycle/ViewTreeViewModelStoreOwner;->set(Landroid/view/View;Landroidx/lifecycle/ViewModelStoreOwner;)V
.line 998
invoke-static {v0, p0}, Landroidx/savedstate/ViewTreeSavedStateRegistryOwner;->set(Landroid/view/View;Landroidx/savedstate/SavedStateRegistryOwner;)V
:cond_0
return-void
.end method
.method public onStop()V
.locals 0
.line 1031
invoke-super {p0}, Landroidx/fragment/app/Fragment;->onStop()V
iget-object p0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
if-eqz p0, :cond_0
.line 1033
invoke-virtual {p0}, Landroid/app/Dialog;->hide()V
:cond_0
return-void
.end method
.method public onViewStateRestored(Landroid/os/Bundle;)V
.locals 1
.line 957
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onViewStateRestored(Landroid/os/Bundle;)V
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
if-eqz v0, :cond_0
if-eqz p1, :cond_0
const-string v0, "android:savedDialogState"
.line 959
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
move-result-object p1
if-eqz p1, :cond_0
iget-object p0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
.line 961
invoke-virtual {p0, p1}, Landroid/app/Dialog;->onRestoreInstanceState(Landroid/os/Bundle;)V
:cond_0
return-void
.end method
.method performCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)V
.locals 0
.line 775
invoke-super {p0, p1, p2, p3}, Landroidx/fragment/app/Fragment;->performCreateView(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)V
.line 778
iget-object p1, p0, Landroidx/fragment/app/DialogFragment;->mView:Landroid/view/View;
if-nez p1, :cond_0
iget-object p1, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
if-eqz p1, :cond_0
if-eqz p3, :cond_0
const-string p1, "android:savedDialogState"
.line 780
invoke-virtual {p3, p1}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
move-result-object p1
if-eqz p1, :cond_0
iget-object p0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
.line 782
invoke-virtual {p0, p1}, Landroid/app/Dialog;->onRestoreInstanceState(Landroid/os/Bundle;)V
:cond_0
return-void
.end method
.method public final requireComponentDialog()Landroidx/activity/ComponentDialog;
.locals 4
.line 663
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->requireDialog()Landroid/app/Dialog;
move-result-object v0
.line 664
instance-of v1, v0, Landroidx/activity/ComponentDialog;
if-eqz v1, :cond_0
.line 669
check-cast v0, Landroidx/activity/ComponentDialog;
return-object v0
.line 665
:cond_0
new-instance v1, Ljava/lang/IllegalStateException;
new-instance v2, Ljava/lang/StringBuilder;
const-string v3, "DialogFragment "
invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v2, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
const-string v2, " did not return a ComponentDialog instance from requireDialog(). The actual Dialog is "
invoke-virtual {p0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0, v0}, 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-direct {v1, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v1
.end method
.method public final requireDialog()Landroid/app/Dialog;
.locals 3
.line 645
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->getDialog()Landroid/app/Dialog;
move-result-object v0
if-eqz v0, :cond_0
return-object v0
.line 647
:cond_0
new-instance v0, Ljava/lang/IllegalStateException;
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "DialogFragment "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
const-string v1, " does not have a Dialog."
invoke-virtual {p0, v1}, 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-direct {v0, p0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public setCancelable(Z)V
.locals 0
iput-boolean p1, p0, Landroidx/fragment/app/DialogFragment;->mCancelable:Z
iget-object p0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
if-eqz p0, :cond_0
.line 688
invoke-virtual {p0, p1}, Landroid/app/Dialog;->setCancelable(Z)V
:cond_0
return-void
.end method
.method public setShowsDialog(Z)V
.locals 0
iput-boolean p1, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
return-void
.end method
.method public setStyle(II)V
.locals 3
const/4 v0, 0x2
.line 477
invoke-static {v0}, Landroidx/fragment/app/FragmentManager;->isLoggingEnabled(I)Z
move-result v1
if-eqz v1, :cond_0
.line 478
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "Setting style and theme for DialogFragment "
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, " to "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
const-string v2, ", "
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object v1
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
const-string v2, "FragmentManager"
invoke-static {v2, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
:cond_0
iput p1, p0, Landroidx/fragment/app/DialogFragment;->mStyle:I
if-eq p1, v0, :cond_1
const/4 v0, 0x3
if-ne p1, v0, :cond_2
:cond_1
const p1, 0x1030059
iput p1, p0, Landroidx/fragment/app/DialogFragment;->mTheme:I
:cond_2
if-eqz p2, :cond_3
iput p2, p0, Landroidx/fragment/app/DialogFragment;->mTheme:I
:cond_3
return-void
.end method
.method public setupDialog(Landroid/app/Dialog;I)V
.locals 1
const/4 p0, 0x1
if-eq p2, p0, :cond_1
const/4 v0, 0x2
if-eq p2, v0, :cond_1
const/4 v0, 0x3
if-eq p2, v0, :cond_0
goto :goto_0
.line 860
:cond_0
invoke-virtual {p1}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;
move-result-object p2
if-eqz p2, :cond_1
const/16 v0, 0x18
.line 862
invoke-virtual {p2, v0}, Landroid/view/Window;->addFlags(I)V
.line 868
:cond_1
invoke-virtual {p1, p0}, Landroid/app/Dialog;->requestWindowFeature(I)Z
:goto_0
return-void
.end method
.method public show(Landroidx/fragment/app/FragmentTransaction;Ljava/lang/String;)I
.locals 2
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mDismissed:Z
const/4 v1, 0x1
iput-boolean v1, p0, Landroidx/fragment/app/DialogFragment;->mShownByMe:Z
.line 522
invoke-virtual {p1, p0, p2}, Landroidx/fragment/app/FragmentTransaction;->add(Landroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mViewDestroyed:Z
.line 524
invoke-virtual {p1}, Landroidx/fragment/app/FragmentTransaction;->commit()I
move-result p1
iput p1, p0, Landroidx/fragment/app/DialogFragment;->mBackStackId:I
return p1
.end method
.method public show(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;)V
.locals 1
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mDismissed:Z
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mShownByMe:Z
.line 504
invoke-virtual {p1}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
move-result-object p1
.line 505
invoke-virtual {p1, v0}, Landroidx/fragment/app/FragmentTransaction;->setReorderingAllowed(Z)Landroidx/fragment/app/FragmentTransaction;
.line 506
invoke-virtual {p1, p0, p2}, Landroidx/fragment/app/FragmentTransaction;->add(Landroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;
.line 507
invoke-virtual {p1}, Landroidx/fragment/app/FragmentTransaction;->commit()I
return-void
.end method
.method public showNow(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;)V
.locals 1
const/4 v0, 0x0
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mDismissed:Z
const/4 v0, 0x1
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mShownByMe:Z
.line 542
invoke-virtual {p1}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
move-result-object p1
.line 543
invoke-virtual {p1, v0}, Landroidx/fragment/app/FragmentTransaction;->setReorderingAllowed(Z)Landroidx/fragment/app/FragmentTransaction;
.line 544
invoke-virtual {p1, p0, p2}, Landroidx/fragment/app/FragmentTransaction;->add(Landroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;
.line 545
invoke-virtual {p1}, Landroidx/fragment/app/FragmentTransaction;->commitNow()V
return-void
.end method