导航菜单

页面标题

页面副标题

MedEd v5.3.6 - PushClickDialogTracker.java 源代码

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

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


package com.moengage.pushbase.activities;

import android.app.AlarmManager;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import androidx.fragment.app.e;
import com.moengage.pushbase.activities.PushClickDialogTracker;
import com.moengage.pushbase.internal.MoEPushReceiver;
import com.moengage.pushbase.internal.a;
import com.moengage.pushbase.internal.fragments.DatePickerFragment;
import com.moengage.pushbase.internal.fragments.TimePickerFragment;
import defpackage.C20;
import defpackage.Kd3;
import defpackage.OX1;
import defpackage.QX1;
import defpackage.To1$a;
import defpackage.V22;
import defpackage.j92;
import defpackage.oH2;
import defpackage.ol2;
import defpackage.rl2;
import defpackage.sl2;
import defpackage.vn1;
import java.util.Calendar;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;

@Metadata
public final class PushClickDialogTracker extends e implements C20, Kd3, V22 {
    private int day;
    private Bundle extras;
    private int month;
    private iH2 sdkInstance;
    private final String tag = "PushBase_9.1.1_PushClickDialogTracker";
    private int year;

    public static final String onCreate$lambda$0(PushClickDialogTracker pushClickDialogTracker) {
        return qe.a(new StringBuilder(), pushClickDialogTracker.tag, " onCreate() : ");
    }

    public static final String onCreate$lambda$1(PushClickDialogTracker pushClickDialogTracker) {
        return qe.a(new StringBuilder(), pushClickDialogTracker.tag, " onCreate() : ");
    }

    public static final String onDateDialogCancelled$lambda$11(PushClickDialogTracker pushClickDialogTracker) {
        return qe.a(new StringBuilder(), pushClickDialogTracker.tag, " onDateDialogCancelled() : Dialog cancelled finishing activity.");
    }

    public static final String onDateSelected$lambda$2(PushClickDialogTracker pushClickDialogTracker, int i, int i2, int i3) {
        return pushClickDialogTracker.tag + " onDateSelected() : Selected date: " + i + '-' + i2 + '-' + i3;
    }

    public static final String onDateSelected$lambda$3(PushClickDialogTracker pushClickDialogTracker) {
        return qe.a(new StringBuilder(), pushClickDialogTracker.tag, " onDateSelected() : ");
    }

    public static final String onItemSelected$lambda$12(PushClickDialogTracker pushClickDialogTracker, long j) {
        return pushClickDialogTracker.tag + " onItemSelected() : Item selected. Time: " + j;
    }

    public static final String onItemSelected$lambda$13(PushClickDialogTracker pushClickDialogTracker, Bundle bundle) {
        return pushClickDialogTracker.tag + " onTimeSelected() :payload: " + bundle;
    }

    public static final String onItemSelected$lambda$15(PushClickDialogTracker pushClickDialogTracker) {
        return qe.a(new StringBuilder(), pushClickDialogTracker.tag, " onItemSelected() : ");
    }

    public static final String onTimeDialogCancelled$lambda$10(PushClickDialogTracker pushClickDialogTracker) {
        return qe.a(new StringBuilder(), pushClickDialogTracker.tag, " onTimeDialogCancelled() : Dialog cancelled finishing activity.");
    }

    public static final String onTimeSelected$lambda$4(PushClickDialogTracker pushClickDialogTracker, int i, int i2) {
        return pushClickDialogTracker.tag + " onTimeSelected() : Selected time: " + i + ':' + i2;
    }

    public static final String onTimeSelected$lambda$5(PushClickDialogTracker pushClickDialogTracker, long j) {
        return pushClickDialogTracker.tag + " onTimeSelected() : Alarm trigger time: " + j;
    }

    public static final String onTimeSelected$lambda$7(PushClickDialogTracker pushClickDialogTracker, Bundle bundle) {
        return pushClickDialogTracker.tag + " onTimeSelected() :payload: " + bundle;
    }

    public static final String onTimeSelected$lambda$9(PushClickDialogTracker pushClickDialogTracker) {
        return qe.a(new StringBuilder(), pushClickDialogTracker.tag, " onTimeSelected() : ");
    }

