699 lines
22 KiB
Smali
699 lines
22 KiB
Smali
.class public final Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;
|
|
.super Lcom/discord/app/AppFragment;
|
|
.source "WidgetSpectators.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/MemberClasses;
|
|
value = {
|
|
Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$ViewState;,
|
|
Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$Companion;
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# static fields
|
|
.field public static final synthetic $$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
.field public static final Companion:Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$Companion;
|
|
|
|
|
|
# instance fields
|
|
.field public participantsAdapter:Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
|
|
|
.field public final spectatorsList$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
.field public final userItemsComparator:Ljava/util/Comparator;
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Ljava/util/Comparator<",
|
|
"Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ListItem$VoiceUser;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
.end field
|
|
|
|
|
|
# direct methods
|
|
.method public static constructor <clinit>()V
|
|
.locals 5
|
|
|
|
const/4 v0, 0x1
|
|
|
|
new-array v0, v0, [Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v1, Ly/v/b/u;
|
|
|
|
const-class v2, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;
|
|
|
|
invoke-static {v2}, Ly/v/b/x;->getOrCreateKotlinClass(Ljava/lang/Class;)Ly/z/b;
|
|
|
|
move-result-object v2
|
|
|
|
const-string v3, "spectatorsList"
|
|
|
|
const-string v4, "getSpectatorsList()Landroidx/recyclerview/widget/RecyclerView;"
|
|
|
|
invoke-direct {v1, v2, v3, v4}, Ly/v/b/u;-><init>(Lkotlin/reflect/KDeclarationContainer;Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
sget-object v2, Ly/v/b/x;->a:Ly/v/b/y;
|
|
|
|
invoke-virtual {v2, v1}, Ly/v/b/y;->property1(Ly/v/b/t;)Ly/z/d;
|
|
|
|
const/4 v2, 0x0
|
|
|
|
aput-object v1, v0, v2
|
|
|
|
sput-object v0, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;->$$delegatedProperties:[Lkotlin/reflect/KProperty;
|
|
|
|
new-instance v0, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$Companion;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {v0, v1}, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$Companion;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
sput-object v0, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;->Companion:Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$Companion;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
invoke-direct {p0}, Lcom/discord/app/AppFragment;-><init>()V
|
|
|
|
const v0, 0x7f0a08be
|
|
|
|
invoke-static {p0, v0}, Lf/o/a/j/a;->b(Landroidx/fragment/app/Fragment;I)Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
move-result-object v0
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;->spectatorsList$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v0, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$userItemsComparator$1;->INSTANCE:Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$userItemsComparator$1;
|
|
|
|
iput-object v0, p0, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;->userItemsComparator:Ljava/util/Comparator;
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$configureUI(Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$ViewState;)V
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1}, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;->configureUI(Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$ViewState;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final synthetic access$createSpectatingListItems(Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;Ljava/util/Map;Ljava/lang/String;)Ljava/util/List;
|
|
.locals 0
|
|
|
|
invoke-direct {p0, p1, p2}, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;->createSpectatingListItems(Ljava/util/Map;Ljava/lang/String;)Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method private final configureUI(Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$ViewState;)V
|
|
.locals 5
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$ViewState;->getCallModel()Lcom/discord/widgets/voice/model/CallModel;
|
|
|
|
move-result-object v1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move-object v1, v0
|
|
|
|
:goto_0
|
|
if-eqz v1, :cond_5
|
|
|
|
invoke-virtual {v1}, Lcom/discord/widgets/voice/model/CallModel;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelChannel;->getType()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x2
|
|
|
|
if-ne v2, v3, :cond_5
|
|
|
|
invoke-virtual {v1}, Lcom/discord/widgets/voice/model/CallModel;->isConnected()Z
|
|
|
|
move-result v2
|
|
|
|
if-nez v2, :cond_1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
invoke-virtual {v1}, Lcom/discord/widgets/voice/model/CallModel;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v1}, Lcom/discord/widgets/voice/model/CallModel;->getChannel()Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {p0, v1}, Lcom/discord/app/AppFragment;->setActionBarTitle(Ljava/lang/CharSequence;)Lkotlin/Unit;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;->participantsAdapter:Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
|
|
|
const-string v3, "participantsAdapter"
|
|
|
|
if-eqz v1, :cond_4
|
|
|
|
new-instance v4, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$configureUI$1;
|
|
|
|
invoke-direct {v4, p0, v2}, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$configureUI$1;-><init>(Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;Lcom/discord/models/domain/ModelChannel;)V
|
|
|
|
invoke-virtual {v1, v4}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;->setOnVoiceUserClicked(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;->participantsAdapter:Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
|
|
|
if-eqz v1, :cond_3
|
|
|
|
new-instance v2, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$configureUI$2;
|
|
|
|
invoke-direct {v2, p0}, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$configureUI$2;-><init>(Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;)V
|
|
|
|
invoke-virtual {v1, v2}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;->setOnStreamPreviewClicked(Lkotlin/jvm/functions/Function1;)V
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;->participantsAdapter:Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$ViewState;->getListItems()Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v1, p1}, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapterSimple;->setData(Ljava/util/List;)V
|
|
|
|
return-void
|
|
|
|
:cond_2
|
|
invoke-static {v3}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_3
|
|
invoke-static {v3}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_4
|
|
invoke-static {v3}, Ly/v/b/j;->throwUninitializedPropertyAccessException(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
|
|
:cond_5
|
|
:goto_1
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->getActivity()Landroidx/fragment/app/FragmentActivity;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
invoke-virtual {p1}, Landroid/app/Activity;->finish()V
|
|
|
|
:cond_6
|
|
return-void
|
|
.end method
|
|
|
|
.method private final createSpectatingListItems(Ljava/util/Map;Ljava/lang/String;)Ljava/util/List;
|
|
.locals 12
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"(",
|
|
"Ljava/util/Map<",
|
|
"Ljava/lang/Long;",
|
|
"Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;",
|
|
">;",
|
|
"Ljava/lang/String;",
|
|
")",
|
|
"Ljava/util/List<",
|
|
"Lcom/discord/utilities/mg_recycler/MGRecyclerDataPayload;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
if-nez p2, :cond_0
|
|
|
|
sget-object p1, Ly/q/p;->d:Ly/q/p;
|
|
|
|
return-object p1
|
|
|
|
:cond_0
|
|
sget-object v0, Lcom/discord/models/domain/ModelApplicationStream;->Companion:Lcom/discord/models/domain/ModelApplicationStream$Companion;
|
|
|
|
invoke-virtual {v0, p2}, Lcom/discord/models/domain/ModelApplicationStream$Companion;->decodeStreamKey(Ljava/lang/String;)Lcom/discord/models/domain/ModelApplicationStream;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
new-instance v2, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
new-instance v3, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v3}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
invoke-interface {p1}, Ljava/util/Map;->values()Ljava/util/Collection;
|
|
|
|
move-result-object v4
|
|
|
|
invoke-interface {v4}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v4
|
|
|
|
:goto_0
|
|
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v5
|
|
|
|
if-eqz v5, :cond_2
|
|
|
|
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v5
|
|
|
|
check-cast v5, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
|
|
|
|
invoke-virtual {v5}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->isConnected()Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_1
|
|
|
|
invoke-virtual {v2, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
invoke-virtual {v3, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
invoke-interface {v2}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
move-result v3
|
|
|
|
xor-int/lit8 v3, v3, 0x1
|
|
|
|
new-instance v4, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v4}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
new-instance v5, Ljava/util/ArrayList;
|
|
|
|
invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V
|
|
|
|
invoke-interface {v2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v2
|
|
|
|
:goto_1
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v6
|
|
|
|
if-eqz v6, :cond_5
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v6
|
|
|
|
check-cast v6, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
|
|
|
|
invoke-virtual {v6}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getApplicationStream()Lcom/discord/models/domain/ModelApplicationStream;
|
|
|
|
move-result-object v7
|
|
|
|
if-eqz v7, :cond_3
|
|
|
|
invoke-virtual {v6}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-virtual {v7}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
move-result-wide v7
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelApplicationStream;->getOwnerId()J
|
|
|
|
move-result-wide v9
|
|
|
|
cmp-long v11, v7, v9
|
|
|
|
if-nez v11, :cond_3
|
|
|
|
goto :goto_1
|
|
|
|
:cond_3
|
|
invoke-virtual {v6}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getWatchingStream()Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
invoke-static {v7, p2}, Ly/v/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
|
|
|
|
move-result v7
|
|
|
|
if-eqz v7, :cond_4
|
|
|
|
invoke-virtual {v4, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_1
|
|
|
|
:cond_4
|
|
invoke-virtual {v5, v6}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_1
|
|
|
|
:cond_5
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelApplicationStream;->getOwnerId()J
|
|
|
|
move-result-wide v6
|
|
|
|
invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-interface {p1, p2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object p1
|
|
|
|
check-cast p1, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;->getDisplayName()Ljava/lang/String;
|
|
|
|
move-result-object p1
|
|
|
|
if-eqz p1, :cond_6
|
|
|
|
goto :goto_2
|
|
|
|
:cond_6
|
|
const-string p1, ""
|
|
|
|
:goto_2
|
|
if-eqz v3, :cond_9
|
|
|
|
new-instance p2, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ListItem$SpectatorsHeader;
|
|
|
|
invoke-direct {p2, p1}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ListItem$SpectatorsHeader;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, p2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
const/16 p2, 0xa
|
|
|
|
invoke-static {v4, p2}, Lf/o/a/j/a;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
|
|
|
move-result v0
|
|
|
|
invoke-direct {p1, v0}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
invoke-interface {v4}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_3
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-eqz v2, :cond_7
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
|
|
|
|
new-instance v4, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ListItem$VoiceUser;
|
|
|
|
invoke-direct {v4, v2, v3}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ListItem$VoiceUser;-><init>(Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;Z)V
|
|
|
|
invoke-interface {p1, v4}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;->userItemsComparator:Ljava/util/Comparator;
|
|
|
|
invoke-static {p1, v0}, Ly/q/m;->sortedWith(Ljava/lang/Iterable;Ljava/util/Comparator;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
|
|
|
|
invoke-interface {v5}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
move-result p1
|
|
|
|
xor-int/lit8 p1, p1, 0x1
|
|
|
|
if-eqz p1, :cond_9
|
|
|
|
new-instance p1, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ListItem$Header;
|
|
|
|
const v0, 0x7f120ba1
|
|
|
|
invoke-direct {p1, v0}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ListItem$Header;-><init>(I)V
|
|
|
|
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
|
|
|
|
new-instance p1, Ljava/util/ArrayList;
|
|
|
|
invoke-static {v5, p2}, Lf/o/a/j/a;->collectionSizeOrDefault(Ljava/lang/Iterable;I)I
|
|
|
|
move-result p2
|
|
|
|
invoke-direct {p1, p2}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
invoke-interface {v5}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p2
|
|
|
|
:goto_4
|
|
invoke-interface {p2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_8
|
|
|
|
invoke-interface {p2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;
|
|
|
|
new-instance v2, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ListItem$VoiceUser;
|
|
|
|
invoke-direct {v2, v0, v3}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter$ListItem$VoiceUser;-><init>(Lcom/discord/stores/StoreVoiceParticipants$VoiceUser;Z)V
|
|
|
|
invoke-interface {p1, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_4
|
|
|
|
:cond_8
|
|
iget-object p2, p0, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;->userItemsComparator:Ljava/util/Comparator;
|
|
|
|
invoke-static {p1, p2}, Ly/q/m;->sortedWith(Ljava/lang/Iterable;Ljava/util/Comparator;)Ljava/util/List;
|
|
|
|
move-result-object p1
|
|
|
|
invoke-virtual {v1, p1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z
|
|
|
|
:cond_9
|
|
return-object v1
|
|
.end method
|
|
|
|
.method private final getSpectatorsList()Landroidx/recyclerview/widget/RecyclerView;
|
|
.locals 3
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;->spectatorsList$delegate:Lkotlin/properties/ReadOnlyProperty;
|
|
|
|
sget-object v1, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;->$$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, Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public getContentViewResId()I
|
|
.locals 1
|
|
|
|
const v0, 0x7f0d0260
|
|
|
|
return v0
|
|
.end method
|
|
|
|
.method public onViewBound(Landroid/view/View;)V
|
|
.locals 9
|
|
|
|
const/4 v0, 0x0
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
invoke-super {p0, p1}, Lcom/discord/app/AppFragment;->onViewBound(Landroid/view/View;)V
|
|
|
|
const/4 v2, 0x1
|
|
|
|
invoke-virtual {p0}, Landroidx/fragment/app/Fragment;->requireContext()Landroid/content/Context;
|
|
|
|
move-result-object p1
|
|
|
|
const-string v1, "requireContext()"
|
|
|
|
invoke-static {p1, v1}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const v1, 0x7f04021a
|
|
|
|
const/4 v7, 0x2
|
|
|
|
const/4 v8, 0x0
|
|
|
|
invoke-static {p1, v1, v8, v7, v0}, Lcom/discord/utilities/drawable/DrawableCompat;->getThemedDrawableRes$default(Landroid/content/Context;IIILjava/lang/Object;)I
|
|
|
|
move-result p1
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object v3
|
|
|
|
const/4 v4, 0x0
|
|
|
|
const/4 v5, 0x4
|
|
|
|
const/4 v6, 0x0
|
|
|
|
move-object v1, p0
|
|
|
|
invoke-static/range {v1 .. v6}, Lcom/discord/app/AppFragment;->setActionBarDisplayHomeAsUpEnabled$default(Lcom/discord/app/AppFragment;ZLjava/lang/Integer;Ljava/lang/Integer;ILjava/lang/Object;)Landroidx/appcompat/widget/Toolbar;
|
|
|
|
sget-object p1, Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter;->Companion:Lcom/discord/utilities/mg_recycler/MGRecyclerAdapter$Companion;
|
|
|
|
new-instance v1, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
|
|
|
invoke-direct {p0}, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;->getSpectatorsList()Landroidx/recyclerview/widget/RecyclerView;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-direct {v1, v2, v8, v7, v0}, Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;-><init>(Landroidx/recyclerview/widget/RecyclerView;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V
|
|
|
|
invoke-virtual {p1, v1}, 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/WidgetSpectators;->participantsAdapter:Lcom/discord/widgets/voice/fullscreen/CallParticipantsAdapter;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const-string p1, "view"
|
|
|
|
invoke-static {p1}, Ly/v/b/j;->a(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public onViewBoundOrOnResume()V
|
|
.locals 12
|
|
|
|
invoke-super {p0}, Lcom/discord/app/AppFragment;->onViewBoundOrOnResume()V
|
|
|
|
invoke-virtual {p0}, Lcom/discord/app/AppFragment;->getMostRecentIntent()Landroid/content/Intent;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "com.discord.intent.extra.EXTRA_CHANNEL_ID"
|
|
|
|
const-wide/16 v2, -0x1
|
|
|
|
invoke-virtual {v0, v1, v2, v3}, Landroid/content/Intent;->getLongExtra(Ljava/lang/String;J)J
|
|
|
|
move-result-wide v0
|
|
|
|
sget-object v2, Lcom/discord/widgets/voice/model/CallModel;->Companion:Lcom/discord/widgets/voice/model/CallModel$Companion;
|
|
|
|
invoke-virtual {v2, v0, v1}, Lcom/discord/widgets/voice/model/CallModel$Companion;->get(J)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
new-instance v1, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$onViewBoundOrOnResume$1;
|
|
|
|
invoke-direct {v1, p0}, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$onViewBoundOrOnResume$1;-><init>(Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;)V
|
|
|
|
invoke-virtual {v0, v1}, Lrx/Observable;->f(Lg0/l/i;)Lrx/Observable;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "CallModel\n .get(c\u2026ull\n }\n }"
|
|
|
|
invoke-static {v0, v1}, Ly/v/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/4 v1, 0x0
|
|
|
|
const/4 v2, 0x2
|
|
|
|
invoke-static {v0, p0, v1, v2, v1}, 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 v3
|
|
|
|
const-class v4, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;
|
|
|
|
new-instance v9, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$onViewBoundOrOnResume$2;
|
|
|
|
invoke-direct {v9, p0}, Lcom/discord/widgets/voice/fullscreen/WidgetSpectators$onViewBoundOrOnResume$2;-><init>(Lcom/discord/widgets/voice/fullscreen/WidgetSpectators;)V
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x0
|
|
|
|
const/16 v10, 0x1e
|
|
|
|
const/4 v11, 0x0
|
|
|
|
invoke-static/range {v3 .. v11}, 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
|