38 lines
1.7 KiB
Java
38 lines
1.7 KiB
Java
|
package com.discord.widgets.channels.permissions;
|
||
|
|
||
|
import c.d.b.a.a;
|
||
|
import com.discord.widgets.channels.permissions.WidgetChannelSettingsPermissionsOverviewViewModel;
|
||
|
import d0.z.d.o;
|
||
|
import kotlin.Unit;
|
||
|
import kotlin.jvm.functions.Function1;
|
||
|
/* compiled from: WidgetChannelSettingsPermissionsOverview.kt */
|
||
|
public final class WidgetChannelSettingsPermissionsOverview$configureTabs$1 extends o implements Function1<Integer, Unit> {
|
||
|
public final /* synthetic */ WidgetChannelSettingsPermissionsOverview this$0;
|
||
|
|
||
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
||
|
public WidgetChannelSettingsPermissionsOverview$configureTabs$1(WidgetChannelSettingsPermissionsOverview widgetChannelSettingsPermissionsOverview) {
|
||
|
super(1);
|
||
|
this.this$0 = widgetChannelSettingsPermissionsOverview;
|
||
|
}
|
||
|
|
||
|
/* 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(Integer num) {
|
||
|
invoke(num.intValue());
|
||
|
return Unit.a;
|
||
|
}
|
||
|
|
||
|
public final void invoke(int i) {
|
||
|
WidgetChannelSettingsPermissionsOverviewViewModel.Tab tab;
|
||
|
if (i == 0) {
|
||
|
tab = WidgetChannelSettingsPermissionsOverviewViewModel.Tab.MODERATOR;
|
||
|
} else if (i == 1) {
|
||
|
tab = WidgetChannelSettingsPermissionsOverviewViewModel.Tab.ADVANCED;
|
||
|
} else {
|
||
|
throw new IllegalArgumentException(a.j("illegal index: ", i));
|
||
|
}
|
||
|
WidgetChannelSettingsPermissionsOverview.access$getViewModel$p(this.this$0).selectTab(tab);
|
||
|
}
|
||
|
}
|