2019-07-24 11:27:29 +00:00
|
|
|
.class public final Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;
|
|
|
|
.super Lcom/discord/app/AppFragment;
|
|
|
|
.source "WidgetGuildCall.kt"
|
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
|
|
value = {
|
|
|
|
Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;
|
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
|
|
|
# static fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public static final INTENT_EXTRAS_CHECK_PERMISSIONS:Ljava/lang/String; = "INTENT_EXTRAS_CHECK_PERMISSIONS"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public static final VIEW_INDEX_EMPTY_VOICE_CHANNEL:I = 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public static final VIEW_INDEX_USER_LIST:I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# instance fields
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final controls$delegate:Lkotlin/properties/ReadOnlyProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public participantsAdapter:Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final participantsRecycler$delegate:Lkotlin/properties/ReadOnlyProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.field public final viewFlipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public static constructor <clinit>()V
|
2019-08-30 20:04:20 +00:00
|
|
|
.locals 6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v0, 0x3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v1, Lw/u/b/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-class v2, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string v3, "viewFlipper"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string v4, "getViewFlipper()Landroid/widget/ViewFlipper;"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v1, v2, v3, v4}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v2, Lw/u/b/w;->a:Lw/u/b/x;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v2, v1}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
const/4 v2, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
aput-object v1, v0, v2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v1, 0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v2, Lw/u/b/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-class v3, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-30 20:04:20 +00:00
|
|
|
move-result-object v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-30 20:04:20 +00:00
|
|
|
const-string v4, "controls"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-30 20:04:20 +00:00
|
|
|
const-string v5, "getControls()Lcom/discord/widgets/voice/fullscreen/VoiceControlsView;"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
aput-object v2, v0, v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v1, 0x2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v2, Lw/u/b/u;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-class v3, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3}, Lw/u/b/w;->getOrCreateKotlinClass(Ljava/lang/Class;)Lw/y/b;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
move-result-object v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string v4, "participantsRecycler"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string v5, "getParticipantsRecycler()Landroidx/recyclerview/widget/RecyclerView;"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v2, v3, v4, v5}, Lw/u/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v3, Lw/u/b/w;->a:Lw/u/b/x;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v2}, Lw/u/b/x;->property1(Lw/u/b/t;)Lw/y/d;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
aput-object v2, v0, v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
sput-object v0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
|
|
|
|
sput-object v0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->Companion:Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$Companion;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
const v0, 0x7f0a038e
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->viewFlipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
const v0, 0x7f0a038c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->controls$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
const v0, 0x7f0a038d
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p0, v0}, Lx/a/a2/w;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->participantsRecycler$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-08-31 00:40:57 +00:00
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;Lcom/discord/widgets/voice/model/CallModel;ZZ)V
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 0
|
|
|
|
|
2019-08-31 00:40:57 +00:00
|
|
|
invoke-direct {p0, p1, p2, p3}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->configureUI(Lcom/discord/widgets/voice/model/CallModel;ZZ)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method public static final synthetic access$tryConnectToVoice(Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;J)V
|
|
|
|
.locals 0
|
|
|
|
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->tryConnectToVoice(J)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureCenterContent(Lcom/discord/widgets/voice/model/CallModel;)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->getViewFlipper()Landroid/widget/ViewFlipper;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/model/CallModel;->isEmptyVoiceChannel()Z
|
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
invoke-virtual {v0, p1}, Landroid/widget/ViewFlipper;->setDisplayedChild(I)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final configureMenu(Lcom/discord/widgets/voice/model/CallModel;)V
|
|
|
|
.locals 2
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/model/CallModel;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/app/AppFragment;->setActionBarTitle(Ljava/lang/CharSequence;)Lkotlin/Unit;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureMenu$1;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureMenu$1;-><init>(Lcom/discord/widgets/voice/model/CallModel;)V
|
|
|
|
|
|
|
|
new-instance v1, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureMenu$2;
|
|
|
|
|
|
|
|
invoke-direct {v1, p1}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureMenu$2;-><init>(Lcom/discord/widgets/voice/model/CallModel;)V
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
const p1, 0x7f0e000f
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, p1, v0, v1}, Lcom/discord/app/AppFragment;->setActionBarOptionsMenu(ILrx/functions/Action2;Lrx/functions/Action1;)Landroidx/appcompat/widget/Toolbar;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2019-08-31 00:40:57 +00:00
|
|
|
.method private final configureUI(Lcom/discord/widgets/voice/model/CallModel;ZZ)V
|
2019-12-20 07:00:35 +00:00
|
|
|
.locals 6
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
if-eqz p1, :cond_7
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/model/CallModel;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelChannel;->getType()I
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v1, 0x2
|
|
|
|
|
|
|
|
if-eq v0, v1, :cond_0
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
goto/16 :goto_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/model/CallModel;->isActiveStreamChannel()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const-string v2, "requireContext()"
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/model/CallModel;->getActiveStream()Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;->getState()Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream$State;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream$State;->isUserWatching()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
const/4 v3, 0x1
|
|
|
|
|
|
|
|
if-ne v0, v3, :cond_1
|
|
|
|
|
|
|
|
sget-object p2, Lcom/discord/widgets/spectate/WidgetSpectate;->Companion:Lcom/discord/widgets/spectate/WidgetSpectate$Companion;
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p3
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p3, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/model/CallModel;->getActiveStream()Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreApplicationStreaming$ActiveApplicationStream;->getStream()Lcom/discord/models/domain/ModelApplicationStream;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/models/domain/ModelApplicationStream;->encodeStreamKey()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p2, p3, p1}, Lcom/discord/widgets/spectate/WidgetSpectate$Companion;->launch(Landroid/content/Context;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
return-void
|
|
|
|
|
|
|
|
:cond_1
|
2019-12-20 07:00:35 +00:00
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/model/CallModel;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
2019-10-23 04:50:18 +00:00
|
|
|
|
2019-12-18 09:41:56 +00:00
|
|
|
move-result-object v0
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
invoke-virtual {p0}, Lcom/discord/app/AppFragment;->getAppActivity()Lcom/discord/app/AppActivity;
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result-object v3
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
const/4 v4, 0x0
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
if-eqz v3, :cond_2
|
2019-12-13 02:35:12 +00:00
|
|
|
|
2019-12-18 07:41:41 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
2019-12-13 02:35:12 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
move-result-object v5
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v5, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
const/4 v2, 0x0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-static {v0, v5, v2, v1, v4}, Lcom/discord/utilities/channel/ChannelUtils;->getDisplayName$default(Lcom/discord/models/domain/ModelChannel;Landroid/content/Context;ZILjava/lang/Object;)Ljava/lang/String;
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
move-result-object v1
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {v3, v1}, Landroid/app/Activity;->setTitle(Ljava/lang/CharSequence;)V
|
2019-10-23 04:50:18 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
:cond_2
|
2019-12-06 03:29:40 +00:00
|
|
|
iget-object v1, p0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->participantsAdapter:Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
|
|
|
|
2019-12-20 07:00:35 +00:00
|
|
|
const-string v2, "participantsAdapter"
|
2019-12-18 09:41:56 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
if-eqz v1, :cond_6
|
|
|
|
|
|
|
|
new-instance v3, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureUI$1;
|
|
|
|
|
|
|
|
invoke-direct {v3, p0, v0}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureUI$1;-><init>(Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;Lcom/discord/models/domain/ModelChannel;)V
|
|
|
|
|
|
|
|
invoke-virtual {v1, v3}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;->setOnVoiceUserClicked(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->participantsAdapter:Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
|
|
|
|
|
|
|
if-eqz v1, :cond_5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
new-instance v3, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureUI$2;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-direct {v3, p0}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureUI$2;-><init>(Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {v1, v3}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;->setOnStreamPreviewClicked(Lkotlin/jvm/functions/Function1;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Lcom/discord/app/AppFragment;->getAppActivity()Lcom/discord/app/AppActivity;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
if-eqz v1, :cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->configureMenu(Lcom/discord/widgets/voice/model/CallModel;)V
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
:cond_3
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->configureCenterContent(Lcom/discord/widgets/voice/model/CallModel;)V
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->getControls()Lcom/discord/widgets/voice/fullscreen/VoiceControlsView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {v1, p1}, Lcom/discord/widgets/voice/fullscreen/VoiceControlsView;->configureUI(Lcom/discord/widgets/voice/fullscreen/VoiceControlsView$Model;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->getControls()Lcom/discord/widgets/voice/fullscreen/VoiceControlsView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
new-instance v3, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureUI$3;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-direct {v3, p0, p2, p3, v0}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureUI$3;-><init>(Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;ZZLcom/discord/models/domain/ModelChannel;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-virtual {v1, v3}, Lcom/discord/widgets/voice/fullscreen/VoiceControlsView;->setOnConnectPressedListener(Lkotlin/jvm/functions/Function0;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->getControls()Lcom/discord/widgets/voice/fullscreen/VoiceControlsView;
|
|
|
|
|
2019-08-31 00:40:57 +00:00
|
|
|
move-result-object p2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
new-instance p3, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureUI$4;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
invoke-direct {p3, p0, p1}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$configureUI$4;-><init>(Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;Lcom/discord/widgets/voice/model/CallModel;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-31 00:40:57 +00:00
|
|
|
invoke-virtual {p2, p3}, Lcom/discord/widgets/voice/fullscreen/VoiceControlsView;->setOnDisconnectPressedListener(Lkotlin/jvm/functions/Function0;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-08-31 00:40:57 +00:00
|
|
|
iget-object p2, p0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->participantsAdapter:Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
if-eqz p2, :cond_4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/model/CallModel;->getListItems()Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p2, p1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->setData(Ljava/util/List;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
|
2019-12-18 07:41:41 +00:00
|
|
|
:cond_4
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-12-13 02:35:12 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
throw v4
|
2019-12-13 02:35:12 +00:00
|
|
|
|
2019-12-18 07:41:41 +00:00
|
|
|
:cond_5
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
throw v4
|
|
|
|
|
|
|
|
:cond_6
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v2}, Lw/u/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
2019-12-21 01:41:59 +00:00
|
|
|
|
|
|
|
throw v4
|
|
|
|
|
|
|
|
:cond_7
|
2019-12-18 07:41:41 +00:00
|
|
|
:goto_0
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
if-eqz p1, :cond_8
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p1}, Landroid/app/Activity;->finish()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-21 01:41:59 +00:00
|
|
|
:cond_8
|
2019-07-24 11:27:29 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getControls()Lcom/discord/widgets/voice/fullscreen/VoiceControlsView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->controls$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Lcom/discord/widgets/voice/fullscreen/VoiceControlsView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getParticipantsRecycler()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->participantsRecycler$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x2
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final getViewFlipper()Landroid/widget/ViewFlipper;
|
|
|
|
.locals 3
|
|
|
|
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->viewFlipper$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
|
|
|
|
sget-object v1, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
|
|
|
|
const/4 v2, 0x0
|
|
|
|
|
|
|
|
aget-object v1, v1, v2
|
|
|
|
|
|
|
|
invoke-interface {v0, p0, v1}, Lkotlin/properties/ReadOnlyProperty;->getValue(Ljava/lang/Object;Lkotlin/reflect/KProperty;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v0
|
|
|
|
|
|
|
|
check-cast v0, Landroid/widget/ViewFlipper;
|
|
|
|
|
|
|
|
return-object v0
|
|
|
|
.end method
|
|
|
|
|
|
|
|
.method private final tryConnectToVoice(J)V
|
|
|
|
.locals 1
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$tryConnectToVoice$1;
|
|
|
|
|
|
|
|
invoke-direct {v0, p1, p2}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$tryConnectToVoice$1;-><init>(J)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, v0}, Lcom/discord/app/AppFragment;->requestMicrophone(Lrx/functions/Action0;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
|
|
|
# virtual methods
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public getContentViewResId()I
|
2019-07-24 11:27:29 +00:00
|
|
|
.locals 1
|
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
const v0, 0x7f0d0198
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
return v0
|
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onViewBound(Landroid/view/View;)V
|
|
|
|
.locals 5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v0, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
if-eqz p1, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v1, 0x1
|
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
invoke-virtual {p1}, Landroid/view/View;->getContext()Landroid/content/Context;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const-string v2, "view.context"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1, v2}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
const v2, 0x7f04020c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
const/4 v3, 0x0
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
const/4 v4, 0x2
|
|
|
|
|
|
|
|
invoke-static {p1, v2, v3, v4, v0}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/content/Context;IIILjava/lang/Object;)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
invoke-virtual {p0, v1, p1}, Lcom/discord/app/AppFragment;->setActionBarDisplayHomeAsUpEnabled(ZLjava/lang/Integer;)Landroidx/appcompat/widget/Toolbar;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
sget-object p1, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;->Companion:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;
|
|
|
|
|
|
|
|
new-instance v0, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
|
|
|
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->getParticipantsRecycler()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;-><init>(Landroidx/recyclerview/widget/RecyclerView;)V
|
|
|
|
|
|
|
|
invoke-virtual {p1, v0}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;->configure(Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;)Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
check-cast p1, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
|
|
|
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;->participantsAdapter:Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
|
|
|
|
|
|
|
return-void
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
const-string p1, "view"
|
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {p1}, Lw/u/b/j;->a(Ljava/lang/String;)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
throw v0
|
2019-07-24 11:27:29 +00:00
|
|
|
.end method
|
|
|
|
|
2019-12-06 03:29:40 +00:00
|
|
|
.method public onViewBoundOrOnResume()V
|
2020-02-20 19:33:18 +00:00
|
|
|
.locals 17
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
move-object/from16 v0, p0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-super/range {p0 .. p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/app/AppFragment;->getMostRecentIntent()Landroid/content/Intent;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
move-result-object v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const-string v2, "com.discord.intent.extra.EXTRA_CHANNEL_ID"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const-wide/16 v3, -0x1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v1, v2, v3, v4}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
move-result-wide v1
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v5, Lcom/discord/widgets/voice/model/CallModel;->Companion:Lcom/discord/widgets/voice/model/CallModel$Companion;
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 v8, 0x0
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 v9, 0x2
|
2019-12-21 01:41:59 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 v10, 0x0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
move-wide v6, v1
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static/range {v5 .. v10}, Lcom/discord/widgets/voice/model/CallModel$Companion;->get$default(Lcom/discord/widgets/voice/model/CallModel$Companion;JLcom/discord/widgets/voice/model/CallModel$ParticipantsType;ILjava/lang/Object;)Lrx/Observable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
move-result-object v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v4, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v4}, Lcom/discord/stores/StoreStream$Companion;->getUsers()Lcom/discord/stores/StoreUser;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
move-result-object v4
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 v5, 0x1
|
2019-08-31 00:40:57 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v4, v5}, Lcom/discord/stores/StoreUser;->observeMe(Z)Lrx/Observable;
|
2019-08-31 00:40:57 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
move-result-object v4
|
2019-08-31 00:40:57 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v5, Le/a/f/c;->d:Le/a/f/c;
|
2019-08-31 00:40:57 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v4, v5}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
|
2019-08-31 00:40:57 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
move-result-object v4
|
2019-08-31 00:40:57 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v4}, Lrx/Observable;->a()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v4
|
2019-08-31 00:40:57 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v5, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
2019-08-31 00:40:57 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v5}, Lcom/discord/stores/StoreStream$Companion;->getExperiments()Lcom/discord/stores/StoreExperiments;
|
2019-08-31 00:40:57 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
move-result-object v5
|
2019-11-14 21:08:15 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 v6, 0x2
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 v7, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const-string v8, "2019-samsung_overlay"
|
2019-08-31 00:40:57 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v5, v8, v7, v6, v7}, Lcom/discord/stores/StoreExperiments;->getExperiment$default(Lcom/discord/stores/StoreExperiments;Ljava/lang/String;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Lrx/Observable;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
move-result-object v5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v5}, Lrx/Observable;->a()Lrx/Observable;
|
2019-11-14 21:08:15 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
move-result-object v5
|
2019-10-23 04:50:18 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v8, Le/a/f/d;->d:Le/a/f/d;
|
|
|
|
|
|
|
|
invoke-virtual {v5, v8}, Lrx/Observable;->f(Le0/l/i;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v5
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v8, Le/a/f/e;->d:Le/a/f/e;
|
|
|
|
|
|
|
|
invoke-static {v4, v5, v8}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
invoke-virtual {v4}, Lrx/Observable;->a()Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v4
|
|
|
|
|
|
|
|
const-string v5, "Observable.combineLatest\u2026 .distinctUntilChanged()"
|
|
|
|
|
|
|
|
invoke-static {v4, v5}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
sget-object v5, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$onViewBoundOrOnResume$1;->INSTANCE:Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$onViewBoundOrOnResume$1;
|
|
|
|
|
|
|
|
invoke-static {v3, v4, v5}, Lrx/Observable;->a(Lrx/Observable;Lrx/Observable;Lrx/functions/Func2;)Lrx/Observable;
|
|
|
|
|
|
|
|
move-result-object v3
|
|
|
|
|
|
|
|
const-string v4, "Observable\n .comb\u2026to inExperiment\n }"
|
|
|
|
|
|
|
|
invoke-static {v3, v4}, Lw/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
|
|
|
|
invoke-static {v3, v0, v7, v6, v7}, 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/widgets/voice/fullscreen/WidgetGuildCall;
|
2019-10-23 04:50:18 +00:00
|
|
|
|
2019-07-24 11:27:29 +00:00
|
|
|
const/4 v10, 0x0
|
|
|
|
|
2019-11-15 02:21:15 +00:00
|
|
|
const/4 v11, 0x0
|
2019-11-13 02:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 v12, 0x0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 v13, 0x0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v14, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$onViewBoundOrOnResume$2;
|
2019-11-15 02:21:15 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v14, v0}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$onViewBoundOrOnResume$2;-><init>(Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/16 v15, 0x1e
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/16 v16, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
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
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Lcom/discord/app/AppFragment;->getMostRecentIntent()Landroid/content/Intent;
|
|
|
|
|
|
|
|
move-result-object v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 v4, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const-string v5, "INTENT_EXTRAS_CHECK_PERMISSIONS"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual {v3, v5, v4}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
move-result v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
if-eqz v3, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-virtual/range {p0 .. p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
move-result-object v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const-string v4, "android.permission.RECORD_AUDIO"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static {v3, v4}, Landroidx/core/content/ContextCompat;->checkSelfPermission(Landroid/content/Context;Ljava/lang/String;)I
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
move-result v3
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
if-eqz v3, :cond_0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v4, Lcom/discord/widgets/notice/WidgetNoticePopup;->Companion:Lcom/discord/widgets/notice/WidgetNoticePopup$Companion;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v6, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$onViewBoundOrOnResume$3;->INSTANCE:Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$onViewBoundOrOnResume$3;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
sget-object v7, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$onViewBoundOrOnResume$4;->INSTANCE:Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$onViewBoundOrOnResume$4;
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-03-09 23:19:51 +00:00
|
|
|
const v8, 0x7f08033c
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const-wide/16 v10, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/16 v9, 0x8
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
new-instance v13, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$onViewBoundOrOnResume$5;
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-direct {v13, v0, v1, v2}, Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall$onViewBoundOrOnResume$5;-><init>(Lcom/discord/widgets/voice/fullscreen/WidgetGuildCall;J)V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/16 v14, 0x40
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const/4 v15, 0x0
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
const-string v5, "Discord Service Permission failure"
|
2019-07-24 11:27:29 +00:00
|
|
|
|
2020-02-20 19:33:18 +00:00
|
|
|
invoke-static/range {v4 .. v15}, Lcom/discord/widgets/notice/WidgetNoticePopup$Companion;->enqueue$default(Lcom/discord/widgets/notice/WidgetNoticePopup$Companion;Ljava/lang/String;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;IIJZLkotlin/jvm/functions/Function1;ILjava/lang/Object;)V
|
2019-07-24 11:27:29 +00:00
|
|
|
|
|
|
|
:cond_0
|
|
|
|
return-void
|
|
|
|
.end method
|