apkfuckery/com.discord/smali/androidx/appcompat/app/AppCompatDialogFragment.smali

85 lines
2 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class public Landroidx/appcompat/app/AppCompatDialogFragment;
.super Landroidx/fragment/app/DialogFragment;
2019-02-04 20:29:01 +00:00
.source "AppCompatDialogFragment.java"
2019-02-04 20:08:30 +00:00
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Landroidx/fragment/app/DialogFragment;-><init>()V
return-void
.end method
# virtual methods
.method public onCreateDialog(Landroid/os/Bundle;)Landroid/app/Dialog;
.locals 2
new-instance p1, Landroidx/appcompat/app/AppCompatDialog;
invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatDialogFragment;->getContext()Landroid/content/Context;
move-result-object v0
invoke-virtual {p0}, Landroidx/appcompat/app/AppCompatDialogFragment;->getTheme()I
move-result v1
invoke-direct {p1, v0, v1}, Landroidx/appcompat/app/AppCompatDialog;-><init>(Landroid/content/Context;I)V
return-object p1
.end method
.method public setupDialog(Landroid/app/Dialog;I)V
2019-05-03 18:53:54 +00:00
.locals 3
2019-02-04 20:08:30 +00:00
.annotation build Landroidx/annotation/RestrictTo;
value = {
.enum Landroidx/annotation/RestrictTo$Scope;->LIBRARY_GROUP:Landroidx/annotation/RestrictTo$Scope;
}
.end annotation
instance-of v0, p1, Landroidx/appcompat/app/AppCompatDialog;
2019-05-03 18:53:54 +00:00
if-eqz v0, :cond_2
2019-02-04 20:08:30 +00:00
move-object v0, p1
check-cast v0, Landroidx/appcompat/app/AppCompatDialog;
2019-05-03 18:53:54 +00:00
const/4 v1, 0x1
if-eq p2, v1, :cond_1
const/4 v2, 0x2
if-eq p2, v2, :cond_1
const/4 v2, 0x3
if-eq p2, v2, :cond_0
2019-02-04 20:08:30 +00:00
goto :goto_0
2019-05-03 18:53:54 +00:00
:cond_0
2019-02-04 20:08:30 +00:00
invoke-virtual {p1}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;
move-result-object p1
const/16 p2, 0x18
invoke-virtual {p1, p2}, Landroid/view/Window;->addFlags(I)V
2019-05-03 18:53:54 +00:00
:cond_1
invoke-virtual {v0, v1}, Landroidx/appcompat/app/AppCompatDialog;->supportRequestWindowFeature(I)Z
2019-02-04 20:08:30 +00:00
:goto_0
return-void
2019-05-03 18:53:54 +00:00
:cond_2
2019-02-04 20:08:30 +00:00
invoke-super {p0, p1, p2}, Landroidx/fragment/app/DialogFragment;->setupDialog(Landroid/app/Dialog;I)V
return-void
.end method