33 lines
1.7 KiB
Java
33 lines
1.7 KiB
Java
package com.discord.widgets.channels.settings;
|
|
|
|
import android.widget.SeekBar;
|
|
import android.widget.TextView;
|
|
import c.a.y.i;
|
|
import com.discord.utilities.threads.ThreadUtils;
|
|
import d0.z.d.m;
|
|
/* compiled from: WidgetTextChannelSettings.kt */
|
|
public final class WidgetTextChannelSettings$onViewBound$2 extends i {
|
|
public final /* synthetic */ WidgetTextChannelSettings this$0;
|
|
|
|
public WidgetTextChannelSettings$onViewBound$2(WidgetTextChannelSettings widgetTextChannelSettings) {
|
|
this.this$0 = widgetTextChannelSettings;
|
|
}
|
|
|
|
@Override // c.a.y.i, android.widget.SeekBar.OnSeekBarChangeListener
|
|
public void onProgressChanged(SeekBar seekBar, int i, boolean z2) {
|
|
m.checkNotNullParameter(seekBar, "seekBar");
|
|
super.onProgressChanged(seekBar, i, z2);
|
|
if (z2) {
|
|
Integer num = ThreadUtils.INSTANCE.getTHREAD_AUTO_ARCHIVE_DURATIONS().get(i);
|
|
m.checkNotNullExpressionValue(num, "THREAD_AUTO_ARCHIVE_DURATIONS[progress]");
|
|
int intValue = num.intValue();
|
|
WidgetTextChannelSettings.access$setDefaultAutoArchiveDurationLabel(this.this$0, intValue);
|
|
WidgetTextChannelSettings.access$getState$p(this.this$0).put(2131362353, Integer.valueOf(intValue));
|
|
WidgetTextChannelSettings.access$getState$p(this.this$0).configureSaveActionView(WidgetTextChannelSettings.access$getBinding$p(this.this$0).m);
|
|
TextView textView = WidgetTextChannelSettings.access$getBinding$p(this.this$0).f1985c;
|
|
m.checkNotNullExpressionValue(textView, "binding.channelSettingsD…tAutoArchiveDurationLabel");
|
|
seekBar.setContentDescription(textView.getText());
|
|
}
|
|
}
|
|
}
|