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

92 lines
2.2 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 21:45:36 +00:00
"TT1;TT2;TR;>;"
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 21:45:36 +00:00
.locals 2
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 21:45:36 +00:00
sget-object v0, Lcom/discord/utilities/voice/VoiceViewUtils;->INSTANCE:Lcom/discord/utilities/voice/VoiceViewUtils;
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
invoke-virtual {v0, 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 21:45:36 +00:00
iget-object v0, p0, Lf/a/n/s;->d:Lcom/discord/models/domain/ModelChannel;
invoke-virtual {v0}, Lcom/discord/models/domain/ModelChannel;->getName()Ljava/lang/String;
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
move-result-object v0
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
const-string v1, "channel.name"
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
invoke-static {v0, v1}, Lk0/n/c/h;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
new-instance v1, Lcom/discord/views/OverlayMenuView$b;
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
invoke-direct {v1, p1, p2, v0}, Lcom/discord/views/OverlayMenuView$b;-><init>(ILjava/lang/String;Ljava/lang/String;)V
2020-05-17 12:40:10 +00:00
2020-09-16 21:45:36 +00:00
return-object v1
2020-05-17 12:40:10 +00:00
.end method