apkfuckery/com.discord/smali/com/discord/stores/StoreChannelCategories$getC...

141 lines
3.1 KiB
Smali

.class final Lcom/discord/stores/StoreChannelCategories$getChannelsForCategory$1;
.super Ljava/lang/Object;
# interfaces
.implements Lrx/functions/b;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/stores/StoreChannelCategories;->getChannelsForCategory(JJ)Lrx/Observable;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x18
name = null
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/functions/b<",
"TT;TR;>;"
}
.end annotation
# instance fields
.field final synthetic $categoryId:J
# direct methods
.method constructor <init>(J)V
.locals 0
iput-wide p1, p0, Lcom/discord/stores/StoreChannelCategories$getChannelsForCategory$1;->$categoryId:J
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public final bridge synthetic call(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
check-cast p1, Ljava/util/Map;
invoke-virtual {p0, p1}, Lcom/discord/stores/StoreChannelCategories$getChannelsForCategory$1;->call(Ljava/util/Map;)Ljava/util/List;
move-result-object p1
return-object p1
.end method
.method public final call(Ljava/util/Map;)Ljava/util/List;
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Map<",
"Ljava/lang/Long;",
"Lcom/discord/models/domain/ModelChannel;",
">;)",
"Ljava/util/List<",
"Lcom/discord/models/domain/ModelChannel;",
">;"
}
.end annotation
invoke-interface {p1}, Ljava/util/Map;->values()Ljava/util/Collection;
move-result-object p1
check-cast p1, Ljava/lang/Iterable;
new-instance v0, Ljava/util/ArrayList;
invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V
check-cast v0, Ljava/util/Collection;
invoke-interface {p1}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p1
:cond_0
:goto_0
invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z
move-result v1
if-eqz v1, :cond_2
invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
move-object v2, v1
check-cast v2, Lcom/discord/models/domain/ModelChannel;
const-string v3, "it"
invoke-static {v2, v3}, Lkotlin/jvm/internal/j;->g(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v2}, Lcom/discord/models/domain/ModelChannel;->getParentId()J
move-result-wide v2
iget-wide v4, p0, Lcom/discord/stores/StoreChannelCategories$getChannelsForCategory$1;->$categoryId:J
cmp-long v6, v2, v4
if-nez v6, :cond_1
const/4 v2, 0x1
goto :goto_1
:cond_1
const/4 v2, 0x0
:goto_1
if-eqz v2, :cond_0
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_2
check-cast v0, Ljava/util/List;
return-object v0
.end method