55 lines
2.4 KiB
Java
55 lines
2.4 KiB
Java
package com.discord.widgets.auth;
|
|
|
|
import android.content.ActivityNotFoundException;
|
|
import android.content.Intent;
|
|
import android.view.View;
|
|
import androidx.fragment.app.FragmentManager;
|
|
import com.discord.widgets.notice.WidgetNoticeDialog;
|
|
import d0.z.d.m;
|
|
import d0.z.d.o;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.functions.Function1;
|
|
/* compiled from: WidgetAuthLogin.kt */
|
|
public final class WidgetAuthLogin$onViewBound$5 implements View.OnClickListener {
|
|
public final /* synthetic */ WidgetAuthLogin this$0;
|
|
|
|
/* compiled from: WidgetAuthLogin.kt */
|
|
/* renamed from: com.discord.widgets.auth.WidgetAuthLogin$onViewBound$5$1 reason: invalid class name */
|
|
public static final class AnonymousClass1 extends o implements Function1<View, Unit> {
|
|
public static final AnonymousClass1 INSTANCE = new AnonymousClass1();
|
|
|
|
public AnonymousClass1() {
|
|
super(1);
|
|
}
|
|
|
|
/* 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(View view) {
|
|
invoke(view);
|
|
return Unit.a;
|
|
}
|
|
|
|
public final void invoke(View view) {
|
|
m.checkNotNullParameter(view, "it");
|
|
try {
|
|
view.getContext().startActivity(new Intent("android.settings.ACCESSIBILITY_SETTINGS"));
|
|
} catch (ActivityNotFoundException unused) {
|
|
c.a.d.o.g(view.getContext(), 2131891918, 0, null, 12);
|
|
}
|
|
}
|
|
}
|
|
|
|
public WidgetAuthLogin$onViewBound$5(WidgetAuthLogin widgetAuthLogin) {
|
|
this.this$0 = widgetAuthLogin;
|
|
}
|
|
|
|
@Override // android.view.View.OnClickListener
|
|
public final void onClick(View view) {
|
|
WidgetNoticeDialog.Builder negativeButton$default = WidgetNoticeDialog.Builder.setNegativeButton$default(new WidgetNoticeDialog.Builder(this.this$0.requireContext()).setTitle(2131891915).setMessage(2131891916).setPositiveButton(2131891917, AnonymousClass1.INSTANCE), 2131887179, (Function1) null, 2, (Object) null);
|
|
FragmentManager parentFragmentManager = this.this$0.getParentFragmentManager();
|
|
m.checkNotNullExpressionValue(parentFragmentManager, "parentFragmentManager");
|
|
negativeButton$default.show(parentFragmentManager);
|
|
}
|
|
}
|