正在查看: Empower MX v1.29.4.340 应用的 NotificationSettingsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Empower MX v1.29.4.340 应用的 NotificationSettingsActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package finance.empower.android.app.notifications;
import Ff.n;
import Gf.C0765p;
import Ic.x;
import Ie.e;
import Jd.t;
import Je.B;
import Ke.C0860n;
import ac.C0995g;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import bc.AbstractC1046m;
import com.withpersona.sdk2.inquiry.network.HttpStatusCode;
import finance.empower.android.app.notifications.NotificationSettingsActivity;
import finance.empower.android.app.notifications.e;
import finance.empower.android.core.ui.view.loading.FetchErrorView;
import finance.empower.android.data.model.notifications.NotificationSetting;
import java.util.ArrayList;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import sf.l;
import sf.m;
@Metadata(d1 = {"\u0000j\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\b\b\u0007\u0018\u0000 @2\u00020\u00012\u00020\u0002:\u0001AB\u0007¢\u0006\u0004\b\u0003\u0010\u0004J\u0017\u0010\b\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0005H\u0002¢\u0006\u0004\b\b\u0010\tJ\u000f\u0010\n\u001a\u00020\u0007H\u0002¢\u0006\u0004\b\n\u0010\u0004J\u0015\u0010\r\u001a\b\u0012\u0004\u0012\u00020\f0\u000bH\u0002¢\u0006\u0004\b\r\u0010\u000eJ\u0019\u0010\u0011\u001a\u00020\u00072\b\u0010\u0010\u001a\u0004\u0018\u00010\u000fH\u0014¢\u0006\u0004\b\u0011\u0010\u0012J\u000f\u0010\u0013\u001a\u00020\u0007H\u0014¢\u0006\u0004\b\u0013\u0010\u0004J\u000f\u0010\u0014\u001a\u00020\u0007H\u0014¢\u0006\u0004\b\u0014\u0010\u0004J\u001d\u0010\u0017\u001a\u00020\u00072\f\u0010\u0016\u001a\b\u0012\u0004\u0012\u00020\u00050\u0015H\u0016¢\u0006\u0004\b\u0017\u0010\u0018R*\u0010!\u001a\u00020\u00192\u0006\u0010\u001a\u001a\u00020\u00198\u0006@GX\u0086.¢\u0006\u0012\n\u0004\b\u001b\u0010\u001c\u001a\u0004\b\u001d\u0010\u001e\"\u0004\b\u001f\u0010 R*\u0010)\u001a\u00020\"2\u0006\u0010\u001a\u001a\u00020\"8\u0006@GX\u0086.¢\u0006\u0012\n\u0004\b#\u0010$\u001a\u0004\b%\u0010&\"\u0004\b'\u0010(R\u001b\u0010/\u001a\u00020*8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b+\u0010,\u001a\u0004\b-\u0010.R!\u00104\u001a\b\u0012\u0004\u0012\u00020\u0005008BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b1\u0010,\u001a\u0004\b2\u00103R\u001b\u00109\u001a\u0002058BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b6\u0010,\u001a\u0004\b7\u00108R\u001a\u0010?\u001a\u00020:8\u0014X\u0094D¢\u0006\f\n\u0004\b;\u0010<\u001a\u0004\b=\u0010>¨\u0006B"}, d2 = {"Lfinance/empower/android/app/notifications/NotificationSettingsActivity;", "Lbc/m;", "Lfinance/empower/android/app/notifications/e$a;", "<init>", "()V", "Lfinance/empower/android/app/notifications/e$a$a;", "content", "", "Z1", "(Lfinance/empower/android/app/notifications/e$a$a;)V", "P1", "", "Landroid/content/Intent;", "O1", "()[Landroid/content/Intent;", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "onStart", "onStop", "LIe/e$a;", "viewState", "Y1", "(LIe/e$a;)V", "Lfinance/empower/android/app/notifications/e;", "value", "i0", "Lfinance/empower/android/app/notifications/e;", "T1", "()Lfinance/empower/android/app/notifications/e;", "a2", "(Lfinance/empower/android/app/notifications/e;)V", "presenter", "LBd/g;", "j0", "LBd/g;", "U1", "()LBd/g;", "b2", "(LBd/g;)V", "pushNotificationManager", "LIc/m;", "k0", "Lsf/l;", "S1", "()LIc/m;", "notificationSettingsAdapter", "LIe/b;", "l0", "R1", "()LIe/b;", "loadingBehavior", "LKe/n;", "m0", "Q1", "()LKe/n;", "binding", "", "n0", "Ljava/lang/String;", "C1", "()Ljava/lang/String;", "pageName", "o0", "a", "empower-app_productionRelease"}, k = 1, mv = {2, 1, HttpStatusCode.NETWORK_ERROR_0}, xi = 48)
public final class NotificationSettingsActivity extends a implements e.a {
public static final Companion INSTANCE = new Companion(null);
public static final int p0 = 8;
public e presenter;
public Bd.g pushNotificationManager;
private final l notificationSettingsAdapter = m.a(new Function0() {
@Override
public final Object invoke() {
m X1;
X1 = NotificationSettingsActivity.X1(NotificationSettingsActivity.this);
return X1;
}
});
private final l loadingBehavior = m.a(new Function0() {
@Override
public final Object invoke() {
Ie.b V1;
V1 = NotificationSettingsActivity.V1(NotificationSettingsActivity.this);
return V1;
}
});
private final l binding = m.a(new Function0() {
@Override
public final Object invoke() {
C0860n N1;
N1 = NotificationSettingsActivity.N1(NotificationSettingsActivity.this);
return N1;
}
});
private final String pageName = "NotificationSettings";
public static final class Companion {
public Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final Intent a(Context context) {
Intrinsics.checkNotNullParameter(context, "context");
return C0995g.a(context, NotificationSettingsActivity.class, new Pair[0]);
}
private Companion() {
}
}
class b extends C0765p implements Function1 {
b(Object obj) {
super(1, obj, NotificationSettingsActivity.class, "renderContent", "renderContent(Lfinance/empower/android/app/notifications/NotificationSettingsPresenter$ViewContract$Content;)V", 0);
}
@Override
public Object invoke(Object obj) {
u((e.a.C0385a) obj);
return Unit.a;
}
public final void u(e.a.C0385a p0) {
Intrinsics.checkNotNullParameter(p0, "p0");
((NotificationSettingsActivity) this.e).Z1(p0);
}
}
class c extends C0765p implements n {
c(Object obj) {
super(3, obj, e.class, "onNotificationSettingChanged", "onNotificationSettingChanged(Lfinance/empower/android/data/model/notifications/NotificationSetting;Lfinance/empower/android/data/model/notifications/NotificationSetting$Option;Lkotlin/jvm/functions/Function2;)V", 0);
}
@Override
public Object e(Object obj, Object obj2, Object obj3) {
u((NotificationSetting) obj, (NotificationSetting.b) obj2, (Function2) obj3);
return Unit.a;
}
public final void u(NotificationSetting p0, NotificationSetting.b p1, Function2 p2) {
Intrinsics.checkNotNullParameter(p0, "p0");
Intrinsics.checkNotNullParameter(p1, "p1");
Intrinsics.checkNotNullParameter(p2, "p2");
((e) this.e).t(p0, p1, p2);
}
}
class d extends C0765p implements Function0 {
d(Object obj) {
super(0, obj, NotificationSettingsActivity.class, "enableDevicePush", "enableDevicePush()V", 0);
}
@Override
public Object invoke() {
u();
return Unit.a;
}
public final void u() {
((NotificationSettingsActivity) this.e).P1();
}
}
public static final C0860n N1(NotificationSettingsActivity notificationSettingsActivity) {
return C0860n.c(notificationSettingsActivity.getLayoutInflater());
}
private final Intent[] O1() {
Uri parse = Uri.parse("package:" + getPackageName());
ArrayList arrayList = new ArrayList();
if (Build.VERSION.SDK_INT >= 26) {
Intent putExtra = new Intent("android.settings.APP_NOTIFICATION_SETTINGS").putExtra("android.provider.extra.APP_PACKAGE", getPackageName());
Intrinsics.checkNotNullExpressionValue(putExtra, "putExtra(...)");
arrayList.add(putExtra);
}
arrayList.add(new Intent("android.settings.APPLICATION_DETAILS_SETTINGS", parse));
arrayList.add(new Intent("android.settings.SETTINGS"));
return (Intent[]) arrayList.toArray(new Intent[0]);
}
public final void P1() {
for (Intent intent : O1()) {
if (intent.resolveActivity(getPackageManager()) != null) {
x.b(B1());
startActivity(intent);
return;
}
}
}
private final C0860n Q1() {
return (C0860n) this.binding.getValue();
}
private final Ie.b R1() {
return (Ie.b) this.loadingBehavior.getValue();
}
private final Ic.m S1() {
return (Ic.m) this.notificationSettingsAdapter.getValue();
}
public static final Ie.b V1(NotificationSettingsActivity notificationSettingsActivity) {
C0860n Q1 = notificationSettingsActivity.Q1();
RecyclerView recyclerNotificationSettings = Q1.g;
Intrinsics.checkNotNullExpressionValue(recyclerNotificationSettings, "recyclerNotificationSettings");
ConstraintLayout fetchLoadingView = Q1.e;
Intrinsics.checkNotNullExpressionValue(fetchLoadingView, "fetchLoadingView");
FetchErrorView fetchErrorView = Q1.d;
Intrinsics.checkNotNullExpressionValue(fetchErrorView, "fetchErrorView");
return new Ie.b(recyclerNotificationSettings, fetchLoadingView, fetchErrorView, Q1.b, Q1.f.d.b, new b(notificationSettingsActivity), new Function0() {
@Override
public final Object invoke() {
Unit W1;
W1 = NotificationSettingsActivity.W1();
return W1;
}
});
}
public static final Unit W1() {
return Unit.a;
}
public static final Ic.m X1(NotificationSettingsActivity notificationSettingsActivity) {
return new Ic.m(notificationSettingsActivity.U1(), new c(notificationSettingsActivity.T1()), new d(notificationSettingsActivity));
}
public final void Z1(e.a.C0385a content) {
S1().K(content.a());
}
@Override
protected String getPageName() {
return this.pageName;
}
public final e T1() {
e eVar = this.presenter;
if (eVar != null) {
return eVar;
}
Intrinsics.x("presenter");
return null;
}
public final Bd.g U1() {
Bd.g gVar = this.pushNotificationManager;
if (gVar != null) {
return gVar;
}
Intrinsics.x("pushNotificationManager");
return null;
}
@Override
public void E(e.a viewState) {
Intrinsics.checkNotNullParameter(viewState, "viewState");
R1().a(viewState);
}
public final void a2(e eVar) {
Intrinsics.checkNotNullParameter(eVar, "<set-?>");
this.presenter = eVar;
}
public final void b2(Bd.g gVar) {
Intrinsics.checkNotNullParameter(gVar, "<set-?>");
this.pushNotificationManager = gVar;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
C0860n Q1 = Q1();
setContentView(Q1.getRoot());
String string = getString(B.J8);
Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
AbstractC1046m.G1(this, string, null, t.v, null, false, null, 58, null);
RecyclerView recyclerView = Q1.g;
recyclerView.setAdapter(S1());
recyclerView.setLayoutManager(new LinearLayoutManager(recyclerView.getContext()));
}
@Override
protected void onStart() {
super.onStart();
T1().w();
}
protected void onStop() {
T1().f();
super.onStop();
}
}