1021 lines
28 KiB
Smali
1021 lines
28 KiB
Smali
|
.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 public static final SAVED_BACK_STACK_ID:Ljava/lang/String; = "android:backStackId"
|
||
|
|
||
|
.field public static final SAVED_CANCELABLE:Ljava/lang/String; = "android:cancelable"
|
||
|
|
||
|
.field public static final SAVED_DIALOG_STATE_TAG:Ljava/lang/String; = "android:savedDialogState"
|
||
|
|
||
|
.field public static final SAVED_SHOWS_DIALOG:Ljava/lang/String; = "android:showsDialog"
|
||
|
|
||
|
.field public static final SAVED_STYLE:Ljava/lang/String; = "android:style"
|
||
|
|
||
|
.field public 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 public mBackStackId:I
|
||
|
|
||
|
.field public mCancelable:Z
|
||
|
|
||
|
.field public mCreatingDialog:Z
|
||
|
|
||
|
.field public mDialog:Landroid/app/Dialog;
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end field
|
||
|
|
||
|
.field public mDismissRunnable:Ljava/lang/Runnable;
|
||
|
|
||
|
.field public mDismissed:Z
|
||
|
|
||
|
.field public mHandler:Landroid/os/Handler;
|
||
|
|
||
|
.field public mOnCancelListener:Landroid/content/DialogInterface$OnCancelListener;
|
||
|
|
||
|
.field public mOnDismissListener:Landroid/content/DialogInterface$OnDismissListener;
|
||
|
|
||
|
.field public mShownByMe:Z
|
||
|
|
||
|
.field public mShowsDialog:Z
|
||
|
|
||
|
.field public mStyle:I
|
||
|
|
||
|
.field public mTheme:I
|
||
|
|
||
|
.field public mViewDestroyed:Z
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 1
|
||
|
|
||
|
invoke-direct {p0}, Landroidx/fragment/app/Fragment;-><init>()V
|
||
|
|
||
|
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;
|
||
|
|
||
|
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;
|
||
|
|
||
|
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 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
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic access$000(Landroidx/fragment/app/DialogFragment;)Landroid/app/Dialog;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method public static synthetic access$100(Landroidx/fragment/app/DialogFragment;)Landroid/content/DialogInterface$OnDismissListener;
|
||
|
.locals 0
|
||
|
|
||
|
iget-object p0, p0, Landroidx/fragment/app/DialogFragment;->mOnDismissListener:Landroid/content/DialogInterface$OnDismissListener;
|
||
|
|
||
|
return-object p0
|
||
|
.end method
|
||
|
|
||
|
.method private dismissInternal(ZZ)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
|
||
|
|
||
|
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;
|
||
|
|
||
|
invoke-virtual {v1}, Landroid/app/Dialog;->dismiss()V
|
||
|
|
||
|
if-nez p2, :cond_2
|
||
|
|
||
|
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;
|
||
|
|
||
|
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;
|
||
|
|
||
|
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_3
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->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;->popBackStack(II)V
|
||
|
|
||
|
const/4 p1, -0x1
|
||
|
|
||
|
iput p1, p0, Landroidx/fragment/app/DialogFragment;->mBackStackId:I
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_3
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->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
|
||
|
|
||
|
invoke-virtual {p2, p0}, Landroidx/fragment/app/FragmentTransaction;->remove(Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransaction;
|
||
|
|
||
|
if-eqz p1, :cond_4
|
||
|
|
||
|
invoke-virtual {p2}, Landroidx/fragment/app/FragmentTransaction;->commitAllowingStateLoss()I
|
||
|
|
||
|
goto :goto_1
|
||
|
|
||
|
:cond_4
|
||
|
invoke-virtual {p2}, Landroidx/fragment/app/FragmentTransaction;->commit()I
|
||
|
|
||
|
:goto_1
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
|
||
|
# virtual methods
|
||
|
.method public dismiss()V
|
||
|
.locals 1
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
invoke-direct {p0, v0, v0}, Landroidx/fragment/app/DialogFragment;->dismissInternal(ZZ)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public dismissAllowingStateLoss()V
|
||
|
.locals 2
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
invoke-direct {p0, v0, v1}, Landroidx/fragment/app/DialogFragment;->dismissInternal(ZZ)V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public getDialog()Landroid/app/Dialog;
|
||
|
.locals 1
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
|
||
|
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
|
||
|
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public getShowsDialog()Z
|
||
|
.locals 1
|
||
|
|
||
|
iget-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public getTheme()I
|
||
|
.locals 1
|
||
|
.annotation build Landroidx/annotation/StyleRes;
|
||
|
.end annotation
|
||
|
|
||
|
iget v0, p0, Landroidx/fragment/app/DialogFragment;->mTheme:I
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public isCancelable()Z
|
||
|
.locals 1
|
||
|
|
||
|
iget-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mCancelable:Z
|
||
|
|
||
|
return v0
|
||
|
.end method
|
||
|
|
||
|
.method public onActivityCreated(Landroid/os/Bundle;)V
|
||
|
.locals 2
|
||
|
.param p1 # Landroid/os/Bundle;
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation build Landroidx/annotation/MainThread;
|
||
|
.end annotation
|
||
|
|
||
|
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onActivityCreated(Landroid/os/Bundle;)V
|
||
|
|
||
|
iget-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
return-void
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getView()Landroid/view/View;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
iget-object v1, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
|
||
|
|
||
|
if-eqz v1, :cond_4
|
||
|
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
invoke-virtual {v0}, Landroid/view/View;->getParent()Landroid/view/ViewParent;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
if-nez v1, :cond_1
|
||
|
|
||
|
iget-object v1, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroid/app/Dialog;->setContentView(Landroid/view/View;)V
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_1
|
||
|
new-instance p1, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
const-string v0, "DialogFragment can not be attached to a container view"
|
||
|
|
||
|
invoke-direct {p1, v0}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p1
|
||
|
|
||
|
:cond_2
|
||
|
:goto_0
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz v0, :cond_3
|
||
|
|
||
|
iget-object v1, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
|
||
|
|
||
|
invoke-virtual {v1, v0}, Landroid/app/Dialog;->setOwnerActivity(Landroid/app/Activity;)V
|
||
|
|
||
|
:cond_3
|
||
|
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
|
||
|
|
||
|
iget-boolean v1, p0, Landroidx/fragment/app/DialogFragment;->mCancelable:Z
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/app/Dialog;->setCancelable(Z)V
|
||
|
|
||
|
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
|
||
|
|
||
|
iget-object v1, p0, Landroidx/fragment/app/DialogFragment;->mOnCancelListener:Landroid/content/DialogInterface$OnCancelListener;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/app/Dialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V
|
||
|
|
||
|
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
|
||
|
|
||
|
iget-object v1, p0, Landroidx/fragment/app/DialogFragment;->mOnDismissListener:Landroid/content/DialogInterface$OnDismissListener;
|
||
|
|
||
|
invoke-virtual {v0, v1}, Landroid/app/Dialog;->setOnDismissListener(Landroid/content/DialogInterface$OnDismissListener;)V
|
||
|
|
||
|
if-eqz p1, :cond_4
|
||
|
|
||
|
const-string v0, "android:savedDialogState"
|
||
|
|
||
|
invoke-virtual {p1, v0}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
if-eqz p1, :cond_4
|
||
|
|
||
|
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroid/app/Dialog;->onRestoreInstanceState(Landroid/os/Bundle;)V
|
||
|
|
||
|
:cond_4
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onAttach(Landroid/content/Context;)V
|
||
|
.locals 0
|
||
|
.param p1 # Landroid/content/Context;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation build Landroidx/annotation/MainThread;
|
||
|
.end annotation
|
||
|
|
||
|
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onAttach(Landroid/content/Context;)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
|
||
|
.param p1 # Landroid/content/DialogInterface;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onCreate(Landroid/os/Bundle;)V
|
||
|
.locals 3
|
||
|
.param p1 # Landroid/os/Bundle;
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation build Landroidx/annotation/MainThread;
|
||
|
.end annotation
|
||
|
|
||
|
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onCreate(Landroid/os/Bundle;)V
|
||
|
|
||
|
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;
|
||
|
|
||
|
iget v0, p0, Landroidx/fragment/app/Fragment;->mContainerId:I
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
if-nez v0, :cond_0
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
|
||
|
|
||
|
if-eqz p1, :cond_1
|
||
|
|
||
|
const-string v0, "android:style"
|
||
|
|
||
|
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"
|
||
|
|
||
|
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"
|
||
|
|
||
|
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
|
||
|
|
||
|
iget-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
|
||
|
|
||
|
const-string v1, "android:showsDialog"
|
||
|
|
||
|
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
|
||
|
|
||
|
const/4 v0, -0x1
|
||
|
|
||
|
const-string v1, "android:backStackId"
|
||
|
|
||
|
invoke-virtual {p1, v1, v0}, 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 2
|
||
|
.param p1 # Landroid/os/Bundle;
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation build Landroidx/annotation/MainThread;
|
||
|
.end annotation
|
||
|
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
|
||
|
new-instance p1, Landroid/app/Dialog;
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->getTheme()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
invoke-direct {p1, v0, v1}, Landroid/app/Dialog;-><init>(Landroid/content/Context;I)V
|
||
|
|
||
|
return-object p1
|
||
|
.end method
|
||
|
|
||
|
.method public onDestroyView()V
|
||
|
.locals 2
|
||
|
.annotation build Landroidx/annotation/MainThread;
|
||
|
.end annotation
|
||
|
|
||
|
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
|
||
|
|
||
|
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;
|
||
|
|
||
|
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;
|
||
|
|
||
|
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;
|
||
|
|
||
|
:cond_1
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onDetach()V
|
||
|
.locals 1
|
||
|
.annotation build Landroidx/annotation/MainThread;
|
||
|
.end annotation
|
||
|
|
||
|
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
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onDismiss(Landroid/content/DialogInterface;)V
|
||
|
.locals 0
|
||
|
.param p1 # Landroid/content/DialogInterface;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
iget-boolean p1, p0, Landroidx/fragment/app/DialogFragment;->mViewDestroyed:Z
|
||
|
|
||
|
if-nez p1, :cond_0
|
||
|
|
||
|
const/4 p1, 0x1
|
||
|
|
||
|
invoke-direct {p0, p1, p1}, Landroidx/fragment/app/DialogFragment;->dismissInternal(ZZ)V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onGetLayoutInflater(Landroid/os/Bundle;)Landroid/view/LayoutInflater;
|
||
|
.locals 3
|
||
|
.param p1 # Landroid/os/Bundle;
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
|
||
|
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
|
||
|
|
||
|
if-eqz v1, :cond_1
|
||
|
|
||
|
iget-boolean v1, p0, Landroidx/fragment/app/DialogFragment;->mCreatingDialog:Z
|
||
|
|
||
|
if-eqz v1, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
const/4 v2, 0x0
|
||
|
|
||
|
:try_start_0
|
||
|
iput-boolean v1, p0, Landroidx/fragment/app/DialogFragment;->mCreatingDialog:Z
|
||
|
|
||
|
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 v1, p0, Landroidx/fragment/app/DialogFragment;->mStyle:I
|
||
|
|
||
|
invoke-virtual {p0, p1, v1}, Landroidx/fragment/app/DialogFragment;->setupDialog(Landroid/app/Dialog;I)V
|
||
|
:try_end_0
|
||
|
.catchall {:try_start_0 .. :try_end_0} :catchall_0
|
||
|
|
||
|
iput-boolean v2, p0, Landroidx/fragment/app/DialogFragment;->mCreatingDialog:Z
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->requireDialog()Landroid/app/Dialog;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p1}, Landroid/app/Dialog;->getContext()Landroid/content/Context;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {v0, p1}, Landroid/view/LayoutInflater;->cloneInContext(Landroid/content/Context;)Landroid/view/LayoutInflater;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
return-object p1
|
||
|
|
||
|
:catchall_0
|
||
|
move-exception p1
|
||
|
|
||
|
iput-boolean v2, p0, Landroidx/fragment/app/DialogFragment;->mCreatingDialog:Z
|
||
|
|
||
|
throw p1
|
||
|
|
||
|
:cond_1
|
||
|
:goto_0
|
||
|
return-object v0
|
||
|
.end method
|
||
|
|
||
|
.method public onSaveInstanceState(Landroid/os/Bundle;)V
|
||
|
.locals 2
|
||
|
.param p1 # Landroid/os/Bundle;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation build Landroidx/annotation/MainThread;
|
||
|
.end annotation
|
||
|
|
||
|
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
|
||
|
|
||
|
invoke-virtual {v0}, Landroid/app/Dialog;->onSaveInstanceState()Landroid/os/Bundle;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
const-string v1, "android:savedDialogState"
|
||
|
|
||
|
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"
|
||
|
|
||
|
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"
|
||
|
|
||
|
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"
|
||
|
|
||
|
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"
|
||
|
|
||
|
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
|
||
|
|
||
|
:cond_4
|
||
|
iget v0, p0, Landroidx/fragment/app/DialogFragment;->mBackStackId:I
|
||
|
|
||
|
const/4 v1, -0x1
|
||
|
|
||
|
if-eq v0, v1, :cond_5
|
||
|
|
||
|
const-string v1, "android:backStackId"
|
||
|
|
||
|
invoke-virtual {p1, v1, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
||
|
|
||
|
:cond_5
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onStart()V
|
||
|
.locals 2
|
||
|
.annotation build Landroidx/annotation/MainThread;
|
||
|
.end annotation
|
||
|
|
||
|
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
|
||
|
|
||
|
invoke-virtual {v0}, Landroid/app/Dialog;->show()V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public onStop()V
|
||
|
.locals 1
|
||
|
.annotation build Landroidx/annotation/MainThread;
|
||
|
.end annotation
|
||
|
|
||
|
invoke-super {p0}, Landroidx/fragment/app/Fragment;->onStop()V
|
||
|
|
||
|
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
invoke-virtual {v0}, Landroid/app/Dialog;->hide()V
|
||
|
|
||
|
:cond_0
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public final requireDialog()Landroid/app/Dialog;
|
||
|
.locals 3
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
|
||
|
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->getDialog()Landroid/app/Dialog;
|
||
|
|
||
|
move-result-object v0
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
return-object v0
|
||
|
|
||
|
:cond_0
|
||
|
new-instance v0, Ljava/lang/IllegalStateException;
|
||
|
|
||
|
new-instance v1, Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
||
|
|
||
|
const-string v2, "DialogFragment "
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
const-string v2, " does not have a Dialog."
|
||
|
|
||
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||
|
|
||
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object v1
|
||
|
|
||
|
invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw v0
|
||
|
.end method
|
||
|
|
||
|
.method public setCancelable(Z)V
|
||
|
.locals 1
|
||
|
|
||
|
iput-boolean p1, p0, Landroidx/fragment/app/DialogFragment;->mCancelable:Z
|
||
|
|
||
|
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
|
||
|
|
||
|
if-eqz v0, :cond_0
|
||
|
|
||
|
invoke-virtual {v0, 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 1
|
||
|
.param p2 # I
|
||
|
.annotation build Landroidx/annotation/StyleRes;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
iput p1, p0, Landroidx/fragment/app/DialogFragment;->mStyle:I
|
||
|
|
||
|
const/4 v0, 0x2
|
||
|
|
||
|
if-eq p1, v0, :cond_0
|
||
|
|
||
|
const/4 v0, 0x3
|
||
|
|
||
|
if-ne p1, v0, :cond_1
|
||
|
|
||
|
:cond_0
|
||
|
const p1, 0x1030059
|
||
|
|
||
|
iput p1, p0, Landroidx/fragment/app/DialogFragment;->mTheme:I
|
||
|
|
||
|
:cond_1
|
||
|
if-eqz p2, :cond_2
|
||
|
|
||
|
iput p2, p0, Landroidx/fragment/app/DialogFragment;->mTheme:I
|
||
|
|
||
|
:cond_2
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public setupDialog(Landroid/app/Dialog;I)V
|
||
|
.locals 2
|
||
|
.param p1 # Landroid/app/Dialog;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.annotation build Landroidx/annotation/RestrictTo;
|
||
|
value = {
|
||
|
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP_PREFIX:Landroidx/annotation/RestrictTo$Scope;
|
||
|
}
|
||
|
.end annotation
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
if-eq p2, v0, :cond_1
|
||
|
|
||
|
const/4 v1, 0x2
|
||
|
|
||
|
if-eq p2, v1, :cond_1
|
||
|
|
||
|
const/4 v1, 0x3
|
||
|
|
||
|
if-eq p2, v1, :cond_0
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
invoke-virtual {p1}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;
|
||
|
|
||
|
move-result-object p2
|
||
|
|
||
|
if-eqz p2, :cond_1
|
||
|
|
||
|
const/16 v1, 0x18
|
||
|
|
||
|
invoke-virtual {p2, v1}, Landroid/view/Window;->addFlags(I)V
|
||
|
|
||
|
:cond_1
|
||
|
invoke-virtual {p1, v0}, 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
|
||
|
.param p1 # Landroidx/fragment/app/FragmentTransaction;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p2 # Ljava/lang/String;
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
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
|
||
|
|
||
|
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
|
||
|
|
||
|
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
|
||
|
.param p1 # Landroidx/fragment/app/FragmentManager;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p2 # Ljava/lang/String;
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
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
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p1, p0, p2}, Landroidx/fragment/app/FragmentTransaction;->add(Landroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;
|
||
|
|
||
|
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
|
||
|
.param p1 # Landroidx/fragment/app/FragmentManager;
|
||
|
.annotation build Landroidx/annotation/NonNull;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
.param p2 # Ljava/lang/String;
|
||
|
.annotation build Landroidx/annotation/Nullable;
|
||
|
.end annotation
|
||
|
.end param
|
||
|
|
||
|
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
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
|
||
|
|
||
|
move-result-object p1
|
||
|
|
||
|
invoke-virtual {p1, p0, p2}, Landroidx/fragment/app/FragmentTransaction;->add(Landroidx/fragment/app/Fragment;Ljava/lang/String;)Landroidx/fragment/app/FragmentTransaction;
|
||
|
|
||
|
invoke-virtual {p1}, Landroidx/fragment/app/FragmentTransaction;->commitNow()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|