forked from Juby210/discord-jadx
56 lines
3.4 KiB
Java
56 lines
3.4 KiB
Java
package com.discord.widgets.voice.settings;
|
|
|
|
import android.view.View;
|
|
import android.widget.SeekBar;
|
|
import android.widget.TextView;
|
|
import com.discord.api.channel.ChannelUtils;
|
|
import com.discord.utilities.stateful.StatefulViews;
|
|
import com.discord.utilities.voice.Bitrate;
|
|
import com.discord.views.CheckedSetting;
|
|
import com.discord.widgets.voice.settings.WidgetVoiceChannelSettings;
|
|
import com.google.android.material.textfield.TextInputLayout;
|
|
import d0.z.d.m;
|
|
/* compiled from: WidgetVoiceChannelSettings.kt */
|
|
public final class WidgetVoiceChannelSettings$configureUI$6 implements View.OnClickListener {
|
|
public final /* synthetic */ WidgetVoiceChannelSettings.Model $this_configureUI;
|
|
public final /* synthetic */ WidgetVoiceChannelSettings this$0;
|
|
|
|
public WidgetVoiceChannelSettings$configureUI$6(WidgetVoiceChannelSettings widgetVoiceChannelSettings, WidgetVoiceChannelSettings.Model model) {
|
|
this.this$0 = widgetVoiceChannelSettings;
|
|
this.$this_configureUI = model;
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
WidgetVoiceChannelSettings widgetVoiceChannelSettings = this.this$0;
|
|
long h = this.$this_configureUI.getChannel().h();
|
|
StatefulViews access$getState$p = WidgetVoiceChannelSettings.access$getState$p(this.this$0);
|
|
TextInputLayout textInputLayout = WidgetVoiceChannelSettings.access$getBinding$p(this.this$0).c;
|
|
m.checkNotNullExpressionValue(textInputLayout, "binding.channelSettingsEditName");
|
|
String str = (String) access$getState$p.get(textInputLayout.getId(), ChannelUtils.c(this.$this_configureUI.getChannel()));
|
|
StatefulViews access$getState$p2 = WidgetVoiceChannelSettings.access$getState$p(this.this$0);
|
|
TextInputLayout textInputLayout2 = WidgetVoiceChannelSettings.access$getBinding$p(this.this$0).d;
|
|
m.checkNotNullExpressionValue(textInputLayout2, "binding.channelSettingsEditTopic");
|
|
int id2 = textInputLayout2.getId();
|
|
String z2 = this.$this_configureUI.getChannel().z();
|
|
if (z2 == null) {
|
|
z2 = "";
|
|
}
|
|
String str2 = (String) access$getState$p2.get(id2, z2);
|
|
CheckedSetting checkedSetting = WidgetVoiceChannelSettings.access$getBinding$p(this.this$0).e;
|
|
m.checkNotNullExpressionValue(checkedSetting, "binding.channelSettingsNsfw");
|
|
Boolean valueOf = Boolean.valueOf(checkedSetting.isChecked());
|
|
int A = this.$this_configureUI.getChannel().A();
|
|
SeekBar seekBar = WidgetVoiceChannelSettings.access$getBinding$p(this.this$0).t;
|
|
m.checkNotNullExpressionValue(seekBar, "binding.userLimitSeekbar");
|
|
int progress = seekBar.getProgress();
|
|
SeekBar seekBar2 = WidgetVoiceChannelSettings.access$getBinding$p(this.this$0).f2666b;
|
|
m.checkNotNullExpressionValue(seekBar2, "binding.bitrateSeekbar");
|
|
int progress2 = seekBar2.getProgress();
|
|
StatefulViews access$getState$p3 = WidgetVoiceChannelSettings.access$getState$p(this.this$0);
|
|
TextView textView = WidgetVoiceChannelSettings.access$getBinding$p(this.this$0).g;
|
|
m.checkNotNullExpressionValue(textView, "binding.channelSettingsRegionOverride");
|
|
WidgetVoiceChannelSettings.access$saveChannel(widgetVoiceChannelSettings, h, str, A, str2, valueOf, progress, (Bitrate.MIN.getKbps() + progress2) * 1000, (String) access$getState$p3.get(textView.getId(), this.$this_configureUI.getChannel().x()));
|
|
}
|
|
}
|