37 lines
1.6 KiB
Java
37 lines
1.6 KiB
Java
package com.discord.widgets.mobile_reports;
|
|
|
|
import com.discord.app.AppActivity;
|
|
import com.discord.widgets.mobile_reports.MobileReportsViewModel;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
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();
|
|
}
|
|
}
|
|
}
|