68 lines
2.4 KiB
Smali
68 lines
2.4 KiB
Smali
.class final Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureVoiceSection$1;
|
|
.super Ljava/lang/Object;
|
|
.source "WidgetUserSheet.kt"
|
|
|
|
# interfaces
|
|
.implements Landroid/widget/CompoundButton$OnCheckedChangeListener;
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingMethod;
|
|
value = Lcom/discord/widgets/user/usersheet/WidgetUserSheet;->configureVoiceSection(Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel$ViewState;)V
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x18
|
|
name = null
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field final synthetic $viewState:Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel$ViewState;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel$ViewState;)V
|
|
.locals 0
|
|
|
|
iput-object p1, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureVoiceSection$1;->$viewState:Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel$ViewState;
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public final onCheckedChanged(Landroid/widget/CompoundButton;Z)V
|
|
.locals 2
|
|
|
|
iget-object p1, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureVoiceSection$1;->$viewState:Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel$ViewState;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel$ViewState;->isUserMuted()Z
|
|
|
|
move-result p1
|
|
|
|
if-eq p2, p1, :cond_0
|
|
|
|
sget-object p1, Lcom/discord/stores/StoreStream;->Companion:Lcom/discord/stores/StoreStream$Companion;
|
|
|
|
invoke-virtual {p1}, Lcom/discord/stores/StoreStream$Companion;->getMediaSettings()Lcom/discord/stores/StoreMediaSettings;
|
|
|
|
move-result-object p1
|
|
|
|
iget-object p2, p0, Lcom/discord/widgets/user/usersheet/WidgetUserSheet$configureVoiceSection$1;->$viewState:Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel$ViewState;
|
|
|
|
invoke-virtual {p2}, Lcom/discord/widgets/user/usersheet/WidgetUserSheetViewModel$ViewState;->getUser()Lcom/discord/models/domain/ModelUser;
|
|
|
|
move-result-object p2
|
|
|
|
invoke-virtual {p2}, Lcom/discord/models/domain/ModelUser;->getId()J
|
|
|
|
move-result-wide v0
|
|
|
|
invoke-virtual {p1, v0, v1}, Lcom/discord/stores/StoreMediaSettings;->toggleUserMuted(J)V
|
|
|
|
:cond_0
|
|
return-void
|
|
.end method
|