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

95 lines
2.3 KiB
Smali
Raw Normal View History

2020-07-08 16:44:49 +00:00
.class public final Lf/a/n/s;
2020-05-17 12:40:10 +00:00
.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<",
2020-09-16 23:45:23 +00:00
"Lcom/discord/rtcconnection/RtcConnection$Quality;",
"Lcom/discord/models/domain/ModelGuild;",
"Lcom/discord/views/OverlayMenuView$b;",
">;"
2020-05-17 12:40:10 +00:00
}
.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
2020-07-08 16:44:49 +00:00
iput-object p1, p0, Lf/a/n/s;->d:Lcom/discord/models/domain/ModelChannel;
2020-05-17 12:40:10 +00:00
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;
2020-09-16 23:45:23 +00:00
.locals 3
2020-05-17 12:40:10 +00:00
check-cast p1, Lcom/discord/rtcconnection/RtcConnection$Quality;
check-cast p2, Lcom/discord/models/domain/ModelGuild;
2020-09-16 23:45:23 +00:00
new-instance v0, Lcom/discord/views/OverlayMenuView$b;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
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
2020-05-17 12:40:10 +00:00
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
2020-09-16 23:45:23 +00:00
iget-object v1, p0, Lf/a/n/s;->d:Lcom/discord/models/domain/ModelChannel;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
invoke-virtual {v1}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
move-result-object v1
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
const-string v2, "channel.name"
2020-05-17 12:40:10 +00:00
2020-09-22 06:09:03 +00:00
invoke-static {v1, v2}, Lk0/n/c/i;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
invoke-direct {v0, p1, p2, v1}, Lcom/discord/views/OverlayMenuView$b;-><init>(ILjava/lang/String;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-09-16 23:45:23 +00:00
return-object v0
2020-05-17 12:40:10 +00:00
.end method