374 lines
13 KiB
Smali
374 lines
13 KiB
Smali
.class public final Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;
|
|
.super Lk0/n/c/i;
|
|
.source "WidgetChannelListModel.kt"
|
|
|
|
# interfaces
|
|
.implements Lkotlin/jvm/functions/Function0;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion;->guildListBuilder(JLcom/discord/utilities/channel/GuildChannelsInfo;Ljava/util/Map;JJLjava/util/Map;Ljava/util/Map;Ljava/util/Set;Ljava/util/Set;Lcom/discord/models/domain/ModelUser;)Ljava/util/List;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x19
|
|
name = null
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
value = {
|
|
"Lk0/n/c/i;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceChannel;",
|
|
">;"
|
|
}
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field public final synthetic $channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
.field public final synthetic $channelId:J
|
|
|
|
.field public final synthetic $collapsedCategories$inlined:Ljava/util/Set;
|
|
|
|
.field public final synthetic $forceViewCategories$inlined:Ljava/util/HashSet;
|
|
|
|
.field public final synthetic $guild$inlined:Lcom/discord/utilities/channel/GuildChannelsInfo;
|
|
|
|
.field public final synthetic $items$inlined:Ljava/util/ArrayList;
|
|
|
|
.field public final synthetic $me$inlined:Lcom/discord/models/domain/ModelUser;
|
|
|
|
.field public final synthetic $mentionCounts$inlined:Ljava/util/Map;
|
|
|
|
.field public final synthetic $permissions:Ljava/lang/Long;
|
|
|
|
.field public final synthetic $selectedChannelId$inlined:J
|
|
|
|
.field public final synthetic $selectedGuildId$inlined:J
|
|
|
|
.field public final synthetic $selectedVoiceChannelId$inlined:J
|
|
|
|
.field public final synthetic $tryRemoveEmptyCategory$1$inlined:Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$1;
|
|
|
|
.field public final synthetic $unreadChannelIds$inlined:Ljava/util/Set;
|
|
|
|
.field public final synthetic $voiceStates$inlined:Ljava/util/Map;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>(JLcom/discord/models/domain/ModelChannel;Ljava/lang/Long;Lcom/discord/utilities/channel/GuildChannelsInfo;Ljava/util/HashSet;JLjava/util/Map;Ljava/util/Set;JLjava/util/Set;JLjava/util/Map;Ljava/util/ArrayList;Lcom/discord/models/domain/ModelUser;Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$1;)V
|
|
.locals 3
|
|
|
|
move-object v0, p0
|
|
|
|
move-wide v1, p1
|
|
|
|
iput-wide v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$channelId:J
|
|
|
|
move-object v1, p3
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move-object v1, p4
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$permissions:Ljava/lang/Long;
|
|
|
|
move-object v1, p5
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$guild$inlined:Lcom/discord/utilities/channel/GuildChannelsInfo;
|
|
|
|
move-object v1, p6
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$forceViewCategories$inlined:Ljava/util/HashSet;
|
|
|
|
move-wide v1, p7
|
|
|
|
iput-wide v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$selectedChannelId$inlined:J
|
|
|
|
move-object v1, p9
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$mentionCounts$inlined:Ljava/util/Map;
|
|
|
|
move-object v1, p10
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$unreadChannelIds$inlined:Ljava/util/Set;
|
|
|
|
move-wide v1, p11
|
|
|
|
iput-wide v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$selectedGuildId$inlined:J
|
|
|
|
move-object/from16 v1, p13
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$collapsedCategories$inlined:Ljava/util/Set;
|
|
|
|
move-wide/from16 v1, p14
|
|
|
|
iput-wide v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$selectedVoiceChannelId$inlined:J
|
|
|
|
move-object/from16 v1, p16
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$voiceStates$inlined:Ljava/util/Map;
|
|
|
|
move-object/from16 v1, p17
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$items$inlined:Ljava/util/ArrayList;
|
|
|
|
move-object/from16 v1, p18
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$me$inlined:Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-object/from16 v1, p19
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$tryRemoveEmptyCategory$1$inlined:Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$1;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, v1}, Lk0/n/c/i;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final invoke()Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceChannel;
|
|
.locals 15
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$channelId:J
|
|
|
|
iget-wide v2, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$selectedVoiceChannelId$inlined:J
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
cmp-long v6, v0, v2
|
|
|
|
if-nez v6, :cond_0
|
|
|
|
const/4 v9, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v9, 0x0
|
|
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$voiceStates$inlined:Ljava/util/Map;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getId()J
|
|
|
|
move-result-wide v1
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->size()I
|
|
|
|
move-result v0
|
|
|
|
move v11, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v11, 0x0
|
|
|
|
:goto_1
|
|
const-wide/32 v0, 0x100000
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$guild$inlined:Lcom/discord/utilities/channel/GuildChannelsInfo;
|
|
|
|
invoke-virtual {v2}, Lcom/discord/utilities/channel/GuildChannelsInfo;->getEveryoneRole()Lcom/discord/models/domain/ModelGuildRole;
|
|
|
|
move-result-object v2
|
|
|
|
iget-object v3, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-virtual {v3}, Lcom/discord/models/domain/ModelChannel;->getPermissionOverwrites()Ljava/util/Map;
|
|
|
|
move-result-object v3
|
|
|
|
iget-wide v6, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$selectedGuildId$inlined:J
|
|
|
|
invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v6
|
|
|
|
invoke-interface {v3, v6}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v3
|
|
|
|
check-cast v3, Lcom/discord/models/domain/ModelPermissionOverwrite;
|
|
|
|
invoke-static {v0, v1, v2, v3}, Lcom/discord/utilities/permissions/PermissionUtils;->canRole(JLcom/discord/models/domain/ModelGuildRole;Lcom/discord/models/domain/ModelPermissionOverwrite;)Z
|
|
|
|
move-result v0
|
|
|
|
xor-int/lit8 v12, v0, 0x1
|
|
|
|
const-wide/16 v0, 0x400
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$permissions:Ljava/lang/Long;
|
|
|
|
invoke-static {v0, v1, v2}, Lcom/discord/utilities/permissions/PermissionUtils;->can(JLjava/lang/Long;)Z
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
if-nez v9, :cond_2
|
|
|
|
return-object v1
|
|
|
|
:cond_2
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$collapsedCategories$inlined:Ljava/util/Set;
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelChannel;->getParentId()J
|
|
|
|
move-result-wide v2
|
|
|
|
invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_3
|
|
|
|
if-nez v11, :cond_3
|
|
|
|
if-nez v9, :cond_3
|
|
|
|
return-object v1
|
|
|
|
:cond_3
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$voiceStates$inlined:Ljava/util/Map;
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
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
|
|
|
|
invoke-interface {v0, v2}, Ljava/util/Map;->get(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
move-result-object v0
|
|
|
|
check-cast v0, Ljava/util/Collection;
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
invoke-interface {v0}, Ljava/util/Collection;->isEmpty()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_5
|
|
|
|
:cond_4
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_5
|
|
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object v0
|
|
|
|
:cond_6
|
|
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_4
|
|
|
|
invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v2
|
|
|
|
check-cast v2, Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceUser;
|
|
|
|
invoke-virtual {v2}, Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceUser;->getVoiceState()Lcom/discord/models/domain/ModelVoice$State;
|
|
|
|
move-result-object v2
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelVoice$State;->isSelfVideo()Z
|
|
|
|
move-result v2
|
|
|
|
if-eqz v2, :cond_6
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:goto_2
|
|
if-ne v0, v4, :cond_7
|
|
|
|
const/4 v13, 0x1
|
|
|
|
goto :goto_3
|
|
|
|
:cond_7
|
|
const/4 v13, 0x0
|
|
|
|
:goto_3
|
|
new-instance v0, Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceChannel;
|
|
|
|
iget-object v8, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
iget-object v10, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$permissions:Ljava/lang/Long;
|
|
|
|
iget-object v2, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->$guild$inlined:Lcom/discord/utilities/channel/GuildChannelsInfo;
|
|
|
|
invoke-virtual {v2}, Lcom/discord/utilities/channel/GuildChannelsInfo;->getGuild()Lcom/discord/models/domain/ModelGuild;
|
|
|
|
move-result-object v2
|
|
|
|
if-eqz v2, :cond_8
|
|
|
|
invoke-virtual {v2}, Lcom/discord/models/domain/ModelGuild;->getMaxVideoChannelUsers()Ljava/lang/Integer;
|
|
|
|
move-result-object v1
|
|
|
|
:cond_8
|
|
move-object v14, v1
|
|
|
|
move-object v7, v0
|
|
|
|
invoke-direct/range {v7 .. v14}, Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceChannel;-><init>(Lcom/discord/models/domain/ModelChannel;ZLjava/lang/Long;IZZLjava/lang/Integer;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic invoke()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
invoke-virtual {p0}, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$3;->invoke()Lcom/discord/widgets/channels/list/items/ChannelListItemVoiceChannel;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|