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

137 lines
3.3 KiB
Smali

.class final Lcom/discord/stores/StoreChannelCategories$getChannelCategories$1;
.super Ljava/lang/Object;
# interfaces
.implements Lrx/functions/b;
# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
value = Lcom/discord/stores/StoreChannelCategories;->getChannelCategories(J)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
# static fields
.field public static final INSTANCE:Lcom/discord/stores/StoreChannelCategories$getChannelCategories$1;
# direct methods
.method static constructor <clinit>()V
.locals 1
new-instance v0, Lcom/discord/stores/StoreChannelCategories$getChannelCategories$1;
invoke-direct {v0}, Lcom/discord/stores/StoreChannelCategories$getChannelCategories$1;-><init>()V
sput-object v0, Lcom/discord/stores/StoreChannelCategories$getChannelCategories$1;->INSTANCE:Lcom/discord/stores/StoreChannelCategories$getChannelCategories$1;
return-void
.end method
.method constructor <init>()V
.locals 0
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$getChannelCategories$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 4
.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_1
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;->isCategory()Z
move-result v2
if-eqz v2, :cond_0
invoke-interface {v0, v1}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
goto :goto_0
:cond_1
check-cast v0, Ljava/util/List;
return-object v0
.end method