导航菜单

页面标题

页面副标题

Bhakti v5.4.0 - PushClickDialogTracker.java 源代码

正在查看: Bhakti v5.4.0 应用的 PushClickDialogTracker.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.moengage.pushbase.activities;

import A5.f;
import Ah.e;
import Ai.p;
import I5.g;
import android.app.AlarmManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
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 java.util.Calendar;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import mf.h;
import nf.F;
import qg.e0;
import uh.w;
import yh.InterfaceC2757a;
import yh.b;
import yh.c;

@Metadata
public final class PushClickDialogTracker extends FragmentActivity implements InterfaceC2757a, c, b {
    private int day;
    private Bundle extras;
    private int month;
    private F sdkInstance;
    private final String tag = "PushBase_9.1.0_PushClickDialogTracker";
    private int year;

    private final void storePayload(F f10, Bundle bundle) {
        f10.f.i(new f(f10, this, bundle, 26));
    }

    public static final void storePayload$lambda$3(F f10, PushClickDialogTracker pushClickDialogTracker, Bundle bundle) {
        Intrinsics.checkNotNullParameter(f10, "$sdkInstance");
        Intrinsics.checkNotNullParameter(pushClickDialogTracker, "this$0");
        Intrinsics.checkNotNullParameter(bundle, "$bundle");
        h.a(f10.d, 0, (Throwable) null, (Function0) null, new PushClickDialogTracker$storePayload$1$1(pushClickDialogTracker, bundle), 7);
        if (w.b == null) {
            synchronized (w.class) {
                try {
                    w wVar = w.b;
                    if (wVar == null) {
                        wVar = new w(0);
                    }
                    w.b = wVar;
                } catch (Throwable th2) {
                    throw th2;
                }
            }
        }
        w.O(pushClickDialogTracker, f10, new Bh.c(f10, 0).d(bundle), 0L);
    }

    public void onCreate(Bundle bundle) {
        try {
            super.onCreate(bundle);
            yd.c cVar = h.c;
            p.P(0, (Throwable) null, (e0) null, new PushClickDialogTracker$onCreate$1(this), 7);
            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;
            g.a0(extras);
            if (w.b == null) {
                synchronized (w.class) {
                    try {
                        w wVar = w.b;
                        if (wVar == null) {
                            wVar = new w(0);
                        }
                        w.b = wVar;
                    } finally {
                    }
                }
            }
            Bundle bundle2 = this.extras;
            if (bundle2 == null) {
                Intrinsics.m("extras");
                throw null;
            }
            F J9 = w.J(bundle2);
            if (J9 == null) {
                throw new Ie.b("Instance not initialised.");
            }
            this.sdkInstance = J9;
            e eVar = new e(J9, 1);
            eVar.d(this);
            Bundle bundle3 = this.extras;
            if (bundle3 == null) {
                Intrinsics.m("extras");
                throw null;
            }
            bundle3.putBoolean("moe_re_notify", true);
            Bundle bundle4 = this.extras;
            if (bundle4 == null) {
                Intrinsics.m("extras");
                throw null;
            }
            bundle4.putString("moe_n_r_s", "moe_source_r_l_s");
            Bundle bundle5 = this.extras;
            if (bundle5 == null) {
                Intrinsics.m("extras");
                throw null;
            }
            if (!bundle5.containsKey("moe_action")) {
                finish();
            }
            Bundle bundle6 = this.extras;
            if (bundle6 != null) {
                eVar.c(bundle6, this);
            } else {
                Intrinsics.m("extras");
                throw null;
            }
        } catch (Throwable th2) {
            yd.c cVar2 = h.c;
            p.P(1, th2, (e0) null, new PushClickDialogTracker$onCreate$2(this), 4);
            finish();
        }
    }

    @Override
    public void onDateDialogCancelled() {
        yd.c cVar = h.c;
        p.P(0, (Throwable) null, (e0) null, new PushClickDialogTracker$onDateDialogCancelled$1(this), 7);
        finish();
    }

    @Override
    public void onDateSelected(int i10, int i11, int i12) {
        try {
            yd.c cVar = h.c;
            p.P(0, (Throwable) null, (e0) null, new PushClickDialogTracker$onDateSelected$1(this, i10, i11, i12), 7);
            this.year = i10;
            this.day = i12;
            this.month = i11;
            TimePickerFragment timePickerFragment = new TimePickerFragment();
            timePickerFragment.setTimeSelectedListener(this);
            timePickerFragment.show(getSupportFragmentManager(), "timePicker");
        } catch (Throwable th2) {
            yd.c cVar2 = h.c;
            p.P(1, th2, (e0) null, new PushClickDialogTracker$onDateSelected$2(this), 4);
            finish();
        }
    }

