forked from Juby210/discord-jadx
65 lines
3.4 KiB
Java
65 lines
3.4 KiB
Java
package com.discord.widgets.stage.sheet;
|
|
|
|
import android.view.View;
|
|
import c.a.d.m;
|
|
import c0.z.d.o;
|
|
import com.discord.R;
|
|
import com.discord.widgets.stage.sheet.WidgetStageRaisedHandsBottomSheetViewModel;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function0;
|
|
/* compiled from: WidgetStageRaisedHandsBottomSheet.kt */
|
|
public final class WidgetStageRaisedHandsBottomSheet$configureToggleSpeakerState$1 implements View.OnClickListener {
|
|
public final /* synthetic */ WidgetStageRaisedHandsBottomSheetViewModel.ViewState.Loaded $viewState;
|
|
public final /* synthetic */ WidgetStageRaisedHandsBottomSheet this$0;
|
|
|
|
/* compiled from: WidgetStageRaisedHandsBottomSheet.kt */
|
|
/* renamed from: com.discord.widgets.stage.sheet.WidgetStageRaisedHandsBottomSheet$configureToggleSpeakerState$1$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 extends o implements Function0<Unit> {
|
|
public final /* synthetic */ WidgetStageRaisedHandsBottomSheet$configureToggleSpeakerState$1 this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass1(WidgetStageRaisedHandsBottomSheet$configureToggleSpeakerState$1 widgetStageRaisedHandsBottomSheet$configureToggleSpeakerState$1) {
|
|
super(0);
|
|
this.this$0 = widgetStageRaisedHandsBottomSheet$configureToggleSpeakerState$1;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final void mo17invoke() {
|
|
m.g(this.this$0.this$0.getContext(), R.string.stage_channel_permission_microphone_denied, 0, null, 12);
|
|
}
|
|
}
|
|
|
|
/* compiled from: WidgetStageRaisedHandsBottomSheet.kt */
|
|
/* renamed from: com.discord.widgets.stage.sheet.WidgetStageRaisedHandsBottomSheet$configureToggleSpeakerState$1$2 reason: invalid class name */
|
|
public static final class AnonymousClass2 extends o implements Function0<Unit> {
|
|
public final /* synthetic */ WidgetStageRaisedHandsBottomSheet$configureToggleSpeakerState$1 this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public AnonymousClass2(WidgetStageRaisedHandsBottomSheet$configureToggleSpeakerState$1 widgetStageRaisedHandsBottomSheet$configureToggleSpeakerState$1) {
|
|
super(0);
|
|
this.this$0 = widgetStageRaisedHandsBottomSheet$configureToggleSpeakerState$1;
|
|
}
|
|
|
|
@Override // kotlin.jvm.functions.Function0
|
|
/* renamed from: invoke */
|
|
public final void mo17invoke() {
|
|
WidgetStageRaisedHandsBottomSheet.access$getViewModel$p(this.this$0.this$0).setSpeakingState(false);
|
|
}
|
|
}
|
|
|
|
public WidgetStageRaisedHandsBottomSheet$configureToggleSpeakerState$1(WidgetStageRaisedHandsBottomSheet widgetStageRaisedHandsBottomSheet, WidgetStageRaisedHandsBottomSheetViewModel.ViewState.Loaded loaded) {
|
|
this.this$0 = widgetStageRaisedHandsBottomSheet;
|
|
this.$viewState = loaded;
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
boolean isSpeaker = this.$viewState.isSpeaker();
|
|
if (isSpeaker) {
|
|
WidgetStageRaisedHandsBottomSheet.access$getViewModel$p(this.this$0).setSpeakingState(true);
|
|
} else if (!isSpeaker) {
|
|
this.this$0.requestMicrophone(new AnonymousClass1(this), new AnonymousClass2(this));
|
|
}
|
|
}
|
|
}
|