正在查看: Dostt v1.0.89 应用的 PushClickDialogTracker.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Dostt v1.0.89 应用的 PushClickDialogTracker.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.moengage.pushbase.activities;
import Bc.h;
import Cc.y;
import Zb.f;
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.t;
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 java.util.Calendar;
import jd.AbstractC1663d;
import kotlin.Metadata;
import kotlin.jvm.internal.r;
import le.C1755b;
import ne.InterfaceC1784a;
import ne.b;
import ne.c;
import sc.AbstractC1888d;
@Keep
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u000b\n\u0002\u0010\t\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0006\b\u0007\u0018\u00002\u00020\u00012\u00020\u00022\u00020\u00032\u00020\u0004B\u0007¢\u0006\u0004\b\u0005\u0010\u0006J\u0019\u0010\n\u001a\u00020\t2\b\u0010\b\u001a\u0004\u0018\u00010\u0007H\u0014¢\u0006\u0004\b\n\u0010\u000bJ'\u0010\u0010\u001a\u00020\t2\u0006\u0010\r\u001a\u00020\f2\u0006\u0010\u000e\u001a\u00020\f2\u0006\u0010\u000f\u001a\u00020\fH\u0016¢\u0006\u0004\b\u0010\u0010\u0011J\u001f\u0010\u0014\u001a\u00020\t2\u0006\u0010\u0012\u001a\u00020\f2\u0006\u0010\u0013\u001a\u00020\fH\u0016¢\u0006\u0004\b\u0014\u0010\u0015J\u000f\u0010\u0016\u001a\u00020\tH\u0016¢\u0006\u0004\b\u0016\u0010\u0006J\u000f\u0010\u0017\u001a\u00020\tH\u0016¢\u0006\u0004\b\u0017\u0010\u0006J\u0017\u0010\u001a\u001a\u00020\t2\u0006\u0010\u0019\u001a\u00020\u0018H\u0016¢\u0006\u0004\b\u001a\u0010\u001bJ\u000f\u0010\u001c\u001a\u00020\tH\u0016¢\u0006\u0004\b\u001c\u0010\u0006R\u0014\u0010\u001e\u001a\u00020\u001d8\u0002X\u0082D¢\u0006\u0006\n\u0004\b\u001e\u0010\u001fR\u0016\u0010\r\u001a\u00020\f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\r\u0010 R\u0016\u0010\u000e\u001a\u00020\f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u000e\u0010 R\u0016\u0010\u000f\u001a\u00020\f8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\u000f\u0010 R\u0016\u0010!\u001a\u00020\u00078\u0002@\u0002X\u0082.¢\u0006\u0006\n\u0004\b!\u0010\"¨\u0006#"}, d2 = {"Lcom/moengage/pushbase/activities/PushClickDialogTracker;", "Landroidx/fragment/app/t;", "Lne/a;", "Lne/c;", "Lne/b;", "<init>", "()V", "Landroid/os/Bundle;", "savedInstanceState", "LSh/J;", "onCreate", "(Landroid/os/Bundle;)V", "", "year", "month", "day", "onDateSelected", "(III)V", "hourOfDay", "minute", "onTimeSelected", "(II)V", "onTimeDialogCancelled", "onDateDialogCancelled", "", "time", "onItemSelected", "(J)V", "onDialogCancelled", "", "tag", "Ljava/lang/String;", "I", "extras", "Landroid/os/Bundle;", "pushbase_defaultRelease"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class PushClickDialogTracker extends t implements InterfaceC1784a, c, b {
private int day;
private Bundle extras;
private int month;
private final String tag = "PushBase_8.4.0_PushClickDialogTracker";
private int year;
protected void onCreate(Bundle savedInstanceState) {
try {
super.onCreate(savedInstanceState);
h.a.e(h.e, 0, null, null, new PushClickDialogTracker$onCreate$1(this), 7, 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;
AbstractC1888d.a(extras);
n a = n.b.a();
Bundle bundle = this.extras;
Bundle bundle2 = null;
if (bundle == null) {
r.t("extras");
bundle = null;
}
y h = a.h(bundle);
if (h == null) {
throw new f("Instance not initialised.");
}
C1755b c1755b = new C1755b(h);
c1755b.e(this);
Bundle bundle3 = this.extras;
if (bundle3 == null) {
r.t("extras");
bundle3 = null;
}
bundle3.putBoolean("moe_re_notify", true);
Bundle bundle4 = this.extras;
if (bundle4 == null) {
r.t("extras");
bundle4 = null;
}
bundle4.putString("moe_n_r_s", "moe_source_r_l_s");
Bundle bundle5 = this.extras;
if (bundle5 == null) {
r.t("extras");
bundle5 = null;
}
if (!bundle5.containsKey("moe_action")) {
finish();
}
Bundle bundle6 = this.extras;
if (bundle6 == null) {
r.t("extras");
} else {
bundle2 = bundle6;
}
c1755b.d(this, bundle2);
} catch (Exception e) {
h.a.e(h.e, 1, e, null, new PushClickDialogTracker$onCreate$2(this), 4, null);
finish();
}
}
@Override
public void onDateDialogCancelled() {
h.a.e(h.e, 0, null, null, new PushClickDialogTracker$onDateDialogCancelled$1(this), 7, null);
finish();
}
@Override
public void onDateSelected(int year, int month, int day) {
try {
h.a.e(h.e, 0, null, null, new PushClickDialogTracker$onDateSelected$1(this, year, month, day), 7, null);
this.year = year;
this.day = day;
this.month = month;
TimePickerFragment timePickerFragment = new TimePickerFragment();
timePickerFragment.setTimeSelectedListener(this);
timePickerFragment.show(getSupportFragmentManager(), "timePicker");
} catch (Exception e) {
h.a.e(h.e, 1, e, null, new PushClickDialogTracker$onDateSelected$2(this), 4, null);
finish();
}
}
@Override
public void onDialogCancelled() {
finish();
}
@Override
public void onItemSelected(long time) {
try {
h.a.e(h.e, 0, null, null, new PushClickDialogTracker$onItemSelected$1(this, time), 7, null);
Bundle bundle = null;
if (time == -1) {
DatePickerFragment datePickerFragment = new DatePickerFragment();
Bundle bundle2 = this.extras;
if (bundle2 == null) {
r.t("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) {
r.t("extras");
} else {
bundle = bundle3;
}
intent.putExtras(AbstractC1663d.k(bundle));
intent.setAction("MOE_ACTION_SHOW_NOTIFICATION");
Context applicationContext = getApplicationContext();
r.e(applicationContext, "getApplicationContext(...)");
PendingIntent B = AbstractC1663d.B(applicationContext, 123, intent, 0, 8, null);
Object systemService = getApplication().getSystemService("alarm");
r.d(systemService, "null cannot be cast to non-null type android.app.AlarmManager");
((AlarmManager) systemService).set(0, time, B);
finish();
} catch (Exception e) {
h.a.e(h.e, 1, e, null, new PushClickDialogTracker$onItemSelected$2(this), 4, null);
finish();
}
}
@Override
public void onTimeDialogCancelled() {
h.a.e(h.e, 0, null, null, new PushClickDialogTracker$onTimeDialogCancelled$1(this), 7, null);
finish();
}
@Override
public void onTimeSelected(int hourOfDay, int minute) {
try {
h.a aVar = h.e;
h.a.e(aVar, 0, null, null, new PushClickDialogTracker$onTimeSelected$1(this, hourOfDay, minute), 7, null);
Calendar calendar = Calendar.getInstance();
calendar.set(this.year, this.month, this.day, hourOfDay, minute, 0);
long timeInMillis = calendar.getTimeInMillis();
h.a.e(aVar, 0, null, null, new PushClickDialogTracker$onTimeSelected$2(this, timeInMillis), 7, null);
Intent intent = new Intent((Context) this, (Class<?>) MoEPushReceiver.class);
Bundle bundle = this.extras;
if (bundle == null) {
r.t("extras");
bundle = null;
}
Bundle k = AbstractC1663d.k(bundle);
k.remove("moe_action_id");
k.remove("moe_action");
intent.putExtras(k);
intent.setAction("MOE_ACTION_SHOW_NOTIFICATION");
Context applicationContext = getApplicationContext();
r.e(applicationContext, "getApplicationContext(...)");
PendingIntent B = AbstractC1663d.B(applicationContext, AbstractC1663d.M(), intent, 0, 8, null);
Object systemService = getSystemService("alarm");
r.d(systemService, "null cannot be cast to non-null type android.app.AlarmManager");
((AlarmManager) systemService).set(0, timeInMillis, B);
finish();
} catch (Exception e) {
h.a.e(h.e, 1, e, null, new PushClickDialogTracker$onTimeSelected$4(this), 4, null);
finish();
}
}
}