128 lines
3.2 KiB
Smali
128 lines
3.2 KiB
Smali
.class public final Lcom/discord/widgets/spectate/WidgetSpectate$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetSpectate.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/spectate/WidgetSpectate;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Companion"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/spectate/WidgetSpectate$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$getTag(Lcom/discord/widgets/spectate/WidgetSpectate$Companion;Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Dialog;)Ljava/lang/String;
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/spectate/WidgetSpectate$Companion;->getTag(Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Dialog;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final getTag(Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Dialog;)Ljava/lang/String;
|
|
.locals 1
|
|
|
|
sget-object v0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Dialog$StreamFull;->INSTANCE:Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Dialog$StreamFull;
|
|
|
|
invoke-static {p1, v0}, Lt/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const-string p1, "StreamFull"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
sget-object v0, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Dialog$ReportProblem;->INSTANCE:Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Dialog$ReportProblem;
|
|
|
|
invoke-static {p1, v0}, Lt/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
const-string p1, "ReportProblem"
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
instance-of p1, p1, Lcom/discord/widgets/spectate/WidgetSpectateViewModel$Dialog$StreamFeedback;
|
|
|
|
if-eqz p1, :cond_2
|
|
|
|
const-string p1, "StreamFeedback"
|
|
|
|
:goto_0
|
|
return-object p1
|
|
|
|
:cond_2
|
|
new-instance p1, Lt/g;
|
|
|
|
invoke-direct {p1}, Lt/g;-><init>()V
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final launch(Landroid/content/Context;Ljava/lang/String;)V
|
|
.locals 2
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
new-instance v0, Landroid/content/Intent;
|
|
|
|
invoke-direct {v0}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v1, "com.discord.intent.extra.EXTRA_STREAM_KEY"
|
|
|
|
invoke-virtual {v0, v1, p2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
const-class p2, Lcom/discord/widgets/spectate/WidgetSpectate;
|
|
|
|
invoke-static {p1, p2, v0}, Le/a/b/h;->b(Landroid/content/Context;Ljava/lang/Class;Landroid/content/Intent;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "streamKey"
|
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "context"
|
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|