297 lines
11 KiB
Smali
297 lines
11 KiB
Smali
.class public final Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;
|
|
.super Lj0/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 = {
|
|
"Lj0/n/c/i;",
|
|
"Lkotlin/jvm/functions/Function0<",
|
|
"Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$TextLikeChannelData;",
|
|
">;"
|
|
}
|
|
.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 $isCategoryMuted:Z
|
|
|
|
.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 $muted:Z
|
|
|
|
.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;ZZLcom/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$1;->$channelId:J
|
|
|
|
move-object v1, p3
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
move v1, p4
|
|
|
|
iput-boolean v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$isCategoryMuted:Z
|
|
|
|
move v1, p5
|
|
|
|
iput-boolean v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$muted:Z
|
|
|
|
move-object v1, p6
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$guild$inlined:Lcom/discord/utilities/channel/GuildChannelsInfo;
|
|
|
|
move-object v1, p7
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$forceViewCategories$inlined:Ljava/util/HashSet;
|
|
|
|
move-wide v1, p8
|
|
|
|
iput-wide v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$selectedChannelId$inlined:J
|
|
|
|
move-object v1, p10
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$mentionCounts$inlined:Ljava/util/Map;
|
|
|
|
move-object v1, p11
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$unreadChannelIds$inlined:Ljava/util/Set;
|
|
|
|
move-wide v1, p12
|
|
|
|
iput-wide v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$selectedGuildId$inlined:J
|
|
|
|
move-object/from16 v1, p14
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$collapsedCategories$inlined:Ljava/util/Set;
|
|
|
|
move-wide/from16 v1, p15
|
|
|
|
iput-wide v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$selectedVoiceChannelId$inlined:J
|
|
|
|
move-object/from16 v1, p17
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$voiceStates$inlined:Ljava/util/Map;
|
|
|
|
move-object/from16 v1, p18
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$items$inlined:Ljava/util/ArrayList;
|
|
|
|
move-object/from16 v1, p19
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$me$inlined:Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-object/from16 v1, p20
|
|
|
|
iput-object v1, v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$tryRemoveEmptyCategory$1$inlined:Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$1;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-direct {p0, v1}, Lj0/n/c/i;-><init>(I)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final invoke()Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$TextLikeChannelData;
|
|
.locals 13
|
|
|
|
iget-wide v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$channelId:J
|
|
|
|
iget-wide v2, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$selectedChannelId$inlined:J
|
|
|
|
const/4 v4, 0x1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
cmp-long v6, v0, v2
|
|
|
|
if-nez v6, :cond_0
|
|
|
|
const/4 v8, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 v8, 0x0
|
|
|
|
:goto_0
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$mentionCounts$inlined:Ljava/util/Map;
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$channelId:J
|
|
|
|
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/lang/Integer;
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result v0
|
|
|
|
move v9, v0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
const/4 v9, 0x0
|
|
|
|
:goto_1
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$unreadChannelIds$inlined:Ljava/util/Set;
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$channelId:J
|
|
|
|
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-interface {v0, v1}, Ljava/util/Set;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v10
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/models/domain/ModelChannel;->getPermissionOverwrites()Ljava/util/Map;
|
|
|
|
move-result-object v0
|
|
|
|
iget-wide v1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$selectedGuildId$inlined:J
|
|
|
|
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, Lcom/discord/models/domain/ModelPermissionOverwrite;
|
|
|
|
const-wide/16 v1, 0x400
|
|
|
|
invoke-static {v0, v1, v2}, Lcom/discord/models/domain/ModelPermissionOverwrite;->denies(Lcom/discord/models/domain/ModelPermissionOverwrite;J)Z
|
|
|
|
move-result v11
|
|
|
|
if-gtz v9, :cond_2
|
|
|
|
if-nez v8, :cond_2
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$collapsedCategories$inlined:Ljava/util/Set;
|
|
|
|
iget-object v1, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$channel:Lcom/discord/models/domain/ModelChannel;
|
|
|
|
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getParentId()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/Set;->contains(Ljava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_2
|
|
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$isCategoryMuted:Z
|
|
|
|
if-nez v0, :cond_3
|
|
|
|
if-eqz v10, :cond_3
|
|
|
|
:cond_2
|
|
iget-boolean v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$muted:Z
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
iget-object v0, p0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$guildListBuilder$$inlined$forEach$lambda$1;->$guild$inlined:Lcom/discord/utilities/channel/GuildChannelsInfo;
|
|
|
|
invoke-virtual {v0}, Lcom/discord/utilities/channel/GuildChannelsInfo;->getHideMutedChannels()Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
:cond_3
|
|
const/4 v12, 0x1
|
|
|
|
goto :goto_2
|
|
|
|
:cond_4
|
|
const/4 v12, 0x0
|
|
|
|
:goto_2
|
|
new-instance v0, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$TextLikeChannelData;
|
|
|
|
move-object v7, v0
|
|
|
|
invoke-direct/range {v7 .. v12}, Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$TextLikeChannelData;-><init>(ZIZZZ)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$1;->invoke()Lcom/discord/widgets/channels/list/WidgetChannelListModel$Companion$TextLikeChannelData;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|