31 lines
1.3 KiB
Java
31 lines
1.3 KiB
Java
package com.discord.widgets.auth;
|
|
|
|
import com.discord.app.AppViewFlipper;
|
|
import d0.z.d.m;
|
|
import rx.functions.Func0;
|
|
/* compiled from: WidgetAgeVerify.kt */
|
|
public final class WidgetAgeVerify$configureUI$1<R> implements Func0<Boolean> {
|
|
public final /* synthetic */ WidgetAgeVerify this$0;
|
|
|
|
public WidgetAgeVerify$configureUI$1(WidgetAgeVerify widgetAgeVerify) {
|
|
this.this$0 = widgetAgeVerify;
|
|
}
|
|
|
|
@Override // rx.functions.Func0, java.util.concurrent.Callable
|
|
public final Boolean call() {
|
|
AppViewFlipper appViewFlipper = WidgetAgeVerify.access$getBinding$p(this.this$0).b;
|
|
m.checkNotNullExpressionValue(appViewFlipper, "binding.ageVerifyViewFlipper");
|
|
int displayedChild = appViewFlipper.getDisplayedChild();
|
|
if (displayedChild == 1) {
|
|
WidgetAgeVerify.access$getViewModel$p(this.this$0).onConfirmBackClicked();
|
|
} else if (displayedChild == 2) {
|
|
this.this$0.requireAppActivity().j(this.this$0.requireContext());
|
|
} else if (WidgetAgeVerify.access$getViewModel$p(this.this$0).backToSafety()) {
|
|
this.this$0.requireAppActivity().j(this.this$0.requireContext());
|
|
} else {
|
|
this.this$0.requireActivity().finish();
|
|
}
|
|
return Boolean.TRUE;
|
|
}
|
|
}
|