384 lines
8.8 KiB
Smali
384 lines
8.8 KiB
Smali
.class public final Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetChannelSelector.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/channels/WidgetChannelSelector;
|
|
.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/channels/WidgetChannelSelector$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic handleResult$default(Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;ILandroid/content/Intent;Lkotlin/jvm/functions/Function3;ZILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p5, p5, 0x8
|
|
|
|
if-eqz p5, :cond_0
|
|
|
|
const/4 p4, 0x0
|
|
|
|
:cond_0
|
|
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;->handleResult(ILandroid/content/Intent;Lkotlin/jvm/functions/Function3;Z)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic launch$default(Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;Landroidx/fragment/app/Fragment;JIZILcom/discord/widgets/channels/WidgetChannelSelector$FilterFunction;ILjava/lang/Object;)V
|
|
.locals 9
|
|
|
|
and-int/lit8 v0, p8, 0x20
|
|
|
|
if-eqz v0, :cond_0
|
|
|
|
const/4 v0, 0x0
|
|
|
|
move-object v8, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object/from16 v8, p7
|
|
|
|
:goto_0
|
|
move-object v1, p0
|
|
|
|
move-object v2, p1
|
|
|
|
move-wide v3, p2
|
|
|
|
move v5, p4
|
|
|
|
move v6, p5
|
|
|
|
move v7, p6
|
|
|
|
invoke-virtual/range {v1 .. v8}, Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;->launch(Landroidx/fragment/app/Fragment;JIZILcom/discord/widgets/channels/WidgetChannelSelector$FilterFunction;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic launchForText$default(Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;Landroidx/fragment/app/Fragment;JIZIILjava/lang/Object;)V
|
|
.locals 7
|
|
|
|
and-int/lit8 p8, p7, 0x8
|
|
|
|
if-eqz p8, :cond_0
|
|
|
|
const/4 p5, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v5, p5
|
|
|
|
:goto_0
|
|
and-int/lit8 p5, p7, 0x10
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
const p6, 0x7f120cc4
|
|
|
|
const v6, 0x7f120cc4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v6, p6
|
|
|
|
:goto_1
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-wide v2, p2
|
|
|
|
move v4, p4
|
|
|
|
invoke-virtual/range {v0 .. v6}, Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;->launchForText(Landroidx/fragment/app/Fragment;JIZI)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic launchForVoice$default(Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;Landroidx/fragment/app/Fragment;JIZIILjava/lang/Object;)V
|
|
.locals 7
|
|
|
|
and-int/lit8 p8, p7, 0x8
|
|
|
|
if-eqz p8, :cond_0
|
|
|
|
const/4 p5, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move v5, p5
|
|
|
|
:goto_0
|
|
and-int/lit8 p5, p7, 0x10
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
const p6, 0x7f120cc4
|
|
|
|
const v6, 0x7f120cc4
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
move v6, p6
|
|
|
|
:goto_1
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-wide v2, p2
|
|
|
|
move v4, p4
|
|
|
|
invoke-virtual/range {v0 .. v6}, Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;->launchForVoice(Landroidx/fragment/app/Fragment;JIZI)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final handleResult(ILandroid/content/Intent;Lkotlin/jvm/functions/Function3;Z)V
|
|
.locals 4
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(I",
|
|
"Landroid/content/Intent;",
|
|
"Lkotlin/jvm/functions/Function3<",
|
|
"-",
|
|
"Ljava/lang/Long;",
|
|
"-",
|
|
"Ljava/lang/String;",
|
|
"-",
|
|
"Ljava/lang/Integer;",
|
|
"Lkotlin/Unit;",
|
|
">;Z)V"
|
|
}
|
|
.end annotation
|
|
|
|
const-wide/16 v0, -0x1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const-string v2, "INTENT_EXTRA_CHANNEL_ID"
|
|
|
|
invoke-virtual {p2, v2, v0, v1}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J
|
|
|
|
move-result-wide v0
|
|
|
|
:cond_0
|
|
if-eqz p2, :cond_1
|
|
|
|
const-string v2, "INTENT_EXTRA_CHANNEL_NAME"
|
|
|
|
invoke-virtual {p2, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
if-eqz p2, :cond_1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-string p2, ""
|
|
|
|
:goto_0
|
|
if-nez p4, :cond_2
|
|
|
|
const-wide/16 v2, 0x0
|
|
|
|
cmp-long p4, v0, v2
|
|
|
|
if-lez p4, :cond_3
|
|
|
|
:cond_2
|
|
if-eqz p3, :cond_3
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p4
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-interface {p3, p4, p2, p1}, Lkotlin/jvm/functions/Function3;->invoke(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lkotlin/Unit;
|
|
|
|
:cond_3
|
|
return-void
|
|
.end method
|
|
|
|
.method public final launch(Landroidx/fragment/app/Fragment;JIZILcom/discord/widgets/channels/WidgetChannelSelector$FilterFunction;)V
|
|
.locals 3
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
new-instance v0, Lcom/discord/widgets/channels/WidgetChannelSelector;
|
|
|
|
invoke-direct {v0}, Lcom/discord/widgets/channels/WidgetChannelSelector;-><init>()V
|
|
|
|
new-instance v1, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const-string v2, "INTENT_EXTRA_REQUEST_CODE"
|
|
|
|
invoke-virtual {v1, v2, p4}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
const-string v2, "INTENT_EXTRA_GUILD_ID"
|
|
|
|
invoke-virtual {v1, v2, p2, p3}, Landroid/os/Bundle;->putLong(Ljava/lang/String;J)V
|
|
|
|
const-string p2, "INTENT_EXTRA_INCLUDE_NO_CHANNEL"
|
|
|
|
invoke-virtual {v1, p2, p5}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V
|
|
|
|
const-string p2, "INTENT_EXTRA_NO_CHANNEL_STRING_ID"
|
|
|
|
invoke-virtual {v1, p2, p6}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V
|
|
|
|
const-string p2, "INTENT_EXTRA_FILTER_FUNCTION"
|
|
|
|
invoke-virtual {v1, p2, p7}, Landroid/os/Bundle;->putSerializable(Ljava/lang/String;Ljava/io/Serializable;)V
|
|
|
|
invoke-virtual {v0, p1, p4}, Landroidx/fragment/app/Fragment;->setTargetFragment(Landroidx/fragment/app/Fragment;I)V
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V
|
|
|
|
invoke-virtual {p1}, Landroidx/fragment/app/Fragment;->getFragmentManager()Landroidx/fragment/app/FragmentManager;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const-class p2, Lcom/discord/widgets/channels/WidgetChannelSelector;
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Class;->getName()Ljava/lang/String;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {v0, p1, p2}, Lcom/discord/app/AppBottomSheet;->show(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;)V
|
|
|
|
:cond_0
|
|
return-void
|
|
|
|
:cond_1
|
|
const-string p1, "fragment"
|
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final launchForText(Landroidx/fragment/app/Fragment;JIZI)V
|
|
.locals 8
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance v7, Lcom/discord/widgets/channels/WidgetChannelSelector$TypeFilterFunction;
|
|
|
|
const/4 v0, 0x0
|
|
|
|
invoke-direct {v7, v0}, Lcom/discord/widgets/channels/WidgetChannelSelector$TypeFilterFunction;-><init>(I)V
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-wide v2, p2
|
|
|
|
move v4, p4
|
|
|
|
move v5, p5
|
|
|
|
move v6, p6
|
|
|
|
invoke-virtual/range {v0 .. v7}, Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;->launch(Landroidx/fragment/app/Fragment;JIZILcom/discord/widgets/channels/WidgetChannelSelector$FilterFunction;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "fragment"
|
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|
|
|
|
.method public final launchForVoice(Landroidx/fragment/app/Fragment;JIZI)V
|
|
.locals 8
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
new-instance v7, Lcom/discord/widgets/channels/WidgetChannelSelector$TypeFilterFunction;
|
|
|
|
const/4 v0, 0x2
|
|
|
|
invoke-direct {v7, v0}, Lcom/discord/widgets/channels/WidgetChannelSelector$TypeFilterFunction;-><init>(I)V
|
|
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-wide v2, p2
|
|
|
|
move v4, p4
|
|
|
|
move v5, p5
|
|
|
|
move v6, p6
|
|
|
|
invoke-virtual/range {v0 .. v7}, Lcom/discord/widgets/channels/WidgetChannelSelector$Companion;->launch(Landroidx/fragment/app/Fragment;JIZILcom/discord/widgets/channels/WidgetChannelSelector$FilterFunction;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "fragment"
|
|
|
|
invoke-static {p1}, Lt/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 p1, 0x0
|
|
|
|
throw p1
|
|
.end method
|