Money Lover v8.14.0.6版本的 MD5 值为:48b9d922212c7ccfd438cdcc183ff396
以下内容为反编译后的 ActivityNotificationCenter.java 源代码,内容仅作参考
package com.zoostudio.moneylover.ui.activity;
import ak.r1;
import ak.w1;
import android.app.AlertDialog;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.res.Resources;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Toast;
import androidx.lifecycle.q;
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import com.bookmark.money.R;
import com.facebook.appevents.integrity.IntegrityManager;
import com.facebook.internal.AnalyticsEvents;
import com.google.android.gms.location.GeofenceStatusCodes;
import com.google.android.material.snackbar.Snackbar;
import com.google.api.FieldBehaviorProto;
import com.google.api.ResourceProto;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.messaging.Constants;
import com.google.gson.Gson;
import com.zoostudio.moneylover.MoneyApplication;
import com.zoostudio.moneylover.adapter.item.PaymentItem;
import com.zoostudio.moneylover.adapter.item.d0;
import com.zoostudio.moneylover.adapter.item.u;
import com.zoostudio.moneylover.billing.ActivityStoreV2;
import com.zoostudio.moneylover.budget.ui.custombudget.CustomBudgetActivity;
import com.zoostudio.moneylover.familyPlan.activities.ActivitySharedWalletAwaiting;
import com.zoostudio.moneylover.globalcate.budget.detail.ui.ActivityDetailBudgetGlobal;
import com.zoostudio.moneylover.help.activity.ActivityChatHelp;
import com.zoostudio.moneylover.help.activity.ActivityCreateNewQuestion;
import com.zoostudio.moneylover.main.MainActivity;
import com.zoostudio.moneylover.main.planing.budgets.detail.DetailBudgetActivity;
import com.zoostudio.moneylover.main.reports.ReportByDateActivity;
import com.zoostudio.moneylover.modules.ail.ui.ActivityAilViewPhoto;
import com.zoostudio.moneylover.notification.billServices.ui.ServiceTransactionListActivity;
import com.zoostudio.moneylover.ui.ActivityAbout;
import com.zoostudio.moneylover.ui.ActivityDetailTransaction;
import com.zoostudio.moneylover.ui.ActivityEditWallet;
import com.zoostudio.moneylover.ui.ActivityEnterCode;
import com.zoostudio.moneylover.ui.ActivityExchangeCredits;
import com.zoostudio.moneylover.ui.ActivityIconPackDetail;
import com.zoostudio.moneylover.ui.ActivityListTransactionChanged;
import com.zoostudio.moneylover.ui.ActivityPreferences;
import com.zoostudio.moneylover.ui.ActivityReadMoreNotification;
import com.zoostudio.moneylover.ui.ActivityShareTransaction;
import com.zoostudio.moneylover.ui.activity.ActivityNotificationCenter;
import com.zoostudio.moneylover.ui.editTransaction.ActivityEditTransaction;
import com.zoostudio.moneylover.ui.fragment.ActivityDetailEvent;
import com.zoostudio.moneylover.ui.view.ActivityDonorsInfo;
import com.zoostudio.moneylover.utils.a1;
import com.zoostudio.moneylover.utils.b1;
import com.zoostudio.moneylover.utils.d1;
import com.zoostudio.moneylover.utils.y;
import h3.d2;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.ListIterator;
import kn.v;
import kotlin.jvm.internal.r;
import kotlin.jvm.internal.t;
import o7.z;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import rq.m0;
import t9.f2;
import t9.g1;
import t9.m1;
import t9.n1;
import t9.q3;
import t9.r3;
import t9.t0;
import t9.y1;
import t9.z4;
import wj.k0;
import wj.l;
import wj.l0;
public final class ActivityNotificationCenter extends r1 {
private static boolean f13874df;
public static final a f13875id = new a(null);
private static boolean f13876me;
private static boolean f13877th;
private final j A1 = new j();
private Integer C1 = 0;
private boolean C2 = true;
private d2 K0;
private MenuItem K1;
private boolean K2;
private boolean K3;
private ArrayList<u> V1;
private boolean V2;
private z f13878k0;
private long f13879k1;
public static final class a {
private a() {
}
public a(kotlin.jvm.internal.j jVar) {
this();
}
public final boolean a() {
return ActivityNotificationCenter.f13874df;
}
public final boolean b() {
return ActivityNotificationCenter.f13876me;
}
public final void c(boolean z10) {
ActivityNotificationCenter.f13874df = z10;
}
public final void d(boolean z10) {
ActivityNotificationCenter.f13876me = z10;
}
}
public static final class b implements l.d {
final PaymentItem f13881b;
b(PaymentItem paymentItem) {
this.f13881b = paymentItem;
}
@Override
public void a(Exception exc) {
ActivityNotificationCenter.this.n3(this.f13881b);
}
@Override
public void b(String str) {
ArrayList<PaymentItem> b10 = a1.b(ActivityNotificationCenter.this, new JSONArray(str));
r.e(b10);
PaymentItem paymentItem = this.f13881b;
ActivityNotificationCenter activityNotificationCenter = ActivityNotificationCenter.this;
for (PaymentItem paymentItem2 : b10) {
if (r.c(paymentItem2.getProductId(), paymentItem.getProductId())) {
paymentItem2.setFree(true);
r.e(paymentItem2);
activityNotificationCenter.n3(paymentItem2);
return;
}
}
ActivityNotificationCenter.this.n3(this.f13881b);
}
}
public static final class c extends t implements wn.l<Integer, v> {
final int f13883b;
c(int i10) {
super(1);
this.f13883b = i10;
}
public final void a(int i10) {
if (i10 > 0) {
ActivityNotificationCenter.this.S1(this.f13883b);
}
}
@Override
public v invoke(Integer num) {
a(num.intValue());
return v.f26314a;
}
}
public static final class d extends RecyclerView.u {
d() {
}
@Override
public void onScrolled(RecyclerView recyclerView, int i10, int i11) {
int i12;
r.h(recyclerView, "recyclerView");
super.onScrolled(recyclerView, i10, i11);
LinearLayoutManager linearLayoutManager = (LinearLayoutManager) recyclerView.getLayoutManager();
if (linearLayoutManager != null) {
i12 = linearLayoutManager.findLastVisibleItemPosition();
} else {
i12 = 0;
}
ArrayList arrayList = ActivityNotificationCenter.this.V1;
r.e(arrayList);
if (i12 < arrayList.size() && i12 >= 0) {
ArrayList arrayList2 = ActivityNotificationCenter.this.V1;
r.e(arrayList2);
int type = ((u) arrayList2.get(i12)).getType();
if (type != 8) {
if (type != 16) {
if (type != 43) {
if (type == 44 && !ActivityNotificationCenter.this.K2) {
qe.a.l(ActivityNotificationCenter.this, "v_go_premium_cta", Constants.MessagePayloadKeys.FROM, "Noti_center_renew_success");
ActivityNotificationCenter.this.K2 = true;
return;
}
return;
}
if (!ActivityNotificationCenter.this.V2) {
qe.a.l(ActivityNotificationCenter.this, "v_go_premium_cta", Constants.MessagePayloadKeys.FROM, "Noti_center_sub_success");
ActivityNotificationCenter.this.V2 = true;
return;
}
return;
}
if (!ActivityNotificationCenter.this.K2) {
qe.a.l(ActivityNotificationCenter.this, "v_go_premium_cta", Constants.MessagePayloadKeys.FROM, "Noti_center_renew_success");
ActivityNotificationCenter.this.K2 = true;
return;
}
return;
}
if (!ActivityNotificationCenter.this.K3) {
qe.a.l(ActivityNotificationCenter.this, "v_go_premium_cta", Constants.MessagePayloadKeys.FROM, "Noti_center_upgrade_success");
ActivityNotificationCenter.this.K3 = true;
}
}
}
}
@kotlin.coroutines.jvm.internal.f(c = "com.zoostudio.moneylover.ui.activity.ActivityNotificationCenter$getWalletFromUUID$1", f = "ActivityNotificationCenter.kt", l = {538}, m = "invokeSuspend")
public static final class e extends kotlin.coroutines.jvm.internal.l implements wn.p<m0, on.d<? super v>, Object> {
int f13885a;
final String f13887c;
final wn.l<com.zoostudio.moneylover.adapter.item.a, v> f13888d;
e(String str, wn.l<? super com.zoostudio.moneylover.adapter.item.a, v> lVar, on.d<? super e> dVar) {
super(2, dVar);
this.f13887c = str;
this.f13888d = lVar;
}
@Override
public final on.d<v> create(Object obj, on.d<?> dVar) {
return new e(this.f13887c, this.f13888d, dVar);
}
@Override
public final Object invoke(m0 m0Var, on.d<? super v> dVar) {
return ((e) create(m0Var, dVar)).invokeSuspend(v.f26314a);
}
@Override
public final Object invokeSuspend(Object obj) {
Object c10;
c10 = pn.d.c();
int i10 = this.f13885a;
if (i10 != 0) {
if (i10 == 1) {
kn.o.b(obj);
} else {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
} else {
kn.o.b(obj);
n1 n1Var = new n1(ActivityNotificationCenter.this, this.f13887c);
this.f13885a = 1;
obj = n1Var.f(this);
if (obj == c10) {
return c10;
}
}
com.zoostudio.moneylover.adapter.item.a aVar = (com.zoostudio.moneylover.adapter.item.a) obj;
if (aVar != null) {
this.f13888d.invoke(aVar);
}
return v.f26314a;
}
}
static final class f extends t implements wn.l<Object, v> {
f() {
super(1);
}
public final void a(Object it) {
r.h(it, "it");
ActivityNotificationCenter activityNotificationCenter = ActivityNotificationCenter.this;
z zVar = activityNotificationCenter.f13878k0;
if (zVar == null) {
r.z("mAdapter");
zVar = null;
}
activityNotificationCenter.R1(zVar.getItemCount());
}
@Override
public v invoke(Object obj) {
a(obj);
return v.f26314a;
}
}
static final class g extends t implements wn.l<u, v> {
g() {
super(1);
}
public final void a(u it) {
r.h(it, "it");
ActivityNotificationCenter.this.n2(it);
}
@Override
public v invoke(u uVar) {
a(uVar);
return v.f26314a;
}
}
static final class h extends t implements wn.l<u, v> {
h() {
super(1);
}
public final void a(u it) {
r.h(it, "it");
ActivityNotificationCenter.this.r2(it);
}
@Override
public v invoke(u uVar) {
a(uVar);
return v.f26314a;
}
}
static final class i extends t implements wn.l<u, v> {
i() {
super(1);
}
public final void a(u it) {
r.h(it, "it");
ActivityNotificationCenter.this.p2(it);
}
@Override
public v invoke(u uVar) {
a(uVar);
return v.f26314a;
}
}
public static final class j extends BroadcastReceiver {
j() {
}
@Override
public void onReceive(Context context, Intent intent) {
r.h(context, "context");
r.h(intent, "intent");
z zVar = ActivityNotificationCenter.this.f13878k0;
if (zVar == null) {
r.z("mAdapter");
zVar = null;
}
zVar.l();
ActivityNotificationCenter.this.R1(0);
}
}
public static final class k implements o9.k<Integer> {
k() {
}
@Override
public void a(l0<Integer> task) {
r.h(task, "task");
}
@Override
public void b(l0<Integer> l0Var, Integer num) {
c(l0Var, num.intValue());
}
public void c(l0<Integer> task, int i10) {
r.h(task, "task");
ActivityNotificationCenter.this.P1();
z zVar = ActivityNotificationCenter.this.f13878k0;
if (zVar == null) {
r.z("mAdapter");
zVar = null;
}
zVar.l();
ActivityNotificationCenter.this.R1(0);
View findViewById = ActivityNotificationCenter.this.findViewById(R.id.root);
Resources resources = ActivityNotificationCenter.this.getResources();
Integer num = ActivityNotificationCenter.this.C1;
r.e(num);
Snackbar.make(findViewById, resources.getQuantityString(R.plurals.noti_have_been_marked_as_read, num.intValue(), ActivityNotificationCenter.this.C1), 0).show();
MenuItem menuItem = ActivityNotificationCenter.this.K1;
r.e(menuItem);
menuItem.setVisible(false);
if (i10 > 0) {
qj.c.v(ActivityNotificationCenter.this.getApplicationContext());
}
}
}
@kotlin.coroutines.jvm.internal.f(c = "com.zoostudio.moneylover.ui.activity.ActivityNotificationCenter$openEditWallet$1", f = "ActivityNotificationCenter.kt", l = {553}, m = "invokeSuspend")
public static final class l extends kotlin.coroutines.jvm.internal.l implements wn.p<m0, on.d<? super v>, Object> {
int f13895a;
final u f13897c;
l(u uVar, on.d<? super l> dVar) {
super(2, dVar);
this.f13897c = uVar;
}
@Override
public final on.d<v> create(Object obj, on.d<?> dVar) {
return new l(this.f13897c, dVar);
}
@Override
public final Object invoke(m0 m0Var, on.d<? super v> dVar) {
return ((l) create(m0Var, dVar)).invokeSuspend(v.f26314a);
}
@Override
public final Object invokeSuspend(Object obj) {
Object c10;
c10 = pn.d.c();
int i10 = this.f13895a;
if (i10 != 0) {
if (i10 == 1) {
kn.o.b(obj);
} else {
throw new IllegalStateException("call to 'resume' before 'invoke' with coroutine");
}
} else {
kn.o.b(obj);
ActivityNotificationCenter activityNotificationCenter = ActivityNotificationCenter.this;
String string = this.f13897c.getContent().getString(df.a.f16141u);
r.g(string, "getString(...)");
n1 n1Var = new n1(activityNotificationCenter, string);
this.f13895a = 1;
obj = n1Var.f(this);
if (obj == c10) {
return c10;
}
}
com.zoostudio.moneylover.adapter.item.a aVar = (com.zoostudio.moneylover.adapter.item.a) obj;
if (aVar != null) {
ActivityNotificationCenter activityNotificationCenter2 = ActivityNotificationCenter.this;
Intent intent = new Intent(activityNotificationCenter2, (Class<?>) ActivityEditWallet.class);
intent.putExtra("com.zoostudio.moneylover.ui.AddAccountActivity.ACCOUNT", aVar);
activityNotificationCenter2.startActivity(intent);
}
return v.f26314a;
}
}
public static final class m extends t implements wn.l<com.zoostudio.moneylover.adapter.item.a, v> {
final d0 f13898a;
final ActivityNotificationCenter f13899b;
m(d0 d0Var, ActivityNotificationCenter activityNotificationCenter) {
super(1);
this.f13898a = d0Var;
this.f13899b = activityNotificationCenter;
}
public final void a(com.zoostudio.moneylover.adapter.item.a aVar) {
this.f13898a.setAccount(aVar);
this.f13899b.b2(this.f13898a);
}
@Override
public v invoke(com.zoostudio.moneylover.adapter.item.a aVar) {
a(aVar);
return v.f26314a;
}
}
public static final class n extends hl.a {
n() {
}
@Override
public void a() {
qj.c.J(ActivityNotificationCenter.this.getApplicationContext());
z zVar = ActivityNotificationCenter.this.f13878k0;
if (zVar == null) {
r.z("mAdapter");
zVar = null;
}
zVar.l();
ActivityNotificationCenter.this.R1(0);
}
}
public static final class o extends t implements wn.l<mc.b, v> {
o() {
super(1);
}
public final void a(mc.b data) {
r.h(data, "data");
ActivityNotificationCenter.this.startActivity(ActivityDetailBudgetGlobal.Z.a(ActivityNotificationCenter.this, data));
}
@Override
public v invoke(mc.b bVar) {
a(bVar);
return v.f26314a;
}
}
public static final class p implements o9.k<Long> {
p() {
}
@Override
public void a(l0<Long> l0Var) {
}
@Override
public void b(l0<Long> l0Var, Long l10) {
zi.f.i().u0(true);
if (!zi.f.i().T()) {
qj.c.C(ActivityNotificationCenter.this);
}
}
}
private final void A2(u uVar) {
JSONObject content = uVar.getContent();
Intent intent = new Intent(getApplicationContext(), (Class<?>) ActivityListTransactionChanged.class);
intent.putExtra(ActivityListTransactionChanged.C1.a(), b1.e(content.optString("data")));
startActivity(intent);
}
private final void B2(boolean z10) {
Intent a10;
if (z10) {
a10 = u7.z.b(getApplicationContext());
r.g(a10, "getIntentSignInToRefreshToken(...)");
} else if (MoneyApplication.H == 1) {
Toast.makeText(this, getString(R.string.notification_center_message_already_logged_in), 0).show();
return;
} else {
a10 = u7.z.a(getApplicationContext(), null);
r.g(a10, "getIntentSignIn(...)");
}
startActivity(a10);
}
private final void C2(int i10) {
y1 y1Var = new y1(this, i10, zi.f.a().e2());
y1Var.d(new n7.f() {
@Override
public final void onDone(Object obj) {
ActivityNotificationCenter.D2(ActivityNotificationCenter.this, (com.zoostudio.moneylover.adapter.item.i) obj);
}
});
y1Var.b();
}
public static final void D2(ActivityNotificationCenter this$0, com.zoostudio.moneylover.adapter.item.i iVar) {
r.h(this$0, "this$0");
if (iVar != null && iVar.getLeftAmount() <= 0.0d) {
this$0.j3();
}
}
private final void E2() {
startActivity(new Intent(this, (Class<?>) ActivityScanReceipt.class));
finish();
}
private final void F2() {
startActivity(new Intent(this, (Class<?>) ActivityPreferences.class));
}
private final void G2() {
Intent intent = new Intent(this, (Class<?>) ActivityPreferences.class);
intent.putExtra("type", 1034);
startActivity(intent);
}
private final void H2(u uVar) throws JSONException {
Intent intent = new Intent(this, (Class<?>) ActivityShareTransaction.class);
intent.putExtra("link", uVar.getContent().getString("link"));
intent.putExtra("uuid", uVar.getContent().getString("uuid"));
startActivity(intent);
}
private final void I2() {
startActivity(new Intent(this, (Class<?>) ActivityStoreV2.class));
}
private final void J2() {
f13874df = true;
f13877th = true;
y.A("ActivityNotificationCenter");
startActivity(ActivityStoreV2.C1(this, 5));
}
private final void K2() {
startActivity(ActivityPremiumStore.Ak.b(this, 1));
}
private final void L2(u uVar) {
if (uVar.getContent().getBoolean(AnalyticsEvents.PARAMETER_SHARE_DIALOG_CONTENT_STATUS)) {
String string = uVar.getContent().getString("tr");
r.g(string, "getString(...)");
a2(string);
finish();
return;
}
JSONObject jSONObject = uVar.getContent().getJSONObject("data");
d0 d0Var = new d0();
if (jSONObject.has(u.CONTENT_KEY_AMOUNT)) {
d0Var.setAmount(jSONObject.getDouble(u.CONTENT_KEY_AMOUNT));
}
if (jSONObject.has(IntegrityManager.INTEGRITY_TYPE_ADDRESS)) {
d0Var.setAddress(jSONObject.getString(IntegrityManager.INTEGRITY_TYPE_ADDRESS));
}
if (jSONObject.has("longtitude")) {
d0Var.setLongitude(jSONObject.getDouble("longtitude"));
}
if (jSONObject.has(com.zoostudio.moneylover.adapter.item.t.LATITUDE)) {
d0Var.setLatitude(jSONObject.getDouble(com.zoostudio.moneylover.adapter.item.t.LATITUDE));
}
if (jSONObject.has(u.CONTENT_KEY_NOTE)) {
d0Var.setNote(jSONObject.getString(u.CONTENT_KEY_NOTE));
}
if (jSONObject.has("images")) {
d0Var.setImage(MoneyApplication.f11023j.s() + jSONObject.getJSONArray("images").getString(0));
}
if (jSONObject.has("account")) {
String string2 = jSONObject.getString("account");
r.e(string2);
U1(string2, new m(d0Var, this));
return;
}
b2(d0Var);
}
private final void M2() {
startActivity(new Intent(this, (Class<?>) ActivitySharedWalletAwaiting.class));
}
private final void N1(u uVar) {
startActivity(new Intent("android.intent.action.VIEW", Uri.parse("https://play.google.com/store/account/subscriptions?sku=" + uVar.getContent().getString("pid") + "&package=com.bookmark.money")));
}
private final void N2() {
y.b(com.zoostudio.moneylover.utils.v.NPS_FB_ALERT_RETRY);
Intent intent = new Intent(this, (Class<?>) ActivityCreateNewQuestion.class);
intent.putExtra("EXTRA_SHOW_NOTIFICATION_SUCCESS", true);
startActivity(intent);
finish();
}
private final void O1(u uVar) {
W1(uVar);
}
private final void O2(u uVar) {
String optString = uVar.getContent().optString("data");
r.g(optString, "optString(...)");
b3(optString, new n());
}
public final void P1() {
zi.f.f().t();
}
private final void P2(u uVar) {
JSONObject content = uVar.getContent();
Intent intent = new Intent(this, (Class<?>) ActivityDonorsInfo.class);
intent.putExtra("link_image", content.getString("link"));
intent.putExtra("content_text", content.getString("m"));
startActivity(intent);
}
private final void Q1(u uVar) {
wj.l.e(this, new b(new PaymentItem(PaymentItem.TYPE_INAPP, uVar.getContent().getString("iid"))));
}
private final void Q2(u uVar) throws JSONException {
y.O("ActivityNotificationCenter");
Intent intent = new Intent(this, (Class<?>) ActivityScanReceipt.class);
intent.putExtra("ActivityScanReceipt.uuid", uVar.getContent().getString(u.KEY_RECEIPT_NAME));
intent.putExtra("ActivityScanReceipt.path", uVar.getContent().getString(u.KEY_RECEIPT_PATH));
startActivity(intent);
}
public final void R1(int i10) {
S1(i10);
new aa.d(this).f(new c(i10));
}
private final void R2(final u uVar) {
m1 m1Var = new m1(this, uVar.getAccountID());
m1Var.d(new n7.f() {
@Override
public final void onDone(Object obj) {
ActivityNotificationCenter.S2(ActivityNotificationCenter.this, uVar, (com.zoostudio.moneylover.adapter.item.a) obj);
}
});
m1Var.b();
}
public final void S1(final int i10) {
q3 q3Var = new q3(this, this.f13879k1, 20, i10);
q3Var.d(new n7.f() {
@Override
public final void onDone(Object obj) {
ActivityNotificationCenter.T1(ActivityNotificationCenter.this, i10, (ArrayList) obj);
}
});
q3Var.b();
}
public static final void S2(ActivityNotificationCenter this$0, u notificationItem, com.zoostudio.moneylover.adapter.item.a aVar) {
r.h(this$0, "this$0");
r.h(notificationItem, "$notificationItem");
Intent intent = new Intent(this$0.getApplicationContext(), (Class<?>) ActivityEditTransaction.class);
d0 d0Var = new d0();
d0Var.setDate(new com.zoostudio.moneylover.adapter.item.n(new Date(notificationItem.getCreatedTimestamp())));
d0Var.setAccount(aVar);
intent.putExtra("TRANSACTION_ITEMS", d0Var);
this$0.startActivity(intent);
this$0.onBackPressed();
}
public static final void T1(ActivityNotificationCenter this$0, int i10, ArrayList arrayList) {
int i11;
r.h(this$0, "this$0");
if (arrayList != null) {
this$0.t2(arrayList, i10);
if (this$0.C2) {
this$0.V1 = arrayList;
this$0.C2 = false;
} else {
ArrayList<u> arrayList2 = this$0.V1;
r.e(arrayList2);
arrayList2.addAll(arrayList);
}
d2 d2Var = this$0.K0;
d2 d2Var2 = null;
if (d2Var == null) {
r.z("binding");
d2Var = null;
}
LinearLayoutManager linearLayoutManager = (LinearLayoutManager) d2Var.f19737c.getLayoutManager();
if (linearLayoutManager != null) {
i11 = linearLayoutManager.findLastVisibleItemPosition();
} else {
i11 = 0;
}
for (int i12 = 0; i12 < i11; i12++) {
ArrayList<u> arrayList3 = this$0.V1;
r.e(arrayList3);
arrayList3.get(i12).getType();
ArrayList<u> arrayList4 = this$0.V1;
r.e(arrayList4);
int type = arrayList4.get(i12).getType();
if (type != 8) {
if (type != 16) {
if (type != 43) {
if (type == 44 && !this$0.K2) {
qe.a.l(this$0, "v_go_premium_cta", Constants.MessagePayloadKeys.FROM, "Noti_center_renew_success");
this$0.K2 = true;
}
} else if (!this$0.V2) {
qe.a.l(this$0, "v_go_premium_cta", Constants.MessagePayloadKeys.FROM, "Noti_center_sub_success");
this$0.V2 = true;
}
} else if (!this$0.K2) {
qe.a.l(this$0, "v_go_premium_cta", Constants.MessagePayloadKeys.FROM, "Noti_center_renew_success");
this$0.K2 = true;
}
} else if (!this$0.K3) {
qe.a.l(this$0, "v_go_premium_cta", Constants.MessagePayloadKeys.FROM, "Noti_center_upgrade_success");
this$0.K3 = true;
}
}
d2 d2Var3 = this$0.K0;
if (d2Var3 == null) {
r.z("binding");
} else {
d2Var2 = d2Var3;
}
d2Var2.f19737c.addOnScrollListener(new d());
}
}
private final void T2(u uVar) {
long optLong = uVar.getContent().optLong("data");
long id2 = uVar.getId();
Intent intent = new Intent(this, (Class<?>) ActivityDetailTransaction.class);
intent.putExtra("ActivityDetailTransaction.TRANSACTION_ID", optLong);
intent.putExtra("ActivityDetailTransaction.DELETE_NOTI", id2);
startActivity(intent);
}
private final void U1(String str, wn.l<? super com.zoostudio.moneylover.adapter.item.a, v> lVar) {
rq.k.d(q.a(this), null, null, new e(str, lVar, null), 3, null);
}
private final void U2(int i10) {
y1 y1Var = new y1(this, i10, zi.f.a().e2());
y1Var.d(new n7.f() {
@Override
public final void onDone(Object obj) {
ActivityNotificationCenter.V2(ActivityNotificationCenter.this, (com.zoostudio.moneylover.adapter.item.i) obj);
}
});
y1Var.b();
}
private final void V1(u uVar) {
Intent intent = new Intent(this, (Class<?>) ActivityFinsifyReconnect.class);
String string = uVar.getContent().getString("lid");
r.g(string, "getString(...)");
intent.putExtra("extra_login_id", Long.parseLong(string));
startActivity(intent);
}
public static final void V2(ActivityNotificationCenter this$0, com.zoostudio.moneylover.adapter.item.i iVar) {
r.h(this$0, "this$0");
if (iVar != null) {
this$0.startActivity(DetailBudgetActivity.f12735j.a(this$0, iVar));
this$0.onBackPressed();
}
}
private final void W1(final u uVar) {
f2 f2Var = new f2(this, uVar.getContent().optLong(u.CONTENT_KEY_ITEM_ID));
f2Var.d(new n7.f() {
@Override
public final void onDone(Object obj) {
ActivityNotificationCenter.X1(com.zoostudio.moneylover.adapter.item.u.this, this, (com.zoostudio.moneylover.adapter.item.k) obj);
}
});
f2Var.b();
}
private final void W2(int i10) {
y1 y1Var = new y1(this, i10, zi.f.a().e2());
y1Var.d(new n7.f() {
@Override
public final void onDone(Object obj) {
ActivityNotificationCenter.X2(ActivityNotificationCenter.this, (com.zoostudio.moneylover.adapter.item.i) obj);
}
});
y1Var.b();
}
public static final void X1(u itemNoti, ActivityNotificationCenter this$0, com.zoostudio.moneylover.adapter.item.k kVar) {
Intent intent;
r.h(itemNoti, "$itemNoti");
r.h(this$0, "this$0");
if (kVar == null) {
if (itemNoti.getType() == 1065) {
if (zg.a.a(this$0)) {
intent = new Intent(this$0, (Class<?>) CustomBudgetActivity.class);
} else {
intent = ActivityEditBudget.f13773uk.a(this$0, null, "", com.zoostudio.moneylover.utils.v.NOTI_BALANCE_CREATE_BUDGET_SUCCESS.toString());
}
} else {
intent = new Intent(this$0, (Class<?>) ActivityEditBudget.class);
}
} else {
com.zoostudio.moneylover.adapter.item.h hVar = new com.zoostudio.moneylover.adapter.item.h();
hVar.setCategory(kVar);
hVar.setAccount(kVar.getAccountItem());
Date date = new Date();
hVar.setStartDate(d1.T(date));
hVar.setEndDate(d1.A0(date));
if (itemNoti.getType() == 1065) {
if (zg.a.a(this$0)) {
intent = new Intent(this$0, (Class<?>) CustomBudgetActivity.class);
intent.putExtra("EDIT_BUDGET_ITEM", hVar);
} else {
intent = ActivityEditBudget.f13773uk.a(this$0, null, "", com.zoostudio.moneylover.utils.v.NOTI_BALANCE_CREATE_BUDGET_SUCCESS.toString());
intent.putExtra("EDIT_BUDGET_ITEM", hVar);
}
} else {
intent = new Intent(this$0, (Class<?>) ActivityEditBudget.class);
this$0.getIntent().putExtra("EDIT_BUDGET_ITEM", hVar);
}
}
this$0.startActivity(intent);
}
public static final void X2(ActivityNotificationCenter this$0, com.zoostudio.moneylover.adapter.item.i iVar) {
r.h(this$0, "this$0");
if (iVar != null) {
Intent intent = new Intent(this$0.getApplicationContext(), (Class<?>) ActivityEditBudget.class);
iVar.setBudgetID(0);
intent.putExtra("EDIT_BUDGET_ITEM", iVar);
this$0.startActivity(intent);
}
}
private final void Y1(u uVar) {
List j10;
boolean z10;
JSONObject content = uVar.getContent();
d0 d0Var = new d0();
d0Var.setAmount(content.optDouble(u.CONTENT_KEY_AMOUNT));
d0Var.setDate(new Date(content.optLong(u.CONTENT_KEY_DISPLAY_DATE)));
com.zoostudio.moneylover.adapter.item.k kVar = new com.zoostudio.moneylover.adapter.item.k();
kVar.setType(1);
d0Var.setCategory(kVar);
com.zoostudio.moneylover.adapter.item.t tVar = new com.zoostudio.moneylover.adapter.item.t();
String optString = content.optString("location");
r.g(optString, "optString(...)");
List<String> d10 = new pq.j(";").d(optString, 0);
if (!d10.isEmpty()) {
ListIterator<String> listIterator = d10.listIterator(d10.size());
while (listIterator.hasPrevious()) {
if (listIterator.previous().length() == 0) {
z10 = true;
} else {
z10 = false;
}
if (!z10) {
j10 = ln.z.L0(d10, listIterator.nextIndex() + 1);
break;
}
}
}
j10 = ln.r.j();
String[] strArr = (String[]) j10.toArray(new String[0]);
tVar.setLongitude(Double.parseDouble(strArr[0]));
tVar.setLatitude(Double.parseDouble(strArr[1]));
tVar.setAddress(strArr[2]);
d0Var.setLocation(tVar);
Intent j02 = ji.h.j0(this, d0Var);
r.g(j02, "getIntentAddTran(...)");
startActivity(j02);
}
private final void Y2(long j10) {
sa.d dVar = new sa.d(new WeakReference(this), j10, zi.f.a().e2());
dVar.e(new o());
dVar.h();
}
private final void Z1(com.zoostudio.moneylover.adapter.item.j jVar) {
Intent intent = new Intent(this, (Class<?>) ActivityDetailEvent.class);
intent.putExtra("ActivityDetailEvent.event_item", jVar);
startActivity(intent);
}
private final void Z2(long j10) throws Exception {
Intent intent = new Intent(getApplicationContext(), (Class<?>) ActivityDetailTransaction.class);
intent.putExtra("ActivityDetailTransaction.TRANSACTION_ID", j10);
startActivity(intent);
}
private final void a2(String str) {
Intent intent = new Intent(this, (Class<?>) ActivityDetailTransaction.class);
intent.putExtra("ActivityDetailTransaction.TRANSACTION_UUID", str);
startActivity(intent);
}
private final void a3() {
startActivity(new Intent(this, (Class<?>) ActivityExchangeCredits.class));
}
public final void b2(d0 d0Var) {
Intent intent = new Intent(this, (Class<?>) ActivityEditTransaction.class);
intent.putExtra("TRANSACTION_ITEMS", d0Var);
intent.putExtra("ActivityEditTransaction.SINGLE_TYPE_MODE", true);
startActivity(intent);
finish();
}
private final void b3(String str, hl.a aVar) {
hl.b.d().i(this, aVar, false, str);
}
private final void c2(u uVar) throws JSONException {
String str;
y.I();
JSONObject content = uVar.getContent();
if (content.has("campaign")) {
content.getString("campaign");
}
if (!content.has(u.SERVER_ID)) {
str = "";
} else {
str = content.getString(u.SERVER_ID);
r.g(str, "getString(...)");
}
startActivity(ActivityRedirectionNotification.f(this, "", str, "market://details?id=" + content.getString(u.CONTENT_KEY_LINK)));
}
private final void c3() {
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setMessage(R.string.wallet_type_not_supported);
builder.setPositiveButton(R.string.update_title, new DialogInterface.OnClickListener() {
@Override
public final void onClick(DialogInterface dialogInterface, int i10) {
ActivityNotificationCenter.d3(ActivityNotificationCenter.this, dialogInterface, i10);
}
});
builder.setNegativeButton(R.string.cancel, (DialogInterface.OnClickListener) null);
builder.show();
}
private final void d2(u uVar) {
Intent intent = new Intent(this, (Class<?>) ActivityReadMoreNotification.class);
intent.putExtra("ActivityReadMoreNotification.KEY_NOTIFICATION_TYPE", 1046);
intent.putExtra("FragmentAlertTransaction.KEY_TRANSACTION_ID", uVar.getTransactionId());
intent.putExtra("FragmentAlertTransaction.KEY_PHONE_NUMBER", uVar.getPhoneNumber());
startActivity(intent);
onBackPressed();
}
public static final void d3(ActivityNotificationCenter this$0, DialogInterface dialogInterface, int i10) {
r.h(this$0, "this$0");
this$0.startActivity(new Intent("android.intent.action.VIEW", Uri.parse("market://details?id=com.bookmark.money")));
}
private final void e2() {
startActivity(ActivityStoreV2.C1(this, 2));
}
private final void e3() {
d2 d2Var = this.K0;
if (d2Var == null) {
r.z("binding");
d2Var = null;
}
d2Var.f19736b.setVisibility(0);
}
private final void f2(u uVar) throws JSONException {
String str;
JSONObject content = uVar.getContent();
if (content.has("ca")) {
content.getString("ca");
}
if (!content.has(u.SERVER_ID)) {
str = "";
} else {
str = content.getString(u.SERVER_ID);
r.g(str, "getString(...)");
}
startActivity(ActivityRedirectionNotification.f(this, "", str, content.getString("l")));
}
private final void f3(u uVar) {
JSONObject content = uVar.getContent();
Intent intent = new Intent(this, (Class<?>) ActivityChatHelp.class);
intent.putExtra("ID_ISSUE_SEND", content.getString("iid"));
intent.putExtra("MESSAGE_HELP_SEND", content.getString("m"));
startActivity(intent);
}
private final void g2() {
d2 d2Var = this.K0;
d2 d2Var2 = null;
if (d2Var == null) {
r.z("binding");
d2Var = null;
}
if (d2Var.f19736b != null) {
d2 d2Var3 = this.K0;
if (d2Var3 == null) {
r.z("binding");
d2Var3 = null;
}
if (d2Var3.f19736b.getVisibility() == 0) {
d2 d2Var4 = this.K0;
if (d2Var4 == null) {
r.z("binding");
} else {
d2Var2 = d2Var4;
}
d2Var2.f19736b.setVisibility(8);
}
}
}
private final void g3(u uVar) {
y.b(com.zoostudio.moneylover.utils.v.NOTI_BILL_CLICK);
switch (uVar.getContent().getInt(u.KEY_NOTIFICATION_ID)) {
case 2020110501:
startActivity(ServiceTransactionListActivity.K1.a(this, "netflix.com"));
return;
case 2020110502:
startActivity(ServiceTransactionListActivity.K1.a(this, "Spotify Stockholm"));
return;
default:
return;
}
}
public static final void h2(ActivityNotificationCenter this$0, View view) {
r.h(this$0, "this$0");
this$0.onBackPressed();
}
private final void h3(int i10, int i11) {
String string = getString(R.string.total);
r.g(string, "getString(...)");
i3(null, i10, i11, string);
}
private final void i2() {
r3 r3Var = new r3(this);
r3Var.d(new n7.f() {
@Override
public final void onDone(Object obj) {
ActivityNotificationCenter.j2(ActivityNotificationCenter.this, (Integer) obj);
}
});
r3Var.b();
}
private final void i3(com.zoostudio.moneylover.adapter.item.a aVar, int i10, int i11, String str) {
long j10;
Calendar calendar = Calendar.getInstance();
calendar.set(5, d1.R());
calendar.set(2, i10);
calendar.set(1, i11);
Calendar u10 = rt.c.u(calendar);
Calendar calendar2 = Calendar.getInstance();
calendar2.setTime(u10.getTime());
calendar2.add(2, 1);
calendar2.add(5, -1);
if (aVar != null) {
j10 = aVar.getId();
} else {
j10 = 0;
}
startActivity(ReportByDateActivity.f12769j.a(this, j10, u10.getTimeInMillis(), calendar2.getTimeInMillis(), 2, str));
onBackPressed();
}
public static final void j2(ActivityNotificationCenter this$0, Integer num) {
boolean z10;
r.h(this$0, "this$0");
this$0.C1 = num;
MenuItem menuItem = this$0.K1;
r.e(menuItem);
if (num == null || num.intValue() != 0) {
z10 = true;
} else {
z10 = false;
}
menuItem.setVisible(z10);
}
private final void j3() {
Intent intent = new Intent(this, (Class<?>) MainActivity.class);
intent.putExtra("KEY_SHOW_MAIN_TAB_ID", R.id.tabPlanning);
intent.putExtra("KEY_SHOW_SCREEN_ON_SUB_TAB", qg.a.f31856a);
startActivity(intent);
finish();
}
private final u k2() throws JSONException {
u uVar = new u(1061);
JSONObject jSONObject = new JSONObject();
jSONObject.put(u.CONTENT_KEY_POSITIVE, getString(R.string.grant_permission));
jSONObject.put(u.CONTENT_KEY_NEGATIVE, getString(R.string.f40328no));
jSONObject.put("m", getString(R.string.mess_request_storage_permission, getString(R.string.app_name)));
jSONObject.put("data", "android.permission.WRITE_EXTERNAL_STORAGE");
uVar.setContent(jSONObject);
return uVar;
}
private final void k3() {
Intent intent = new Intent(this, (Class<?>) MainActivity.class);
intent.putExtra("KEY_SHOW_MAIN_TAB_ID", R.id.tabPlanning);
intent.putExtra("KEY_SHOW_SCREEN_ON_SUB_TAB", qg.a.f31859d);
startActivity(intent);
finish();
}
private final void l2() {
new z4(this).c();
}
private final void l3() {
startActivity(new Intent(this, (Class<?>) ActivityAilViewPhoto.class));
onBackPressed();
}
private final void m2() {
k0 k0Var = new k0(this);
k0Var.g(new k());
k0Var.c();
}
private final void m3() {
f13876me = true;
Intent s10 = MainActivity.a.s(MainActivity.Gk, this, R.id.tabHome, null, 4, null);
com.zoostudio.moneylover.utils.m0.N(0L);
startActivity(s10);
}
public final void n2(final u uVar) {
p3(uVar);
com.zoostudio.moneylover.adapter.item.a accountItem = uVar.getAccountItem();
if (accountItem != null && !com.zoostudio.moneylover.utils.m0.k(accountItem)) {
c3();
return;
}
z zVar = this.f13878k0;
if (zVar == null) {
r.z("mAdapter");
zVar = null;
}
zVar.notifyDataSetChanged();
this.Z.postDelayed(new Runnable() {
@Override
public final void run() {
ActivityNotificationCenter.o2(ActivityNotificationCenter.this, uVar);
}
}, 250L);
}
public final void n3(PaymentItem paymentItem) {
Bundle bundle = new Bundle();
bundle.putParcelable("extra_payment_item", paymentItem);
bundle.putBoolean("EXTRA_DOWNLOAD_INDICATED", true);
Intent intent = new Intent(this, (Class<?>) ActivityIconPackDetail.class);
intent.putExtras(bundle);
startActivityForResult(intent, 70);
}
public static final void o2(ActivityNotificationCenter this$0, u item) {
r.h(this$0, "this$0");
r.h(item, "$item");
this$0.q2(item);
}
private final void o3(u uVar) {
qj.c.G(this);
new t0(this, uVar.getId()).c();
}
public final void p2(u uVar) {
if (uVar.getType() == 1061) {
zi.f.a().u5(false);
z zVar = this.f13878k0;
if (zVar == null) {
r.z("mAdapter");
zVar = null;
}
zVar.l();
R1(0);
}
}
private final void p3(u uVar) {
if (uVar.getState() == 2) {
return;
}
uVar.setFlag(2);
uVar.setState(2);
g1 g1Var = new g1(this, uVar);
g1Var.g(new p());
g1Var.c();
}
public final void r2(u uVar) {
int type = uVar.getType();
if (type != 25) {
if (type != 1046) {
if (type != 1061) {
if (type != 1064) {
if (type == 1065) {
O1(uVar);
return;
}
return;
}
a3();
return;
}
O2(uVar);
return;
}
d2(uVar);
return;
}
V1(uVar);
}
private final void s2(u uVar) throws JSONException {
if (uVar.getContent().getInt("KEY_TYPE_GOAL_NOTIFICATION") == 5) {
com.zoostudio.moneylover.utils.m0.N(uVar.getAccountID());
f13876me = true;
Intent s10 = MainActivity.a.s(MainActivity.Gk, this, R.id.tabHome, null, 4, null);
s10.addFlags(268435456);
s10.addFlags(67108864);
s10.setAction("com.zoostudio.intent.action.RUN_SHORTCUT");
startActivity(s10);
finish();
return;
}
y.b(com.zoostudio.moneylover.utils.v.GW_NOTIFICATION_CLICK);
com.zoostudio.moneylover.utils.m0.N(uVar.getAccountID());
finish();
}
private final void t2(ArrayList<u> arrayList, int i10) {
if (i10 == 0 && !hl.b.b(this, "android.permission.WRITE_EXTERNAL_STORAGE") && zi.f.a().E2() && Build.VERSION.SDK_INT <= 32) {
arrayList.add(0, k2());
}
z zVar = null;
if (arrayList.size() == 0) {
if (i10 == 0) {
z zVar2 = this.f13878k0;
if (zVar2 == null) {
r.z("mAdapter");
zVar2 = null;
}
zVar2.l();
e3();
} else {
return;
}
} else if (i10 == 0) {
z zVar3 = this.f13878k0;
if (zVar3 == null) {
r.z("mAdapter");
zVar3 = null;
}
zVar3.l();
z zVar4 = this.f13878k0;
if (zVar4 == null) {
r.z("mAdapter");
zVar4 = null;
}
zVar4.k(arrayList);
g2();
} else {
z zVar5 = this.f13878k0;
if (zVar5 == null) {
r.z("mAdapter");
zVar5 = null;
}
zVar5.k(arrayList);
}
d2 d2Var = this.K0;
if (d2Var == null) {
r.z("binding");
d2Var = null;
}
d2Var.f19737c.getRecycledViewPool().c();
z zVar6 = this.f13878k0;
if (zVar6 == null) {
r.z("mAdapter");
zVar6 = null;
}
zVar6.notifyDataSetChanged();
if (arrayList.size() == 20) {
z zVar7 = this.f13878k0;
if (zVar7 == null) {
r.z("mAdapter");
} else {
zVar = zVar7;
}
zVar.w();
}
}
private final void u2() {
startActivity(new Intent(this, (Class<?>) w1.class));
}
private final void v2(u uVar) throws JSONException {
y.H();
jj.a a10 = jj.a.a(new JSONObject(uVar.getContent().getString("data")));
int i10 = uVar.getContent().getInt(u.KEY_REGEX_ID);
d0 d0Var = new d0();
d0Var.setAmount(a10.c());
d0Var.setDate(a10.h());
d0Var.setNote(a10.e());
Intent intent = new Intent(this, (Class<?>) ActivityEditTransaction.class);
intent.putExtra("ActivityEditTransaction.KEY_NOTIFICATION_ID", uVar.getId());
intent.putExtra("key_regex_id", i10);
intent.putExtra("TRANSACTION_ITEMS", d0Var);
startActivity(intent);
}
private final void w2(u uVar) {
rq.k.d(q.a(this), null, null, new l(uVar, null), 3, null);
}
private final void x2() {
startActivity(new Intent(this, (Class<?>) ActivityEnterCode.class));
}
private final void y2() {
y.h("ActivityNotificationCenter");
startActivity(new Intent(this, (Class<?>) ActivityAbout.class));
}
private final void z2(u uVar) {
JSONArray jSONArray = uVar.getContent().getJSONArray("tr");
ArrayList arrayList = new ArrayList();
int length = jSONArray.length();
for (int i10 = 0; i10 < length; i10++) {
arrayList.add(jSONArray.get(i10).toString());
}
Intent intent = new Intent(this, (Class<?>) ActivityListTransactionChanged.class);
intent.putExtra(ActivityListTransactionChanged.C1.a(), arrayList);
startActivity(intent);
}
@Override
protected void R0(Bundle bundle) {
d2 d2Var = this.K0;
d2 d2Var2 = null;
if (d2Var == null) {
r.z("binding");
d2Var = null;
}
d2Var.f19737c.setLayoutManager(new LinearLayoutManager(this));
d2 d2Var3 = this.K0;
if (d2Var3 == null) {
r.z("binding");
d2Var3 = null;
}
RecyclerView recyclerView = d2Var3.f19737c;
z zVar = this.f13878k0;
if (zVar == null) {
r.z("mAdapter");
zVar = null;
}
recyclerView.setAdapter(zVar);
d2 d2Var4 = this.K0;
if (d2Var4 == null) {
r.z("binding");
} else {
d2Var2 = d2Var4;
}
d2Var2.f19736b.getBuilder().q(R.string.notification_center_no_data).c();
Q0().j(R.drawable.ic_cancel, new View.OnClickListener() {
@Override
public final void onClick(View view) {
ActivityNotificationCenter.h2(ActivityNotificationCenter.this, view);
}
});
R1(0);
}
@Override
protected void V0(Bundle bundle) {
this.K2 = false;
this.V2 = false;
this.K3 = false;
this.f13879k1 = 0L;
z zVar = new z();
this.f13878k0 = zVar;
zVar.t(new f());
z zVar2 = this.f13878k0;
z zVar3 = null;
if (zVar2 == null) {
r.z("mAdapter");
zVar2 = null;
}
zVar2.s(new g());
z zVar4 = this.f13878k0;
if (zVar4 == null) {
r.z("mAdapter");
zVar4 = null;
}
zVar4.v(new h());
z zVar5 = this.f13878k0;
if (zVar5 == null) {
r.z("mAdapter");
} else {
zVar3 = zVar5;
}
zVar3.u(new i());
qe.a.j(this, "view_noti_center");
}
@Override
protected void W0() {
d2 c10 = d2.c(getLayoutInflater());
r.g(c10, "inflate(...)");
this.K0 = c10;
if (c10 == null) {
r.z("binding");
c10 = null;
}
setContentView(c10.f19739e);
}
@Override
public HashMap<String, BroadcastReceiver> e1(HashMap<String, BroadcastReceiver> receivers) {
r.h(receivers, "receivers");
receivers.put("com.zoostudio.moneylover.utils.NOTIFICATION_READ_CHANGE", this.A1);
HashMap<String, BroadcastReceiver> e12 = super.e1(receivers);
r.g(e12, "registerReceivers(...)");
return e12;
}
@Override
public void onBackPressed() {
l2();
super.onBackPressed();
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
r.h(menu, "menu");
getMenuInflater().inflate(R.menu.notification_center, menu);
MenuItem findItem = menu.findItem(R.id.actionClear);
this.K1 = findItem;
r.e(findItem);
findItem.setVisible(false);
i2();
return super.onCreateOptionsMenu(menu);
}
@Override
public boolean onOptionsItemSelected(MenuItem item) {
r.h(item, "item");
if (item.getItemId() == R.id.actionClear) {
m2();
}
return super.onOptionsItemSelected(item);
}
public final void q2(u item) {
int i10;
r.h(item, "item");
if (item.getContent().has(u.KEY_NOTIFICATION_TAG)) {
y.z(item.getContent().getString(u.KEY_NOTIFICATION_TAG));
}
int type = item.getType();
if (type != 1) {
if (type != 6) {
if (type != 3) {
if (type != 4) {
if (type != 202) {
if (type != 203) {
switch (type) {
case 6:
break;
case 8:
case 1024:
qe.a.l(this, "c_go_premium_cta", Constants.MessagePayloadKeys.FROM, "Noti_center_upgrade_success");
K2();
break;
case 10:
w2(item);
break;
case 11:
H2(item);
break;
case 12:
Q1(item);
break;
case 13:
P2(item);
break;
case 14:
f3(item);
break;
case 15:
f3(item);
break;
case 16:
qe.a.l(this, "c_go_premium_cta", Constants.MessagePayloadKeys.FROM, "Noti_center_renew_success");
K2();
break;
case 17:
y.b(com.zoostudio.moneylover.utils.v.AH_CLICK_NOTI);
J2();
break;
case 1017:
B2(false);
break;
case 1021:
e2();
break;
case 1022:
k3();
break;
case 1026:
v2(item);
break;
case 1027:
k3();
break;
case 1030:
com.zoostudio.moneylover.adapter.item.j jVar = (com.zoostudio.moneylover.adapter.item.j) new Gson().fromJson(item.getContent().getString("CAMPAIGN_ITEM"), com.zoostudio.moneylover.adapter.item.j.class);
jVar.setFinished(true);
r.e(jVar);
Z1(jVar);
break;
case 1031:
B2(true);
break;
case 1033:
F2();
break;
case 1034:
G2();
break;
case 1035:
W2(item.getContent().getInt(u.CONTENT_KEY_BUDGET_ID));
break;
case 1038:
f3(item);
break;
case 1039:
Z2(item.getContent().getLong(FirebaseAnalytics.Param.TRANSACTION_ID));
break;
case 1040:
C2(item.getContent().getInt(u.CONTENT_KEY_BUDGET_ID));
break;
case 1041:
J2();
break;
case 1042:
y.a0();
com.zoostudio.moneylover.utils.m0.Q(this, false);
break;
case 1043:
A2(item);
break;
case 1044:
u2();
break;
case 1045:
Y1(item);
break;
case 1049:
String optString = item.getContent().optString(u.CONTENT_KEY_TRANSACTION_UUID);
r.g(optString, "optString(...)");
a2(optString);
break;
case FieldBehaviorProto.FIELD_BEHAVIOR_FIELD_NUMBER:
T2(item);
break;
case 1053:
Q2(item);
break;
case 1054:
c2(item);
break;
case ResourceProto.RESOURCE_REFERENCE_FIELD_NUMBER:
o3(item);
break;
case 1064:
a3();
break;
case 1065:
O1(item);
break;
case 1067:
Calendar calendar = Calendar.getInstance();
com.zoostudio.moneylover.adapter.item.a accountItem = item.getAccountItem();
com.zoostudio.moneylover.utils.m0.N(accountItem.getId());
int i11 = calendar.get(2);
int i12 = calendar.get(1);
String name = accountItem.getName();
r.g(name, "getName(...)");
i3(accountItem, i11, i12, name);
y.b(com.zoostudio.moneylover.utils.v.CW_NOTIFICATION_CLICK);
break;
case 1068:
s2(item);
break;
case 1070:
N2();
break;
case 1071:
m3();
break;
case 1074:
g3(item);
break;
case 1076:
if (item.getContent().has(u.CONTENT_KEY_BUDGET_GLOBAL_ID)) {
Y2(item.getContent().getLong(u.CONTENT_KEY_BUDGET_GLOBAL_ID));
break;
}
break;
case 1999:
K2();
break;
default:
switch (type) {
case 20:
z2(item);
break;
case 21:
L2(item);
break;
case 22:
E2();
break;
default:
switch (type) {
case 25:
V1(item);
break;
case 26:
V1(item);
break;
case 27:
V1(item);
break;
default:
switch (type) {
case 29:
I2();
break;
case 30:
J2();
break;
case 31:
w2(item);
break;
default:
switch (type) {
case 33:
M2();
break;
case 34:
x2();
break;
case 35:
w2(item);
break;
default:
switch (type) {
case 40:
y.b(com.zoostudio.moneylover.utils.v.AH_CLICK_NOTI);
N1(item);
break;
case 41:
ue.a.b(this);
break;
case 42:
ue.a.b(this);
break;
case 43:
qe.a.l(this, "c_go_premium_cta", Constants.MessagePayloadKeys.FROM, "Noti_center_sub_success");
K2();
break;
case 44:
qe.a.l(this, "c_go_premium_cta", Constants.MessagePayloadKeys.FROM, "Noti_center_renew_success");
K2();
break;
default:
switch (type) {
case 1001:
R2(item);
break;
case 1002:
Z2(item.getContent().getLong(FirebaseAnalytics.Param.TRANSACTION_ID));
break;
case 1003:
JSONObject content = item.getContent();
h3(content.getInt("month"), content.getInt("year"));
break;
case GeofenceStatusCodes.GEOFENCE_INSUFFICIENT_LOCATION_PERMISSION:
if (item.getContent().has(u.CONTENT_KEY_BUDGET_ID)) {
i10 = item.getContent().getInt(u.CONTENT_KEY_BUDGET_ID);
} else {
i10 = item.getContent().getInt(u.CONTENT_KEY_ITEM_ID);
}
U2(i10);
break;
case GeofenceStatusCodes.GEOFENCE_REQUEST_TOO_FREQUENT:
l3();
break;
default:
switch (type) {
case 1010:
Z2(item.getContent().getLong(FirebaseAnalytics.Param.TRANSACTION_ID));
break;
case 1011:
e2();
break;
case 1012:
Z2(item.getContent().getLong(FirebaseAnalytics.Param.TRANSACTION_ID));
break;
case 1013:
y2();
break;
}
}
}
}
}
}
}
}
} else {
finish();
}
} else {
z2(item);
}
} else {
f2(item);
}
} else {
e2();
}
}
M2();
} else {
c2(item);
}
if (item.getContent().has(u.KEY_TRACKING_CLICK)) {
y.c(item.getContent().getString(u.KEY_TRACKING_CLICK));
}
}
}