BaseCenterDialog.smali
.class public abstract Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;
.super Lsg/bigo/core/base/BaseDialogFragment;
.source "SourceFile"
# annotations
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog$a;
}
.end annotation
# instance fields
.field protected a:Landroidx/fragment/app/FragmentActivity;
.field protected b:Landroid/app/Dialog;
.field private c:Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog$a;
# direct methods
.method public constructor <init>()V
.registers 1
.line 18
invoke-direct {p0}, Lsg/bigo/core/base/BaseDialogFragment;-><init>()V
return-void
.end method
.method static synthetic a(Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;)Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog$a;
.registers 1
.line 18
iget-object p0, p0, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->c:Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog$a;
return-object p0
.end method
# virtual methods
.method protected a()I
.registers 2
const/4 v0, -0x2
return v0
.end method
.method protected abstract a(Landroid/app/Dialog;)V
.end method
.method public final a(Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog$a;)V
.registers 2
.line 103
iput-object p1, p0, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->c:Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog$a;
return-void
.end method
.method protected abstract b()I
.end method
.method public onCreateDialog(Landroid/os/Bundle;)Landroid/app/Dialog;
.registers 4
.line 28
invoke-virtual {p0}, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object p1
iput-object p1, p0, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->a:Landroidx/fragment/app/FragmentActivity;
.line 29
iget-object p1, p0, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->b:Landroid/app/Dialog;
if-eqz p1, :cond_b
return-object p1
.line 32
:cond_b
new-instance p1, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog$1;
iget-object v0, p0, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->a:Landroidx/fragment/app/FragmentActivity;
invoke-direct {p1, p0, v0}, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog$1;-><init>(Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;Landroid/content/Context;)V
iput-object p1, p0, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->b:Landroid/app/Dialog;
.line 41
invoke-virtual {p0}, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->b()I
move-result v0
invoke-virtual {p1, v0}, Landroid/app/Dialog;->setContentView(I)V
.line 42
iget-object p1, p0, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->b:Landroid/app/Dialog;
invoke-virtual {p0, p1}, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->a(Landroid/app/Dialog;)V
.line 43
iget-object p1, p0, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->b:Landroid/app/Dialog;
const/4 v0, 0x1
invoke-virtual {p1, v0}, Landroid/app/Dialog;->setCanceledOnTouchOutside(Z)V
.line 45
iget-object p1, p0, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->b:Landroid/app/Dialog;
invoke-virtual {p1}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;
move-result-object p1
.line 46
invoke-virtual {p1}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;
move-result-object v0
const/4 v1, -0x2
.line 47
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->height:I
.line 49
invoke-virtual {p0}, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->a()I
move-result v1
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->width:I
const/high16 v1, 0x3f000000 # 0.5f
.line 50
iput v1, v0, Landroid/view/WindowManager$LayoutParams;->dimAmount:F
const v1, 0x7d05002e
.line 51
invoke-virtual {p1, v1}, Landroid/view/Window;->setBackgroundDrawableResource(I)V
const/16 v1, 0x11
.line 52
invoke-virtual {p1, v1}, Landroid/view/Window;->setGravity(I)V
.line 53
invoke-virtual {p1, v0}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V
const v0, 0x7d0d0005
.line 54
invoke-virtual {p1, v0}, Landroid/view/Window;->setWindowAnimations(I)V
.line 56
invoke-static {}, Lsg/bigo/common/i;->e()Z
move-result v0
if-eqz v0, :cond_5c
const/16 v0, 0x8
.line 58
invoke-virtual {p1, v0, v0}, Landroid/view/Window;->setFlags(II)V
.line 61
:cond_5c
iget-object p1, p0, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->b:Landroid/app/Dialog;
return-object p1
.end method
.method public onDestroy()V
.registers 2
.line 93
invoke-super {p0}, Lsg/bigo/core/base/BaseDialogFragment;->onDestroy()V
const/4 v0, 0x0
.line 94
iput-object v0, p0, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->a:Landroidx/fragment/app/FragmentActivity;
return-void
.end method
.method public onStart()V
.registers 3
.line 75
:try_start_0
invoke-static {}, Lsg/bigo/common/i;->e()Z
move-result v0
if-eqz v0, :cond_3c
invoke-virtual {p0}, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->getDialog()Landroid/app/Dialog;
move-result-object v0
if-eqz v0, :cond_3c
.line 77
invoke-super {p0}, Lsg/bigo/core/base/BaseDialogFragment;->onStart()V
.line 78
invoke-virtual {p0}, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->getDialog()Landroid/app/Dialog;
move-result-object v0
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
invoke-virtual {p0}, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->getActivity()Landroidx/fragment/app/FragmentActivity;
move-result-object v1
invoke-virtual {v1}, Landroidx/fragment/app/FragmentActivity;->getWindow()Landroid/view/Window;
move-result-object v1
invoke-virtual {v1}, Landroid/view/Window;->getDecorView()Landroid/view/View;
move-result-object v1
invoke-virtual {v1}, Landroid/view/View;->getSystemUiVisibility()I
move-result v1
invoke-virtual {v0, v1}, Landroid/view/View;->setSystemUiVisibility(I)V
.line 80
invoke-virtual {p0}, Lsg/bigo/live/support64/component/pk/view/BaseCenterDialog;->getDialog()Landroid/app/Dialog;
move-result-object v0
invoke-virtual {v0}, Landroid/app/Dialog;->getWindow()Landroid/view/Window;
move-result-object v0
const/16 v1, 0x8
invoke-virtual {v0, v1}, Landroid/view/Window;->clearFlags(I)V
return-void
.line 82
:cond_3c
invoke-super {p0}, Lsg/bigo/core/base/BaseDialogFragment;->onStart()V
:try_end_3f
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_3f} :catch_40
return-void
.line 85
:catch_40
sget-boolean v0, Lcom/live/share64/utils/m;->d:Z
return-void
.end method