apkfuckery/com.discord/smali/f/a/m/s.smali
2020-11-09 19:03:49 +00:00

94 lines
2.3 KiB
Smali

.class public final Lf/a/m/s;
.super Ljava/lang/Object;
.source "OverlayMenuView.kt"
# interfaces
.implements Lrx/functions/Func2;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
"<T1:",
"Ljava/lang/Object;",
"T2:",
"Ljava/lang/Object;",
"R:",
"Ljava/lang/Object;",
">",
"Ljava/lang/Object;",
"Lrx/functions/Func2<",
"Lcom/discord/rtcconnection/RtcConnection$Quality;",
"Lcom/discord/models/domain/ModelGuild;",
"Lcom/discord/views/OverlayMenuView$b;",
">;"
}
.end annotation
# instance fields
.field public final synthetic d:Lcom/discord/models/domain/ModelChannel;
# direct methods
.method public constructor <init>(Lcom/discord/models/domain/ModelChannel;)V
.locals 0
iput-object p1, p0, Lf/a/m/s;->d:Lcom/discord/models/domain/ModelChannel;
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
# virtual methods
.method public call(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
.locals 3
check-cast p1, Lcom/discord/rtcconnection/RtcConnection$Quality;
check-cast p2, Lcom/discord/models/domain/ModelGuild;
new-instance v0, Lcom/discord/views/OverlayMenuView$b;
sget-object v1, Lcom/discord/utilities/voice/VoiceViewUtils;->INSTANCE:Lcom/discord/utilities/voice/VoiceViewUtils;
invoke-virtual {v1, p1}, Lcom/discord/utilities/voice/VoiceViewUtils;->getQualityIndicator(Lcom/discord/rtcconnection/RtcConnection$Quality;)I
move-result p1
if-eqz p2, :cond_0
invoke-virtual {p2}, Lcom/discord/models/domain/ModelGuild;->getName()Ljava/lang/String;
move-result-object p2
goto :goto_0
:cond_0
const/4 p2, 0x0
:goto_0
if-eqz p2, :cond_1
goto :goto_1
:cond_1
const-string p2, ""
:goto_1
iget-object v1, p0, Lf/a/m/s;->d:Lcom/discord/models/domain/ModelChannel;
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String;
move-result-object v1
const-string v2, "channel.name"
invoke-static {v1, v2}, Ly/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-direct {v0, p1, p2, v1}, Lcom/discord/views/OverlayMenuView$b;-><init>(ILjava/lang/String;Ljava/lang/String;)V
return-object v0
.end method