    @Override
    public void onDialogCancelled() {
        finish();
    }

    @Override
    public void onItemSelected(long j10) {
        try {
            yd.c cVar = h.c;
            p.P(0, (Throwable) null, (e0) null, new PushClickDialogTracker$onItemSelected$1(this, j10), 7);
            if (j10 == -1) {
                DatePickerFragment datePickerFragment = new DatePickerFragment();
                Bundle bundle = this.extras;
                if (bundle == null) {
                    Intrinsics.m("extras");
                    throw null;
                }
                datePickerFragment.setArguments(bundle);
                datePickerFragment.setDateSelectedListener(this);
                datePickerFragment.show(getSupportFragmentManager(), "datePicker");
                return;
            }
            Intent intent = new Intent(getApplicationContext(), (Class<?>) MoEPushReceiver.class);
            Bundle bundle2 = this.extras;
            if (bundle2 == null) {
                Intrinsics.m("extras");
                throw null;
            }
            Bundle f10 = Yf.e.f(bundle2);
            int D10 = Yf.e.D();
            f10.putInt("remind_later_alarm_id", D10);
            intent.putExtras(f10);
            p.P(0, (Throwable) null, (e0) null, new PushClickDialogTracker$onItemSelected$2(this, f10), 7);
            intent.setAction("MOE_ACTION_SHOW_NOTIFICATION");
            Bundle extras = intent.getExtras();
            if (extras != null) {
                F f11 = this.sdkInstance;
                if (f11 == null) {
                    Intrinsics.m("sdkInstance");
                    throw null;
                }
                storePayload(f11, extras);
            }
            Context applicationContext = getApplicationContext();
            Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
            ((AlarmManager) Yf.e.C(this, "alarm")).set(0, j10, Yf.e.v(applicationContext, D10, intent));
            finish();
        } catch (Throwable th2) {
            yd.c cVar2 = h.c;
            p.P(1, th2, (e0) null, new PushClickDialogTracker$onItemSelected$4(this), 4);
            finish();
        }
    }

    @Override
    public void onTimeDialogCancelled() {
        yd.c cVar = h.c;
        p.P(0, (Throwable) null, (e0) null, new PushClickDialogTracker$onTimeDialogCancelled$1(this), 7);
        finish();
    }

    @Override
    public void onTimeSelected(int i10, int i11) {
        try {
            yd.c cVar = h.c;
            p.P(0, (Throwable) null, (e0) null, new PushClickDialogTracker$onTimeSelected$1(this, i10, i11), 7);
            Calendar calendar = Calendar.getInstance();
            calendar.set(this.year, this.month, this.day, i10, i11, 0);
            long timeInMillis = calendar.getTimeInMillis();
            p.P(0, (Throwable) null, (e0) null, new PushClickDialogTracker$onTimeSelected$2(this, timeInMillis), 7);
            Intent intent = new Intent((Context) this, (Class<?>) MoEPushReceiver.class);
            Bundle bundle = this.extras;
            if (bundle == null) {
                Intrinsics.m("extras");
                throw null;
            }
            Bundle f10 = Yf.e.f(bundle);
            f10.remove("moe_action_id");
            f10.remove("moe_action");
            p.P(0, (Throwable) null, (e0) null, new PushClickDialogTracker$onTimeSelected$4(this, f10), 7);
            int D10 = Yf.e.D();
            f10.putInt("remind_later_alarm_id", D10);
            intent.putExtras(f10);
            intent.setAction("MOE_ACTION_SHOW_NOTIFICATION");
            Bundle extras = getIntent().getExtras();
            if (extras != null) {
                F f11 = this.sdkInstance;
                if (f11 == null) {
                    Intrinsics.m("sdkInstance");
                    throw null;
                }
                storePayload(f11, extras);
            }
            Context applicationContext = getApplicationContext();
            Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
            ((AlarmManager) Yf.e.C(this, "alarm")).set(0, timeInMillis, Yf.e.v(applicationContext, D10, intent));
            finish();
        } catch (Throwable th2) {
            yd.c cVar2 = h.c;
            p.P(1, th2, (e0) null, new PushClickDialogTracker$onTimeSelected$6(this), 4);
            finish();
        }
    }
}