173 lines
4.1 KiB
Smali
173 lines
4.1 KiB
Smali
.class public final Lcom/discord/widgets/chat/WidgetUrlActions$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetUrlActions.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/chat/WidgetUrlActions;
|
|
.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/chat/WidgetUrlActions$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final launch(Landroidx/fragment/app/FragmentManager;Ljava/lang/String;)V
|
|
.locals 3
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
new-instance v0, Lcom/discord/widgets/chat/WidgetUrlActions;
|
|
|
|
invoke-direct {v0}, Lcom/discord/widgets/chat/WidgetUrlActions;-><init>()V
|
|
|
|
new-instance v1, Landroid/os/Bundle;
|
|
|
|
invoke-direct {v1}, Landroid/os/Bundle;-><init>()V
|
|
|
|
const-string v2, "INTENT_URL"
|
|
|
|
invoke-virtual {v1, v2, p2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v0, v1}, Landroidx/fragment/app/Fragment;->setArguments(Landroid/os/Bundle;)V
|
|
|
|
const-class p2, Lcom/discord/widgets/chat/WidgetUrlActions;
|
|
|
|
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
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "url"
|
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_1
|
|
const-string p1, "fragmentManager"
|
|
|
|
invoke-static {p1}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public final requestNotice(Ljava/lang/String;)V
|
|
.locals 18
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
new-instance v15, Lcom/discord/stores/StoreNotices$Notice;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const-wide/16 v3, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v0, 0x2
|
|
|
|
new-array v0, v0, [Lz/y/b;
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const-class v9, Lcom/discord/widgets/main/WidgetMain;
|
|
|
|
invoke-static {v9}, Lz/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Lz/y/b;
|
|
|
|
move-result-object v9
|
|
|
|
aput-object v9, v0, v8
|
|
|
|
const/4 v8, 0x1
|
|
|
|
const-class v9, Lcom/discord/widgets/search/results/WidgetSearchResults;
|
|
|
|
invoke-static {v9}, Lz/u/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Lz/y/b;
|
|
|
|
move-result-object v9
|
|
|
|
aput-object v9, v0, v8
|
|
|
|
invoke-static {v0}, Lf/n/a/j/a;->listOf([Ljava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object v8
|
|
|
|
const-wide/16 v9, 0x0
|
|
|
|
const-wide/16 v11, 0x0
|
|
|
|
new-instance v13, Lcom/discord/widgets/chat/WidgetUrlActions$Companion$requestNotice$notice$1;
|
|
|
|
invoke-direct {v13, v1}, Lcom/discord/widgets/chat/WidgetUrlActions$Companion$requestNotice$notice$1;-><init>(Ljava/lang/String;)V
|
|
|
|
const/16 v14, 0x36
|
|
|
|
const/16 v16, 0x0
|
|
|
|
move-object v0, v15
|
|
|
|
move-object/from16 v1, p1
|
|
|
|
move-object/from16 v17, v15
|
|
|
|
move-object/from16 v15, v16
|
|
|
|
invoke-direct/range {v0 .. v15}, Lcom/discord/stores/StoreNotices$Notice;-><init>(Ljava/lang/String;Lcom/discord/utilities/time/Clock;JIZZLjava/util/List;JJLkotlin/jvm/functions/Function1;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getNotices()Lcom/discord/stores/StoreNotices;
|
|
|
|
move-result-object v0
|
|
|
|
move-object/from16 v1, v17
|
|
|
|
invoke-virtual {v0, v1}, Lcom/discord/stores/StoreNotices;->requestToShow(Lcom/discord/stores/StoreNotices$Notice;)V
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string v0, "url"
|
|
|
|
invoke-static {v0}, Lz/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
throw v0
|
|
.end method
|