    private final void storePayload(iH2 ih2, Bundle bundle) {
        ih2.f.e(new ar3(2, ih2, this, bundle));
    }

    public static final void storePayload$lambda$17(iH2 ih2, PushClickDialogTracker pushClickDialogTracker, Bundle bundle) {
        To1.a(ih2.d, 0, (Throwable) null, (Function0) null, new w8(pushClickDialogTracker, 12, bundle), 7);
        if (a.b == null) {
            synchronized (a.class) {
                try {
                    a aVar = a.b;
                    if (aVar == null) {
                        aVar = new a();
                    }
                    a.b = aVar;
                } catch (Throwable th) {
                    throw th;
                }
            }
        }
        OX1 d = new j92(ih2).d(bundle);
        Intrinsics.checkNotNullParameter(pushClickDialogTracker, "context");
        Intrinsics.checkNotNullParameter(ih2, "sdkInstance");
        Intrinsics.checkNotNullParameter(d, "campaignPayload");
        ll2.a.getClass();
        ll2.c(pushClickDialogTracker, ih2).s(d);
    }

    public static final String storePayload$lambda$17$lambda$16(PushClickDialogTracker pushClickDialogTracker, Bundle bundle) {
        return pushClickDialogTracker.tag + " storePayload(): " + bundle + ' ';
    }

