apkfuckery/com.discord/smali/e/a/j/v.smali

128 lines
3.3 KiB
Smali
Raw Normal View History

2019-12-06 03:29:40 +00:00
.class public final Le/a/j/v;
2019-12-21 01:41:59 +00:00
.super Lt/u/b/k;
2019-12-06 03:29:40 +00:00
.source "OverlayMenuView.kt"
# interfaces
.implements Lkotlin/jvm/functions/Function1;
# annotations
.annotation system Ldalvik/annotation/Signature;
value = {
2019-12-21 01:41:59 +00:00
"Lt/u/b/k;",
2019-12-06 03:29:40 +00:00
"Lkotlin/jvm/functions/Function1<",
2020-01-22 01:17:22 +00:00
"Lcom/discord/views/OverlayMenuView$a;",
2019-12-06 03:29:40 +00:00
"Lkotlin/Unit;",
">;"
}
.end annotation
# instance fields
.field public final synthetic this$0:Lcom/discord/views/OverlayMenuView;
# direct methods
.method public constructor <init>(Lcom/discord/views/OverlayMenuView;)V
.locals 0
iput-object p1, p0, Le/a/j/v;->this$0:Lcom/discord/views/OverlayMenuView;
const/4 p1, 0x1
2019-12-21 01:41:59 +00:00
invoke-direct {p0, p1}, Lt/u/b/k;-><init>(I)V
2019-12-06 03:29:40 +00:00
return-void
.end method
# virtual methods
2020-01-22 01:17:22 +00:00
.method public final a(Lcom/discord/views/OverlayMenuView$a;)V
2019-12-06 03:29:40 +00:00
.locals 4
iget-object v0, p0, Le/a/j/v;->this$0:Lcom/discord/views/OverlayMenuView;
2020-01-22 01:17:22 +00:00
invoke-static {v0}, Lcom/discord/views/OverlayMenuView;->d(Lcom/discord/views/OverlayMenuView;)Landroid/widget/ImageView;
2019-12-06 03:29:40 +00:00
move-result-object v0
2020-01-22 01:17:22 +00:00
iget-boolean v1, p1, Lcom/discord/views/OverlayMenuView$a;->a:Z
2019-12-06 03:29:40 +00:00
2020-01-22 01:17:22 +00:00
invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setActivated(Z)V
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
iget-object v0, p1, Lcom/discord/views/OverlayMenuView$a;->b:Lcom/discord/stores/StoreAudioDevices$AudioDevicesState;
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
invoke-virtual {v0}, Lcom/discord/stores/StoreAudioDevices$AudioDevicesState;->getAudioOutputState()Lcom/discord/utilities/media/AudioOutputState;
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
move-result-object v0
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
invoke-virtual {v0}, Lcom/discord/utilities/media/AudioOutputState;->isBluetoothHeadsetDisconnected()Z
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
move-result v1
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
const/4 v2, 0x0
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
const/4 v3, 0x1
if-eqz v1, :cond_0
2019-12-06 03:29:40 +00:00
2020-01-22 01:17:22 +00:00
invoke-virtual {v0}, Lcom/discord/utilities/media/AudioOutputState;->isHeadsetUnplugged()Z
2019-12-06 03:29:40 +00:00
2020-01-22 01:17:22 +00:00
move-result v0
2019-12-06 03:29:40 +00:00
2020-01-22 01:17:22 +00:00
if-eqz v0, :cond_0
2019-12-06 03:29:40 +00:00
2020-01-22 01:17:22 +00:00
const/4 v0, 0x1
2019-12-06 03:29:40 +00:00
2020-01-22 01:17:22 +00:00
goto :goto_0
2019-12-06 03:29:40 +00:00
2020-01-22 01:17:22 +00:00
:cond_0
const/4 v0, 0x0
2019-12-06 03:29:40 +00:00
2020-01-22 01:17:22 +00:00
:goto_0
2020-01-23 01:26:29 +00:00
iget-object p1, p1, Lcom/discord/views/OverlayMenuView$a;->b:Lcom/discord/stores/StoreAudioDevices$AudioDevicesState;
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
invoke-virtual {p1}, Lcom/discord/stores/StoreAudioDevices$AudioDevicesState;->getSelectedOutputDevice()Lcom/discord/stores/StoreAudioDevices$OutputDevice;
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
move-result-object p1
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
iget-object v1, p0, Le/a/j/v;->this$0:Lcom/discord/views/OverlayMenuView;
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
invoke-static {v1}, Lcom/discord/views/OverlayMenuView;->f(Lcom/discord/views/OverlayMenuView;)Landroid/widget/ImageView;
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
move-result-object v1
2020-01-22 01:17:22 +00:00
2020-01-23 01:26:29 +00:00
invoke-virtual {v1, v0}, Landroid/widget/ImageView;->setEnabled(Z)V
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
iget-object v1, p0, Le/a/j/v;->this$0:Lcom/discord/views/OverlayMenuView;
invoke-static {v1}, Lcom/discord/views/OverlayMenuView;->f(Lcom/discord/views/OverlayMenuView;)Landroid/widget/ImageView;
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
move-result-object v1
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
if-eqz v0, :cond_1
instance-of p1, p1, Lcom/discord/stores/StoreAudioDevices$OutputDevice$Speaker;
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
if-eqz p1, :cond_1
2019-12-06 03:29:40 +00:00
2020-01-23 01:26:29 +00:00
const/4 v2, 0x1
2019-12-06 03:29:40 +00:00
2020-01-22 01:17:22 +00:00
:cond_1
2020-01-23 01:26:29 +00:00
invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setActivated(Z)V
2019-12-06 03:29:40 +00:00
return-void
.end method
.method public bridge synthetic invoke(Ljava/lang/Object;)Ljava/lang/Object;
.locals 0
2020-01-22 01:17:22 +00:00
check-cast p1, Lcom/discord/views/OverlayMenuView$a;
2019-12-06 03:29:40 +00:00
2020-01-22 01:17:22 +00:00
invoke-virtual {p0, p1}, Le/a/j/v;->a(Lcom/discord/views/OverlayMenuView$a;)V
2019-12-06 03:29:40 +00:00
sget-object p1, Lkotlin/Unit;->a:Lkotlin/Unit;
return-object p1
.end method