apkfuckery/com.discord/smali/androidx/appcompat/app/AlertController$ButtonHandler.smali

101 lines
2.4 KiB
Smali
Raw Normal View History

2019-02-04 20:08:30 +00:00
.class final Landroidx/appcompat/app/AlertController$ButtonHandler;
2019-02-04 20:05:16 +00:00
.super Landroid/os/Handler;
2019-02-04 20:29:01 +00:00
.source "AlertController.java"
2019-02-04 20:05:16 +00:00
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2019-02-04 20:08:30 +00:00
value = Landroidx/appcompat/app/AlertController;
2019-02-04 20:05:16 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
2019-02-04 20:08:30 +00:00
accessFlags = 0x18
2019-02-04 20:05:16 +00:00
name = "ButtonHandler"
.end annotation
# static fields
.field private static final MSG_DISMISS_DIALOG:I = 0x1
# instance fields
.field private mDialog:Ljava/lang/ref/WeakReference;
.annotation system Ldalvik/annotation/Signature;
value = {
2019-02-04 20:08:30 +00:00
"Ljava/lang/ref/WeakReference<",
2019-02-04 20:05:16 +00:00
"Landroid/content/DialogInterface;",
">;"
}
.end annotation
.end field
# direct methods
.method public constructor <init>(Landroid/content/DialogInterface;)V
.locals 1
invoke-direct {p0}, Landroid/os/Handler;-><init>()V
new-instance v0, Ljava/lang/ref/WeakReference;
invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V
2019-02-04 20:08:30 +00:00
iput-object v0, p0, Landroidx/appcompat/app/AlertController$ButtonHandler;->mDialog:Ljava/lang/ref/WeakReference;
2019-02-04 20:05:16 +00:00
return-void
.end method
# virtual methods
2019-02-04 20:08:30 +00:00
.method public final handleMessage(Landroid/os/Message;)V
.locals 2
2019-02-04 20:05:16 +00:00
iget v0, p1, Landroid/os/Message;->what:I
2019-02-04 20:08:30 +00:00
const/4 v1, 0x1
if-eq v0, v1, :cond_0
2019-02-04 20:05:16 +00:00
packed-switch v0, :pswitch_data_0
2019-02-04 20:08:30 +00:00
goto :goto_0
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:pswitch_0
2019-02-04 20:05:16 +00:00
iget-object v0, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
check-cast v0, Landroid/content/DialogInterface$OnClickListener;
2019-02-04 20:08:30 +00:00
iget-object v1, p0, Landroidx/appcompat/app/AlertController$ButtonHandler;->mDialog:Ljava/lang/ref/WeakReference;
2019-02-04 20:05:16 +00:00
invoke-virtual {v1}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;
move-result-object v1
check-cast v1, Landroid/content/DialogInterface;
2019-02-04 20:08:30 +00:00
iget p1, p1, Landroid/os/Message;->what:I
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-interface {v0, v1, p1}, Landroid/content/DialogInterface$OnClickListener;->onClick(Landroid/content/DialogInterface;I)V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
return-void
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:cond_0
iget-object p1, p1, Landroid/os/Message;->obj:Ljava/lang/Object;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
check-cast p1, Landroid/content/DialogInterface;
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
invoke-interface {p1}, Landroid/content/DialogInterface;->dismiss()V
2019-02-04 20:05:16 +00:00
2019-02-04 20:08:30 +00:00
:goto_0
return-void
nop
2019-02-04 20:05:16 +00:00
:pswitch_data_0
.packed-switch -0x3
:pswitch_0
2019-02-04 20:08:30 +00:00
:pswitch_0
:pswitch_0
2019-02-04 20:05:16 +00:00
.end packed-switch
.end method