64 lines
1.8 KiB
Smali
64 lines
1.8 KiB
Smali
.class public final Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupCrashes$3;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetSettingsDeveloper.kt"
|
|
|
|
# interfaces
|
|
.implements Landroid/view/View$OnClickListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/settings/WidgetSettingsDeveloper;->setupCrashes()V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic this$0:Lcom/discord/widgets/settings/WidgetSettingsDeveloper;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(Lcom/discord/widgets/settings/WidgetSettingsDeveloper;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupCrashes$3;->this$0:Lcom/discord/widgets/settings/WidgetSettingsDeveloper;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onClick(Landroid/view/View;)V
|
|
.locals 1
|
|
|
|
new-instance p1, Lcom/hammerandchisel/libdiscord/Discord;
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/settings/WidgetSettingsDeveloper$setupCrashes$3;->this$0:Lcom/discord/widgets/settings/WidgetSettingsDeveloper;
|
|
|
|
invoke-virtual {v0}, Landroidx/fragment/app/Fragment;->getContext()Landroid/content/Context;
|
|
|
|
move-result-object v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
invoke-direct {p1, v0}, Lcom/hammerandchisel/libdiscord/Discord;-><init>(Landroid/content/Context;)V
|
|
|
|
invoke-virtual {p1}, Lcom/hammerandchisel/libdiscord/Discord;->crash()V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
new-instance p1, Lkotlin/TypeCastException;
|
|
|
|
const-string v0, "null cannot be cast to non-null type android.content.Context"
|
|
|
|
invoke-direct {p1, v0}, Lkotlin/TypeCastException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw p1
|
|
.end method
|