2021-08-03 07:33:18 +00:00
|
|
|
package com.discord.widgets.mobile_reports;
|
|
|
|
|
2021-10-15 06:18:26 +00:00
|
|
|
import c0.z.d.m;
|
|
|
|
import c0.z.d.o;
|
2021-08-03 07:33:18 +00:00
|
|
|
import com.discord.app.AppActivity;
|
|
|
|
import com.discord.widgets.mobile_reports.MobileReportsViewModel;
|
|
|
|
import kotlin.Unit;
|
|
|
|
import kotlin.jvm.functions.Function1;
|
|
|
|
/* compiled from: WidgetMobileReports.kt */
|
|
|
|
public final class WidgetMobileReports$onViewBoundOrOnResume$1 extends o implements Function1<MobileReportsViewModel.ViewState, Unit> {
|
|
|
|
public final /* synthetic */ WidgetMobileReports this$0;
|
|
|
|
|
|
|
|
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
|
|
|
|
public WidgetMobileReports$onViewBoundOrOnResume$1(WidgetMobileReports widgetMobileReports) {
|
|
|
|
super(1);
|
|
|
|
this.this$0 = widgetMobileReports;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* 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(MobileReportsViewModel.ViewState viewState) {
|
|
|
|
invoke(viewState);
|
|
|
|
return Unit.a;
|
|
|
|
}
|
|
|
|
|
|
|
|
public final void invoke(MobileReportsViewModel.ViewState viewState) {
|
|
|
|
AppActivity appActivity;
|
|
|
|
m.checkNotNullParameter(viewState, "viewState");
|
|
|
|
if (viewState instanceof MobileReportsViewModel.ViewState.Menu) {
|
|
|
|
WidgetMobileReports.access$configureUI(this.this$0, (MobileReportsViewModel.ViewState.Menu) viewState);
|
|
|
|
} else if ((viewState instanceof MobileReportsViewModel.ViewState.Invalid) && (appActivity = this.this$0.getAppActivity()) != null) {
|
|
|
|
appActivity.finish();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|