apkfuckery/com.discord/smali/androidx/fragment/app/DialogFragment.smali

874 lines
23 KiB
Smali
Raw Normal View History

2019-07-24 11:27:29 +00: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_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 mBackStackId:I
.field mCancelable:Z
.field mDialog:Landroid/app/Dialog;
2019-10-07 23:23:22 +00:00
.field private mDismissRunnable:Ljava/lang/Runnable;
2019-07-24 11:27:29 +00:00
.field mDismissed:Z
2019-10-07 23:23:22 +00:00
.field private mHandler:Landroid/os/Handler;
2019-07-24 11:27:29 +00:00
.field mShownByMe:Z
.field mShowsDialog:Z
.field mStyle:I
.field mTheme:I
.field mViewDestroyed:Z
# direct methods
.method public constructor <init>()V
.locals 1
invoke-direct {p0}, Landroidx/fragment/app/Fragment;-><init>()V
2019-10-07 23:23:22 +00:00
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;
2019-07-24 11:27:29 +00:00
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
# virtual methods
.method public dismiss()V
.locals 1
const/4 v0, 0x0
2019-10-07 23:23:22 +00:00
invoke-virtual {p0, v0, v0}, Landroidx/fragment/app/DialogFragment;->dismissInternal(ZZ)V
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public dismissAllowingStateLoss()V
2019-10-07 23:23:22 +00:00
.locals 2
2019-07-24 11:27:29 +00:00
const/4 v0, 0x1
2019-10-07 23:23:22 +00:00
const/4 v1, 0x0
invoke-virtual {p0, v0, v1}, Landroidx/fragment/app/DialogFragment;->dismissInternal(ZZ)V
2019-07-24 11:27:29 +00:00
return-void
.end method
2019-10-07 23:23:22 +00:00
.method dismissInternal(ZZ)V
.locals 3
2019-07-24 11:27:29 +00:00
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;
2019-10-07 23:23:22 +00:00
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;
2019-07-24 11:27:29 +00:00
invoke-virtual {v1}, Landroid/app/Dialog;->dismiss()V
2019-10-07 23:23:22 +00:00
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
2019-07-24 11:27:29 +00:00
:cond_1
2019-10-07 23:23:22 +00:00
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
2019-07-24 11:27:29 +00:00
iput-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mViewDestroyed:Z
2019-10-07 23:23:22 +00:00
iget p2, p0, Landroidx/fragment/app/DialogFragment;->mBackStackId:I
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
if-ltz p2, :cond_3
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->requireFragmentManager()Landroidx/fragment/app/FragmentManager;
2019-07-24 11:27:29 +00:00
move-result-object p1
2019-10-07 23:23:22 +00:00
iget p2, p0, Landroidx/fragment/app/DialogFragment;->mBackStackId:I
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
invoke-virtual {p1, p2, v0}, Landroidx/fragment/app/FragmentManager;->popBackStack(II)V
2019-07-24 11:27:29 +00:00
const/4 p1, -0x1
iput p1, p0, Landroidx/fragment/app/DialogFragment;->mBackStackId:I
return-void
2019-10-07 23:23:22 +00:00
:cond_3
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->requireFragmentManager()Landroidx/fragment/app/FragmentManager;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
move-result-object p2
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
invoke-virtual {p2}, Landroidx/fragment/app/FragmentManager;->beginTransaction()Landroidx/fragment/app/FragmentTransaction;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
move-result-object p2
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
invoke-virtual {p2, p0}, Landroidx/fragment/app/FragmentTransaction;->remove(Landroidx/fragment/app/Fragment;)Landroidx/fragment/app/FragmentTransaction;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
if-eqz p1, :cond_4
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
invoke-virtual {p2}, Landroidx/fragment/app/FragmentTransaction;->commitAllowingStateLoss()I
2019-07-24 11:27:29 +00:00
return-void
2019-10-07 23:23:22 +00:00
:cond_4
invoke-virtual {p2}, Landroidx/fragment/app/FragmentTransaction;->commit()I
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public getDialog()Landroid/app/Dialog;
.locals 1
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
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
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/DialogFragment;->getView()Landroid/view/View;
move-result-object v0
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/DialogFragment;->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;
invoke-virtual {v0, p0}, Landroid/app/Dialog;->setOnCancelListener(Landroid/content/DialogInterface$OnCancelListener;)V
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
invoke-virtual {v0, p0}, 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
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
return-void
.end method
.method public onCreate(Landroid/os/Bundle;)V
.locals 3
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onCreate(Landroid/os/Bundle;)V
2019-10-07 23:23:22 +00:00
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;
2019-07-24 11:27:29 +00:00
iget v0, p0, Landroidx/fragment/app/DialogFragment;->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
new-instance p1, Landroid/app/Dialog;
2019-10-07 23:23:22 +00:00
invoke-virtual {p0}, Landroidx/fragment/app/DialogFragment;->requireContext()Landroid/content/Context;
2019-07-24 11:27:29 +00:00
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
invoke-super {p0}, Landroidx/fragment/app/Fragment;->onDestroyView()V
iget-object v0, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
2019-10-07 23:23:22 +00:00
if-eqz v0, :cond_1
2019-07-24 11:27:29 +00:00
const/4 v1, 0x1
iput-boolean v1, p0, Landroidx/fragment/app/DialogFragment;->mViewDestroyed:Z
2019-10-07 23:23:22 +00:00
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;
2019-07-24 11:27:29 +00:00
invoke-virtual {v0}, Landroid/app/Dialog;->dismiss()V
2019-10-07 23:23:22 +00:00
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;
2019-07-24 11:27:29 +00:00
2019-10-07 23:23:22 +00:00
invoke-virtual {p0, v0}, Landroidx/fragment/app/DialogFragment;->onDismiss(Landroid/content/DialogInterface;)V
2019-07-24 11:27:29 +00:00
:cond_0
2019-10-07 23:23:22 +00:00
iput-object v1, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
:cond_1
2019-07-24 11:27:29 +00:00
return-void
.end method
.method public onDetach()V
.locals 1
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
iget-boolean p1, p0, Landroidx/fragment/app/DialogFragment;->mViewDestroyed:Z
if-nez p1, :cond_0
const/4 p1, 0x1
2019-10-07 23:23:22 +00:00
invoke-virtual {p0, p1, p1}, Landroidx/fragment/app/DialogFragment;->dismissInternal(ZZ)V
2019-07-24 11:27:29 +00:00
:cond_0
return-void
.end method
.method public onGetLayoutInflater(Landroid/os/Bundle;)Landroid/view/LayoutInflater;
.locals 2
iget-boolean v0, p0, Landroidx/fragment/app/DialogFragment;->mShowsDialog:Z
if-nez v0, :cond_0
invoke-super {p0, p1}, Landroidx/fragment/app/Fragment;->onGetLayoutInflater(Landroid/os/Bundle;)Landroid/view/LayoutInflater;
move-result-object p1
return-object p1
:cond_0
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-object p1, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
const-string v0, "layout_inflater"
if-eqz p1, :cond_1
iget v1, p0, Landroidx/fragment/app/DialogFragment;->mStyle:I
invoke-virtual {p0, p1, v1}, Landroidx/fragment/app/DialogFragment;->setupDialog(Landroid/app/Dialog;I)V
iget-object p1, p0, Landroidx/fragment/app/DialogFragment;->mDialog:Landroid/app/Dialog;
invoke-virtual {p1}, Landroid/app/Dialog;->getContext()Landroid/content/Context;
move-result-object p1
invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/view/LayoutInflater;
return-object p1
:cond_1
iget-object p1, p0, Landroidx/fragment/app/DialogFragment;->mHost:Landroidx/fragment/app/FragmentHostCallback;
invoke-virtual {p1}, Landroidx/fragment/app/FragmentHostCallback;->getContext()Landroid/content/Context;
move-result-object p1
invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/view/LayoutInflater;
return-object p1
.end method
.method public onSaveInstanceState(Landroid/os/Bundle;)V
.locals 2
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
if-eqz v0, :cond_0
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
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
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
2019-10-07 23:23:22 +00:00
.method public final requireDialog()Landroid/app/Dialog;
.locals 3
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;
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;
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
2019-07-24 11:27:29 +00:00
.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
iput p1, p0, Landroidx/fragment/app/DialogFragment;->mStyle:I
iget 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
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
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
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
iget 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
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
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