28 lines
1.5 KiB
Java
28 lines
1.5 KiB
Java
package com.discord.widgets.servers;
|
|
|
|
import android.view.View;
|
|
import com.discord.restapi.RestAPIParams;
|
|
import com.discord.views.CheckedSetting;
|
|
import com.discord.widgets.servers.WidgetServerSettingsEditRole;
|
|
import d0.z.d.m;
|
|
/* compiled from: WidgetServerSettingsEditRole.kt */
|
|
public final class WidgetServerSettingsEditRole$setupHoistAndMentionSettings$2 implements View.OnClickListener {
|
|
public final /* synthetic */ WidgetServerSettingsEditRole.Model $data;
|
|
public final /* synthetic */ WidgetServerSettingsEditRole this$0;
|
|
|
|
public WidgetServerSettingsEditRole$setupHoistAndMentionSettings$2(WidgetServerSettingsEditRole widgetServerSettingsEditRole, WidgetServerSettingsEditRole.Model model) {
|
|
this.this$0 = widgetServerSettingsEditRole;
|
|
this.$data = model;
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
WidgetServerSettingsEditRole.access$getBinding$p(this.this$0).b.clearFocus();
|
|
RestAPIParams.Role createWithRole = RestAPIParams.Role.Companion.createWithRole(this.$data.getRole());
|
|
CheckedSetting checkedSetting = WidgetServerSettingsEditRole.access$getBinding$p(this.this$0).f1779z;
|
|
m.checkNotNullExpressionValue(checkedSetting, "binding.roleSettingsMentionableCheckedsetting");
|
|
createWithRole.setMentionable(Boolean.valueOf(!checkedSetting.isChecked()));
|
|
WidgetServerSettingsEditRole.access$patchRole(this.this$0, this.$data.getGuildId(), createWithRole);
|
|
}
|
|
}
|