41 lines
2.6 KiB
Java
41 lines
2.6 KiB
Java
package com.discord.widgets.channels.settings;
|
|
|
|
import android.view.View;
|
|
import android.widget.SeekBar;
|
|
import com.discord.utilities.stateful.StatefulViews;
|
|
import com.discord.widgets.channels.settings.WidgetTextChannelSettings;
|
|
import com.google.android.material.textfield.TextInputLayout;
|
|
import d0.z.d.m;
|
|
/* compiled from: WidgetTextChannelSettings.kt */
|
|
public final class WidgetTextChannelSettings$configureUI$3 implements View.OnClickListener {
|
|
public final /* synthetic */ WidgetTextChannelSettings.Model $this_configureUI;
|
|
public final /* synthetic */ WidgetTextChannelSettings this$0;
|
|
|
|
public WidgetTextChannelSettings$configureUI$3(WidgetTextChannelSettings widgetTextChannelSettings, WidgetTextChannelSettings.Model model) {
|
|
this.this$0 = widgetTextChannelSettings;
|
|
this.$this_configureUI = model;
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
WidgetTextChannelSettings widgetTextChannelSettings = this.this$0;
|
|
long h = this.$this_configureUI.getChannel().h();
|
|
StatefulViews access$getState$p = WidgetTextChannelSettings.access$getState$p(this.this$0);
|
|
TextInputLayout textInputLayout = WidgetTextChannelSettings.access$getBinding$p(this.this$0).e;
|
|
m.checkNotNullExpressionValue(textInputLayout, "binding.channelSettingsEditName");
|
|
String str = (String) access$getState$p.getIfChanged(textInputLayout.getId());
|
|
StatefulViews access$getState$p2 = WidgetTextChannelSettings.access$getState$p(this.this$0);
|
|
TextInputLayout textInputLayout2 = WidgetTextChannelSettings.access$getBinding$p(this.this$0).f;
|
|
m.checkNotNullExpressionValue(textInputLayout2, "binding.channelSettingsEditTopic");
|
|
String str2 = (String) access$getState$p2.getIfChanged(textInputLayout2.getId());
|
|
StatefulViews access$getState$p3 = WidgetTextChannelSettings.access$getState$p(this.this$0);
|
|
SeekBar seekBar = WidgetTextChannelSettings.access$getBinding$p(this.this$0).f1986s;
|
|
m.checkNotNullExpressionValue(seekBar, "binding.channelSettingsSlowModeCooldownSlider");
|
|
Integer num = (Integer) access$getState$p3.getIfChanged(seekBar.getId());
|
|
StatefulViews access$getState$p4 = WidgetTextChannelSettings.access$getState$p(this.this$0);
|
|
SeekBar seekBar2 = WidgetTextChannelSettings.access$getBinding$p(this.this$0).d;
|
|
m.checkNotNullExpressionValue(seekBar2, "binding.channelSettingsD…AutoArchiveDurationSlider");
|
|
WidgetTextChannelSettings.saveChannel$default(widgetTextChannelSettings, h, str, null, str2, null, num, (Integer) access$getState$p4.getIfChanged(seekBar2.getId()), 20, null);
|
|
}
|
|
}
|