正在查看: Mint v5.7.3 应用的 PushClickDialogTracker.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mint v5.7.3 应用的 PushClickDialogTracker.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.moengage.pushbase.activities;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.annotation.Keep;
import androidx.fragment.app.FragmentActivity;
import com.moengage.pushbase.internal.MoEPushReceiver;
import com.moengage.pushbase.internal.fragments.DatePickerFragment;
import com.moengage.pushbase.internal.fragments.TimePickerFragment;
import com.moengage.pushbase.internal.n;
import com.thoughtbot.expandablerecyclerview.BuildConfig;
import java.util.Calendar;
import kotlin.Metadata;
import kotlin.jvm.internal.m;
import nd.a;
import nd.b;
import nd.c;
import oa.d;
import va.h;
import wa.a0;
import yb.k;
@Keep
@Metadata(d1 = {"\u00008\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\t\n\u0002\u0010\t\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\b\b\u0007\u0018\u00002\u00020\u00012\u00020\u00022\u00020\u00032\u00020\u0004B\u0007¢\u0006\u0004\b\u001d\u0010\u001eJ\u0012\u0010\b\u001a\u00020\u00072\b\u0010\u0006\u001a\u0004\u0018\u00010\u0005H\u0014J \u0010\r\u001a\u00020\u00072\u0006\u0010\n\u001a\u00020\t2\u0006\u0010\u000b\u001a\u00020\t2\u0006\u0010\f\u001a\u00020\tH\u0016J\u0018\u0010\u0010\u001a\u00020\u00072\u0006\u0010\u000e\u001a\u00020\t2\u0006\u0010\u000f\u001a\u00020\tH\u0016J\b\u0010\u0011\u001a\u00020\u0007H\u0016J\b\u0010\u0012\u001a\u00020\u0007H\u0016J\u0010\u0010\u0015\u001a\u00020\u00072\u0006\u0010\u0014\u001a\u00020\u0013H\u0016J\b\u0010\u0016\u001a\u00020\u0007H\u0016R\u0014\u0010\u0018\u001a\u00020\u00178\u0002X\u0082D¢\u0006\u0006\n\u0004\b\u0018\u0010\u0019R\u0016\u0010\n\u001a\u00020\t8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\n\u0010\u001aR\u0016\u0010\u000b\u001a\u00020\t8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u000b\u0010\u001aR\u0016\u0010\f\u001a\u00020\t8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\f\u0010\u001aR\u0016\u0010\u001b\u001a\u00020\u00058\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b\u001b\u0010\u001c¨\u0006\u001f"}, d2 = {"Lcom/moengage/pushbase/activities/PushClickDialogTracker;", "Landroidx/fragment/app/FragmentActivity;", "Lnd/a;", "Lnd/c;", "Lnd/b;", "Landroid/os/Bundle;", "savedInstanceState", "Lug/a0;", "onCreate", BuildConfig.FLAVOR, "year", "month", "day", "onDateSelected", "hourOfDay", "minute", "onTimeSelected", "onTimeDialogCancelled", "onDateDialogCancelled", BuildConfig.FLAVOR, "time", "onItemSelected", "onDialogCancelled", BuildConfig.FLAVOR, "tag", "Ljava/lang/String;", "I", "extras", "Landroid/os/Bundle;", "<init>", "()V", "pushbase_release"}, k = 1, mv = {1, 7, 1})
public final class PushClickDialogTracker extends FragmentActivity implements a, c, b {
private int day;
private Bundle extras;
private int month;
private final String tag = "PushBase_8.0.2_PushClickDialogTracker";
private int year;
protected void onCreate(Bundle bundle) {
try {
super.onCreate(bundle);
h.Companion.d(h.INSTANCE, 0, null, new PushClickDialogTracker$onCreate$1(this), 3, null);
Intent intent = getIntent();
if (intent == null) {
throw new IllegalStateException("Intent cannot be null");
}
Bundle extras = intent.getExtras();
if (extras == null) {
throw new IllegalStateException("Intent extras cannot be empty");
}
this.extras = extras;
d.a(extras);
n a = n.INSTANCE.a();
Bundle bundle2 = this.extras;
Bundle bundle3 = null;
if (bundle2 == null) {
m.w("extras");
bundle2 = null;
}
a0 j = a.j(bundle2);
if (j == null) {
throw new z9.b("Instance not initialised.");
}
ld.b bVar = new ld.b(j);
bVar.e(this);
Bundle bundle4 = this.extras;
if (bundle4 == null) {
m.w("extras");
bundle4 = null;
}
bundle4.putBoolean("moe_re_notify", true);
Bundle bundle5 = this.extras;
if (bundle5 == null) {
m.w("extras");
bundle5 = null;
}
bundle5.putString("moe_n_r_s", "moe_source_r_l_s");
Bundle bundle6 = this.extras;
if (bundle6 == null) {
m.w("extras");
bundle6 = null;
}
if (!bundle6.containsKey("moe_action")) {
finish();
}
Bundle bundle7 = this.extras;
if (bundle7 == null) {
m.w("extras");
} else {
bundle3 = bundle7;
}
bVar.d(this, bundle3);
} catch (Exception e) {
h.INSTANCE.b(1, e, new PushClickDialogTracker$onCreate$2(this));
finish();
}
}
@Override
public void onDateDialogCancelled() {
h.Companion.d(h.INSTANCE, 0, null, new PushClickDialogTracker$onDateDialogCancelled$1(this), 3, null);
finish();
}
@Override
public void onDateSelected(int i, int i2, int i3) {
try {
h.Companion.d(h.INSTANCE, 0, null, new PushClickDialogTracker$onDateSelected$1(this, i, i2, i3), 3, null);
this.year = i;
this.day = i3;
this.month = i2;
TimePickerFragment timePickerFragment = new TimePickerFragment();
timePickerFragment.setTimeSelectedListener(this);
timePickerFragment.show(getSupportFragmentManager(), "timePicker");
} catch (Exception e) {
h.INSTANCE.b(1, e, new PushClickDialogTracker$onDateSelected$2(this));
finish();
}
}
@Override
public void onDialogCancelled() {
finish();
}
@Override
public void onItemSelected(long j) {
try {
h.Companion.d(h.INSTANCE, 0, null, new PushClickDialogTracker$onItemSelected$1(this, j), 3, null);
Bundle bundle = null;
if (j == -1) {
DatePickerFragment datePickerFragment = new DatePickerFragment();
Bundle bundle2 = this.extras;
if (bundle2 == null) {
m.w("extras");
} else {
bundle = bundle2;
}
datePickerFragment.setArguments(bundle);
datePickerFragment.setDateSelectedListener(this);
datePickerFragment.show(getSupportFragmentManager(), "datePicker");
return;
}
Intent intent = new Intent(getApplicationContext(), (Class<?>) MoEPushReceiver.class);
Bundle bundle3 = this.extras;
if (bundle3 == null) {
m.w("extras");
} else {
bundle = bundle3;
}
intent.putExtras(k.c(bundle));
intent.setAction("MOE_ACTION_SHOW_NOTIFICATION");
Context applicationContext = getApplicationContext();
m.f(applicationContext, "applicationContext");
PendingIntent C = yb.c.C(applicationContext, 123, intent, 0, 8, null);
Object systemService = getApplication().getSystemService("alarm");
m.e(systemService, "null cannot be cast to non-null type android.app.AlarmManager");
((AlarmManager) systemService).set(0, j, C);
finish();
} catch (Exception e) {
h.INSTANCE.b(1, e, new PushClickDialogTracker$onItemSelected$2(this));
finish();
}
}
@Override
public void onTimeDialogCancelled() {
h.Companion.d(h.INSTANCE, 0, null, new PushClickDialogTracker$onTimeDialogCancelled$1(this), 3, null);
finish();
}
@Override
public void onTimeSelected(int i, int i2) {
try {
h.Companion companion = h.INSTANCE;
h.Companion.d(companion, 0, null, new PushClickDialogTracker$onTimeSelected$1(this, i, i2), 3, null);
Calendar calendar = Calendar.getInstance();
calendar.set(this.year, this.month, this.day, i, i2, 0);
long timeInMillis = calendar.getTimeInMillis();
h.Companion.d(companion, 0, null, new PushClickDialogTracker$onTimeSelected$2(this, timeInMillis), 3, null);
Intent intent = new Intent((Context) this, (Class<?>) MoEPushReceiver.class);
Bundle bundle = this.extras;
if (bundle == null) {
m.w("extras");
bundle = null;
}
Bundle c = k.c(bundle);
c.remove("moe_action_id");
c.remove("moe_action");
intent.putExtras(c);
intent.setAction("MOE_ACTION_SHOW_NOTIFICATION");
Context applicationContext = getApplicationContext();
m.f(applicationContext, "applicationContext");
PendingIntent C = yb.c.C(applicationContext, yb.c.L(), intent, 0, 8, null);
Object systemService = getSystemService("alarm");
m.e(systemService, "null cannot be cast to non-null type android.app.AlarmManager");
((AlarmManager) systemService).set(0, timeInMillis, C);
finish();
} catch (Exception e) {
h.INSTANCE.b(1, e, new PushClickDialogTracker$onTimeSelected$4(this));
finish();
}
}
}