195 lines
6 KiB
Smali
195 lines
6 KiB
Smali
.class public final Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$Companion;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetGuildInviteShare.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = "Companion"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method private 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/guilds/invite/WidgetGuildInviteShare$Companion;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static synthetic launch$default(Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$Companion;Landroid/content/Context;JLjava/lang/Long;ZLjava/lang/String;ILjava/lang/Object;)V
|
|
.locals 7
|
|
|
|
and-int/lit8 p8, p7, 0x4
|
|
|
|
if-eqz p8, :cond_0
|
|
|
|
const/4 p4, 0x0
|
|
|
|
:cond_0
|
|
move-object v4, p4
|
|
|
|
and-int/lit8 p4, p7, 0x8
|
|
|
|
if-eqz p4, :cond_1
|
|
|
|
const/4 p5, 0x0
|
|
|
|
const/4 v5, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
move v5, p5
|
|
|
|
:goto_0
|
|
move-object v0, p0
|
|
|
|
move-object v1, p1
|
|
|
|
move-wide v2, p2
|
|
|
|
move-object v6, p6
|
|
|
|
invoke-virtual/range {v0 .. v6}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$Companion;->launch(Landroid/content/Context;JLjava/lang/Long;ZLjava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final launch(Landroid/content/Context;JLjava/lang/Long;ZLjava/lang/String;)V
|
|
.locals 16
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
move-object/from16 v1, p6
|
|
|
|
const-string v2, "context"
|
|
|
|
invoke-static {v0, v2}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const-string v2, "source"
|
|
|
|
invoke-static {v1, v2}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
new-instance v2, Landroid/content/Intent;
|
|
|
|
invoke-direct {v2}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v3, "INTENT_IS_NUX_FLOW"
|
|
|
|
move/from16 v4, p5
|
|
|
|
invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
|
|
|
|
const-string v3, "com.discord.intent.extra.EXTRA_GUILD_ID"
|
|
|
|
move-wide/from16 v4, p2
|
|
|
|
invoke-virtual {v2, v3, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
if-eqz p4, :cond_0
|
|
|
|
invoke-virtual/range {p4 .. p4}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v3
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-wide/16 v3, 0x0
|
|
|
|
:goto_0
|
|
const-string v5, "com.discord.intent.extra.EXTRA_CHANNEL_ID"
|
|
|
|
invoke-virtual {v2, v5, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
const-string v3, "com.discord.intent.ORIGIN_SOURCE"
|
|
|
|
invoke-virtual {v2, v3, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
sget-object v3, Lcom/discord/widgets/guilds/invite/InviteSuggestionsService;->Companion:Lcom/discord/widgets/guilds/invite/InviteSuggestionsService$Companion;
|
|
|
|
invoke-virtual {v3}, Lcom/discord/widgets/guilds/invite/InviteSuggestionsService$Companion;->create()Lcom/discord/widgets/guilds/invite/InviteSuggestionsService;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v4, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v4}, Lcom/discord/stores/StoreStream$Companion;->getExperiments()Lcom/discord/stores/StoreExperiments;
|
|
|
|
move-result-object v4
|
|
|
|
const/4 v5, 0x1
|
|
|
|
const-string v6, "2020-01_mobile_invite_suggestion_compact"
|
|
|
|
invoke-virtual {v4, v6, v5}, Lcom/discord/stores/StoreExperiments;->observeUserExperiment(Ljava/lang/String;Z)Lrx/Observable;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-virtual {v3}, Lcom/discord/widgets/guilds/invite/InviteSuggestionsService;->observeInviteSuggestions()Lrx/Observable;
|
|
|
|
move-result-object v3
|
|
|
|
sget-object v5, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$Companion$launch$1;->INSTANCE:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$Companion$launch$1;
|
|
|
|
invoke-static {v4, v3, v5}, Lrx/Observable;->j(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
|
|
|
move-result-object v3
|
|
|
|
const-string v4, "Observable.combineLatest\u2026-> exp to inviteService }"
|
|
|
|
invoke-static {v3, v4}, Ly/m/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v3}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
|
|
|
|
move-result-object v3
|
|
|
|
const-wide/16 v4, 0x32
|
|
|
|
const/4 v6, 0x0
|
|
|
|
invoke-static {v3, v4, v5, v6}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->takeSingleUntilTimeout(Lrx/Observable;JZ)Lrx/Observable;
|
|
|
|
move-result-object v7
|
|
|
|
const-class v8, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare;
|
|
|
|
const/4 v9, 0x0
|
|
|
|
const/4 v10, 0x0
|
|
|
|
new-instance v11, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$Companion$launch$2;
|
|
|
|
invoke-direct {v11, v1, v0, v2}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$Companion$launch$2;-><init>(Ljava/lang/String;Landroid/content/Context;Landroid/content/Intent;)V
|
|
|
|
const/4 v12, 0x0
|
|
|
|
new-instance v13, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$Companion$launch$3;
|
|
|
|
invoke-direct {v13, v1, v0, v2}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$Companion$launch$3;-><init>(Ljava/lang/String;Landroid/content/Context;Landroid/content/Intent;)V
|
|
|
|
const/16 v14, 0x16
|
|
|
|
const/4 v15, 0x0
|
|
|
|
invoke-static/range {v7 .. v15}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->appSubscribe$default(Lrx/Observable;Ljava/lang/Class;Landroid/content/Context;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function0;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
|
|
|
return-void
|
|
.end method
|