48 lines
2.8 KiB
Java
48 lines
2.8 KiB
Java
package com.discord.widgets.servers;
|
|
|
|
import android.widget.LinearLayout;
|
|
import android.widget.TextView;
|
|
import com.discord.utilities.icon.IconUtils;
|
|
import com.discord.utilities.stateful.StatefulViews;
|
|
import com.discord.widgets.servers.WidgetServerRegionSelectDialog;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetServerSettingsOverview.kt */
|
|
public final class WidgetServerSettingsOverview$showRegionDialog$$inlined$apply$lambda$1 extends o implements Function1<WidgetServerRegionSelectDialog.VoiceRegion, Unit> {
|
|
public final /* synthetic */ WidgetServerSettingsOverview this$0;
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
public WidgetServerSettingsOverview$showRegionDialog$$inlined$apply$lambda$1(WidgetServerSettingsOverview widgetServerSettingsOverview) {
|
|
super(1);
|
|
this.this$0 = widgetServerSettingsOverview;
|
|
}
|
|
|
|
/* Return type fixed from 'java.lang.Object' to match base method */
|
|
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object] */
|
|
@Override // kotlin.jvm.functions.Function1
|
|
public /* bridge */ /* synthetic */ Unit invoke(WidgetServerRegionSelectDialog.VoiceRegion voiceRegion) {
|
|
invoke(voiceRegion);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(WidgetServerRegionSelectDialog.VoiceRegion voiceRegion) {
|
|
m.checkNotNullParameter(voiceRegion, "voiceRegion");
|
|
int voiceRegionIconResourceId = IconUtils.INSTANCE.getVoiceRegionIconResourceId(voiceRegion.getId());
|
|
WidgetServerSettingsOverview.access$getState$p(this.this$0).put(2131364216, voiceRegion.getName());
|
|
WidgetServerSettingsOverview.access$getState$p(this.this$0).put(2131364217, Integer.valueOf(voiceRegionIconResourceId));
|
|
StatefulViews access$getState$p = WidgetServerSettingsOverview.access$getState$p(this.this$0);
|
|
LinearLayout linearLayout = WidgetServerSettingsOverview.access$getBinding$p(this.this$0).e.d;
|
|
m.checkNotNullExpressionValue(linearLayout, "binding.region.overviewRegionWrap");
|
|
access$getState$p.put(linearLayout.getId(), voiceRegion.getId());
|
|
TextView textView = WidgetServerSettingsOverview.access$getBinding$p(this.this$0).e.b;
|
|
m.checkNotNullExpressionValue(textView, "binding.region.overviewRegion");
|
|
textView.setText(voiceRegion.getName());
|
|
WidgetServerSettingsOverview.access$getBinding$p(this.this$0).e.f190c.setImageResource(voiceRegionIconResourceId);
|
|
LinearLayout linearLayout2 = WidgetServerSettingsOverview.access$getBinding$p(this.this$0).e.d;
|
|
m.checkNotNullExpressionValue(linearLayout2, "binding.region.overviewRegionWrap");
|
|
linearLayout2.setTag(voiceRegion.getId());
|
|
}
|
|
}
|