    public void onCreate(Bundle bundle) {
        int i = 0;
        try {
            super.onCreate(bundle);
            To1$a.d(To1.e, 0, null, null, new rl2(this, i), 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;
            kb1.r(extras);
            if (a.b == null) {
                synchronized (a.class) {
                    try {
                        a aVar = a.b;
                        if (aVar == null) {
                            aVar = new a();
                        }
                        a.b = aVar;
                    } finally {
                    }
                }
            }
            Bundle bundle2 = this.extras;
            if (bundle2 == null) {
                Intrinsics.n("extras");
                throw null;
            }
            iH2 c = a.c(bundle2);
            if (c == null) {
                throw new oH2("Instance not initialised.");
            }
            this.sdkInstance = c;
            UG ug = new UG(c);
            ug.c(this);
            Bundle bundle3 = this.extras;
            if (bundle3 == null) {
                Intrinsics.n("extras");
                throw null;
            }
            bundle3.putBoolean("moe_re_notify", true);
            Bundle bundle4 = this.extras;
            if (bundle4 == null) {
                Intrinsics.n("extras");
                throw null;
            }
            bundle4.putString("moe_n_r_s", "moe_source_r_l_s");
            Bundle bundle5 = this.extras;
            if (bundle5 == null) {
                Intrinsics.n("extras");
                throw null;
            }
            if (!bundle5.containsKey("moe_action")) {
                finish();
            }
            Bundle bundle6 = this.extras;
            if (bundle6 != null) {
                ug.b(this, bundle6);
            } else {
                Intrinsics.n("extras");
                throw null;
            }
        } catch (Throwable th) {
            To1$a.d(To1.e, 1, th, null, new sl2(this, i), 4);
            finish();
        }
    }

    @Override
    public void onDateDialogCancelled() {
        To1$a.d(To1.e, 0, null, null, new ol2(this, 0), 7);
        finish();
    }

    @Override
    public void onDateSelected(final int i, final int i2, final int i3) {
        try {
            To1$a.d(To1.e, 0, null, null, new Function0() {
                public final Object invoke() {
                    String onDateSelected$lambda$2;
                    onDateSelected$lambda$2 = PushClickDialogTracker.onDateSelected$lambda$2(PushClickDialogTracker.this, i, i2, i3);
                    return onDateSelected$lambda$2;
                }
            }, 7);
            this.year = i;
            this.day = i3;
            this.month = i2;
            TimePickerFragment timePickerFragment = new TimePickerFragment();
            timePickerFragment.setTimeSelectedListener(this);
            timePickerFragment.show(getSupportFragmentManager(), "timePicker");
        } catch (Throwable th) {
            To1$a.d(To1.e, 1, th, null, new wz(this, 23), 4);
            finish();
        }
    }

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

    @Override
    public void onItemSelected(final long j) {
        try {
            To1$a to1$a = To1.e;
            final int i = 0;
            To1$a.d(to1$a, 0, null, null, new Function0() {
                public final Object invoke() {
                    String onItemSelected$lambda$12;
                    int i2 = i;
                    long j2 = j;
                    Object obj = this;
                    switch (i2) {
                        case 0:
                            onItemSelected$lambda$12 = PushClickDialogTracker.onItemSelected$lambda$12((PushClickDialogTracker) obj, j2);
                            return onItemSelected$lambda$12;
                        default:
                            R7 r7 = (R7) obj;
                            r7.getClass();
                            new Handler().postDelayed(r7.g, j2);
                            return null;
                    }
                }
            }, 7);
            if (j == -1) {
                DatePickerFragment datePickerFragment = new DatePickerFragment();
                Bundle bundle = this.extras;
                if (bundle == null) {
                    Intrinsics.n("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.n("extras");
                throw null;
            }
            Bundle f = FU.f(bundle2);
            int w = FU.w();
            f.putInt("remind_later_alarm_id", w);
            intent.putExtras(f);
            To1$a.d(to1$a, 0, null, null, new O(this, 11, f), 7);
            intent.setAction("MOE_ACTION_SHOW_NOTIFICATION");
            Bundle extras = intent.getExtras();
            if (extras != null) {
                iH2 ih2 = this.sdkInstance;
                if (ih2 == null) {
                    Intrinsics.n("sdkInstance");
                    throw null;
                }
                storePayload(ih2, extras);
            }
            Context applicationContext = getApplicationContext();
            Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
            ((AlarmManager) FU.v(this, "alarm")).set(0, j, FU.p(applicationContext, w, intent));
            finish();
        } catch (Throwable th) {
            To1$a.d(To1.e, 1, th, null, new vn1(this, 3), 4);
            finish();
        }
    }

    @Override
    public void onTimeDialogCancelled() {
        To1$a.d(To1.e, 0, null, null, new fA3(this, 22), 7);
        finish();
    }

    @Override
    public void onTimeSelected(final int i, final int i2) {
        try {
            To1$a to1$a = To1.e;
            To1$a.d(to1$a, 0, null, null, new Function0() {
                public final Object invoke() {
                    String onTimeSelected$lambda$4;
                    onTimeSelected$lambda$4 = PushClickDialogTracker.onTimeSelected$lambda$4(PushClickDialogTracker.this, i, i2);
                    return onTimeSelected$lambda$4;
                }
            }, 7);
            Calendar calendar = Calendar.getInstance();
            calendar.set(this.year, this.month, this.day, i, i2, 0);
            final long timeInMillis = calendar.getTimeInMillis();
            To1$a.d(to1$a, 0, null, null, new Function0() {
                public final Object invoke() {
                    String onTimeSelected$lambda$5;
                    onTimeSelected$lambda$5 = PushClickDialogTracker.onTimeSelected$lambda$5(PushClickDialogTracker.this, timeInMillis);
                    return onTimeSelected$lambda$5;
                }
            }, 7);
            Intent intent = new Intent((Context) this, (Class<?>) MoEPushReceiver.class);
            Bundle bundle = this.extras;
            if (bundle == null) {
                Intrinsics.n("extras");
                throw null;
            }
            Bundle f = FU.f(bundle);
            f.remove("moe_action_id");
            f.remove("moe_action");
            To1$a.d(to1$a, 0, null, null, new vL0(this, 13, f), 7);
            int w = FU.w();
            f.putInt("remind_later_alarm_id", w);
            intent.putExtras(f);
            intent.setAction("MOE_ACTION_SHOW_NOTIFICATION");
            Bundle extras = getIntent().getExtras();
            if (extras != null) {
                iH2 ih2 = this.sdkInstance;
                if (ih2 == null) {
                    Intrinsics.n("sdkInstance");
                    throw null;
                }
                storePayload(ih2, extras);
            }
            Context applicationContext = getApplicationContext();
            Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
            ((AlarmManager) FU.v(this, "alarm")).set(0, timeInMillis, FU.p(applicationContext, w, intent));
            finish();
        } catch (Throwable th) {
            To1$a.d(To1.e, 1, th, null, new QX1(this, 27), 4);
            finish();
        }
    }
}