discord-jadx/app/src/main/java/com/discord/widgets/channels/settings/WidgetChannelGroupDMSetting...

30 lines
1.5 KiB
Java

package com.discord.widgets.channels.settings;
import android.view.View;
import com.discord.api.channel.Channel;
import com.discord.utilities.stateful.StatefulViews;
import com.google.android.material.textfield.TextInputLayout;
import d0.z.d.m;
/* compiled from: WidgetChannelGroupDMSettings.kt */
public final class WidgetChannelGroupDMSettings$configureUi$2 implements View.OnClickListener {
public final /* synthetic */ String $displayName;
public final /* synthetic */ Channel $group;
public final /* synthetic */ WidgetChannelGroupDMSettings this$0;
public WidgetChannelGroupDMSettings$configureUi$2(WidgetChannelGroupDMSettings widgetChannelGroupDMSettings, Channel channel, String str) {
this.this$0 = widgetChannelGroupDMSettings;
this.$group = channel;
this.$displayName = str;
}
@Override // android.view.View.OnClickListener
public final void onClick(View view) {
ChannelGroupDMSettingsViewModel access$getViewModel$p = WidgetChannelGroupDMSettings.access$getViewModel$p(this.this$0);
long h = this.$group.h();
StatefulViews access$getState$p = WidgetChannelGroupDMSettings.access$getState$p(this.this$0);
TextInputLayout textInputLayout = WidgetChannelGroupDMSettings.access$getBinding$p(this.this$0).b;
m.checkNotNullExpressionValue(textInputLayout, "binding.channelSettingsEditName");
access$getViewModel$p.editGroup(h, ((String) access$getState$p.get(textInputLayout.getId(), this.$displayName)).toString());
}
}