apkfuckery/com.discord/smali/g.smali
2020-11-13 19:18:44 +00:00

220 lines
6 KiB
Smali

.class public final Lg;
.super Ljava/lang/Object;
.source "java-style lambda group"
# interfaces
.implements Landroid/view/View$OnClickListener;
# instance fields
.field public final synthetic d:I
.field public final synthetic e:Ljava/lang/Object;
.field public final synthetic f:Ljava/lang/Object;
# direct methods
.method public constructor <init>(ILjava/lang/Object;Ljava/lang/Object;)V
.locals 0
iput p1, p0, Lg;->d:I
iput-object p2, p0, Lg;->e:Ljava/lang/Object;
iput-object p3, p0, Lg;->f:Ljava/lang/Object;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final onClick(Landroid/view/View;)V
.locals 17
move-object/from16 v0, p0
iget v1, v0, Lg;->d:I
const/4 v2, 0x0
if-eqz v1, :cond_2
const/4 v3, 0x1
if-ne v1, v3, :cond_1
iget-object v1, v0, Lg;->e:Ljava/lang/Object;
check-cast v1, Lcom/discord/views/OverlayMenuView;
iget-object v2, v0, Lg;->f:Ljava/lang/Object;
check-cast v2, Lcom/discord/views/OverlayMenuView$a;
iget-object v2, v2, Lcom/discord/views/OverlayMenuView$a;->c:Lcom/discord/widgets/voice/model/CallModel;
invoke-virtual {v2}, Lcom/discord/widgets/voice/model/CallModel;->getChannel()Lcom/discord/models/domain/ModelChannel;
move-result-object v2
invoke-virtual {v2}, Lcom/discord/models/domain/ModelChannel;->getId()J
move-result-wide v2
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v2
sget-object v3, Lcom/discord/views/OverlayMenuView;->o:[Lkotlin/reflect/KProperty;
invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
if-eqz v2, :cond_0
invoke-virtual {v2}, Ljava/lang/Long;->longValue()J
move-result-wide v2
goto :goto_0
:cond_0
const-wide/16 v2, 0x0
:goto_0
sget-object v4, Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;->INSTANCE:Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;
invoke-virtual {v4, v2, v3}, Lcom/discord/utilities/intent/IntentUtils$RouteBuilders;->connectVoice(J)Landroid/content/Intent;
move-result-object v2
invoke-virtual {v1}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object v3
invoke-virtual {v1}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object v4
const-class v5, Lcom/discord/app/AppActivity$Main;
invoke-virtual {v2, v4, v5}, Landroid/content/Intent;->setClass(Landroid/content/Context;Ljava/lang/Class;)Landroid/content/Intent;
move-result-object v2
const/high16 v4, 0x10000000
invoke-virtual {v2, v4}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;
move-result-object v2
invoke-virtual {v3, v2}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V
iget-object v1, v1, Lcom/discord/views/OverlayMenuView;->n:Lkotlin/jvm/functions/Function0;
invoke-interface {v1}, Lkotlin/jvm/functions/Function0;->invoke()Ljava/lang/Object;
return-void
:cond_1
throw v2
:cond_2
iget-object v1, v0, Lg;->e:Ljava/lang/Object;
check-cast v1, Lcom/discord/views/OverlayMenuView;
iget-object v3, v0, Lg;->f:Ljava/lang/Object;
check-cast v3, Lcom/discord/views/OverlayMenuView$a;
iget-object v3, v3, Lcom/discord/views/OverlayMenuView$a;->c:Lcom/discord/widgets/voice/model/CallModel;
invoke-virtual {v3}, Lcom/discord/widgets/voice/model/CallModel;->getChannel()Lcom/discord/models/domain/ModelChannel;
move-result-object v3
invoke-virtual {v3}, Lcom/discord/models/domain/ModelChannel;->getId()J
move-result-wide v3
invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v3
sget-object v4, Lcom/discord/views/OverlayMenuView;->o:[Lkotlin/reflect/KProperty;
invoke-static {v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;)Ljava/lang/Object;
if-eqz v3, :cond_3
sget-object v4, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
invoke-virtual {v4}, Lcom/discord/stores/StoreStream$Companion;->getInviteSettings()Lcom/discord/stores/StoreInviteSettings;
move-result-object v5
invoke-virtual {v3}, Ljava/lang/Long;->longValue()J
move-result-wide v6
const/4 v11, 0x0
const/4 v9, 0x2
const/4 v13, 0x0
const/4 v8, 0x0
const/4 v3, 0x0
const/4 v10, 0x0
invoke-static/range {v5 .. v10}, Lcom/discord/stores/StoreInviteSettings;->generateInvite$default(Lcom/discord/stores/StoreInviteSettings;JLcom/discord/models/domain/ModelInvite$Settings;ILjava/lang/Object;)Lrx/Observable;
move-result-object v4
const/4 v5, 0x2
invoke-static {v4, v1, v2, v5, v2}, Lcom/discord/utilities/rx/ObservableExtensionsKt;->ui$default(Lrx/Observable;Lcom/discord/app/AppComponent;Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;ILjava/lang/Object;)Lrx/Observable;
move-result-object v8
const-class v9, Lcom/discord/views/OverlayMenuView;
new-instance v12, Lf/a/n/r;
invoke-direct {v12, v1}, Lf/a/n/r;-><init>(Lcom/discord/views/OverlayMenuView;)V
new-instance v14, Lf/a/n/s;
invoke-direct {v14, v1}, Lf/a/n/s;-><init>(Lcom/discord/views/OverlayMenuView;)V
const/16 v15, 0x16
const/16 v16, 0x0
move-object v10, v3
invoke-static/range {v8 .. v16}, 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
goto :goto_1
:cond_3
invoke-virtual {v1}, Landroid/widget/LinearLayout;->getContext()Landroid/content/Context;
move-result-object v1
const v3, 0x7f120d57
const/4 v4, 0x0
const/16 v5, 0xc
invoke-static {v1, v3, v4, v2, v5}, Lf/a/b/p;->i(Landroid/content/Context;IILcom/discord/utilities/view/ToastManager;I)V
:goto_1
return-void
.end method