185 lines
5.7 KiB
Smali
185 lines
5.7 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 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/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;ZLjava/lang/Long;Ljava/lang/String;ILjava/lang/Object;)V
|
|
.locals 0
|
|
|
|
and-int/lit8 p6, p5, 0x2
|
|
|
|
if-eqz p6, :cond_0
|
|
|
|
const/4 p2, 0x0
|
|
|
|
:cond_0
|
|
and-int/lit8 p5, p5, 0x4
|
|
|
|
if-eqz p5, :cond_1
|
|
|
|
const/4 p3, 0x0
|
|
|
|
:cond_1
|
|
invoke-virtual {p0, p1, p2, p3, p4}, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$Companion;->launch(Landroid/content/Context;ZLjava/lang/Long;Ljava/lang/String;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final launch(Landroid/content/Context;ZLjava/lang/Long;Ljava/lang/String;)V
|
|
.locals 16
|
|
|
|
move-object/from16 v0, p1
|
|
|
|
move-object/from16 v1, p4
|
|
|
|
const/4 v2, 0x0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
if-eqz v1, :cond_1
|
|
|
|
new-instance v3, Landroid/content/Intent;
|
|
|
|
invoke-direct {v3}, Landroid/content/Intent;-><init>()V
|
|
|
|
const-string v4, "INTENT_IS_NUX_FLOW"
|
|
|
|
move/from16 v5, p2
|
|
|
|
invoke-virtual {v3, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;
|
|
|
|
if-eqz p3, :cond_0
|
|
|
|
invoke-virtual/range {p3 .. p3}, Ljava/lang/Long;->longValue()J
|
|
|
|
move-result-wide v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const-wide/16 v4, 0x0
|
|
|
|
:goto_0
|
|
const-string v6, "com.discord.intent.extra.EXTRA_CHANNEL_ID"
|
|
|
|
invoke-virtual {v3, v6, v4, v5}, Landroid/content/Intent;->putExtra(Ljava/lang/String;J)Landroid/content/Intent;
|
|
|
|
const-string v4, "com.discord.intent.ORIGIN_SOURCE"
|
|
|
|
invoke-virtual {v3, v4, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;
|
|
|
|
sget-object v4, Lcom/discord/widgets/guilds/invite/InviteSuggestionsService;->Companion:Lcom/discord/widgets/guilds/invite/InviteSuggestionsService$Companion;
|
|
|
|
invoke-virtual {v4}, Lcom/discord/widgets/guilds/invite/InviteSuggestionsService$Companion;->create()Lcom/discord/widgets/guilds/invite/InviteSuggestionsService;
|
|
|
|
move-result-object v4
|
|
|
|
sget-object v5, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {v5}, Lcom/discord/stores/StoreStream$Companion;->getExperiments()Lcom/discord/stores/StoreExperiments;
|
|
|
|
move-result-object v5
|
|
|
|
const/4 v6, 0x2
|
|
|
|
const-string v7, "2020-01_mobile_invite_suggestion_compact"
|
|
|
|
invoke-static {v5, v7, v2, v6, v2}, Lcom/discord/stores/StoreExperiments;->getExperiment$default(Lcom/discord/stores/StoreExperiments;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v4}, Lcom/discord/widgets/guilds/invite/InviteSuggestionsService;->observeInviteSuggestions()Lrx/Observable;
|
|
|
|
move-result-object v4
|
|
|
|
sget-object v5, Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$Companion$launch$1;->INSTANCE:Lcom/discord/widgets/guilds/invite/WidgetGuildInviteShare$Companion$launch$1;
|
|
|
|
invoke-static {v2, v4, v5}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v4, "Observable.combineLatest\u2026-> exp to inviteService }"
|
|
|
|
invoke-static {v2, v4}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {v2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->computationLatest(Lrx/Observable;)Lrx/Observable;
|
|
|
|
move-result-object v2
|
|
|
|
const-wide/16 v4, 0x32
|
|
|
|
const/4 v6, 0x0
|
|
|
|
invoke-static {v2, 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, v3}, 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, v3}, 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
|
|
|
|
:cond_1
|
|
const-string v0, "source"
|
|
|
|
invoke-static {v0}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
|
|
:cond_2
|
|
const-string v0, "context"
|
|
|
|
invoke-static {v0}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v2
|
|
.end method
|