apkfuckery/com.discord/smali/f/a/n/q.smali

143 lines
3.4 KiB
Smali
Raw Normal View History

2020-11-21 22:11:07 +00:00
.class public final Lf/a/n/q;
.super Ljava/lang/Object;
.source "OverlayMenuView.kt"
# interfaces
.implements Lh0/k/b;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lh0/k/b<",
"Lcom/discord/models/domain/ModelChannel;",
"Lrx/Observable<",
"+",
"Lcom/discord/views/OverlayMenuView$a;",
">;>;"
}
.end annotation
# static fields
.field public static final d:Lf/a/n/q;
# direct methods
.method public static constructor <clinit>()V
.locals 1
new-instance v0, Lf/a/n/q;
invoke-direct {v0}, Lf/a/n/q;-><init>()V
sput-object v0, Lf/a/n/q;->d:Lf/a/n/q;
return-void
.end method
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public call(Ljava/lang/Object;)Ljava/lang/Object;
.locals 6
check-cast p1, Lcom/discord/models/domain/ModelChannel;
if-nez p1, :cond_0
const/4 p1, 0x0
new-instance v0, Lh0/l/e/j;
invoke-direct {v0, p1}, Lh0/l/e/j;-><init>(Ljava/lang/Object;)V
goto :goto_0
:cond_0
sget-object v0, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getPermissions()Lcom/discord/stores/StorePermissions;
move-result-object v1
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J
move-result-wide v2
invoke-virtual {v1, v2, v3}, Lcom/discord/stores/StorePermissions;->getForChannel(J)Lrx/Observable;
move-result-object v1
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getGuilds()Lcom/discord/stores/StoreGuilds;
move-result-object v2
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getGuildId()Ljava/lang/Long;
move-result-object v3
const-string v4, "channel.guildId"
invoke-static {v3, v4}, Ly/m/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v3}, Ljava/lang/Long;->longValue()J
move-result-wide v3
invoke-virtual {v2, v3, v4}, Lcom/discord/stores/StoreGuilds;->observeGuild(J)Lrx/Observable;
move-result-object v2
sget-object v3, Lcom/discord/widgets/voice/model/CallModel;->Companion:Lcom/discord/widgets/voice/model/CallModel$Companion;
invoke-virtual {p1}, Lcom/discord/models/domain/ModelChannel;->getId()J
move-result-wide v4
invoke-virtual {v3, v4, v5}, Lcom/discord/widgets/voice/model/CallModel$Companion;->get(J)Lrx/Observable;
move-result-object p1
invoke-virtual {v0}, Lcom/discord/stores/StoreStream$Companion;->getRtcConnection()Lcom/discord/stores/StoreRtcConnection;
move-result-object v0
invoke-virtual {v0}, Lcom/discord/stores/StoreRtcConnection;->getQuality()Lrx/Observable;
move-result-object v0
sget-object v3, Lf/a/n/p;->d:Lf/a/n/p;
if-eqz v3, :cond_1
new-instance v4, Lf/a/n/u;
invoke-direct {v4, v3}, Lf/a/n/u;-><init>(Lkotlin/jvm/functions/Function4;)V
move-object v3, v4
:cond_1
check-cast v3, Lrx/functions/Func4;
invoke-static {v1, v2, p1, v0, v3}, Lrx/Observable;->h(Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/Observable;Lrx/functions/Func4;)Lrx/Observable;
move-result-object v0
:goto_0
return-object v0
.end method