导航菜单

页面标题

页面副标题

MedEd v5.3.6 - MoEPushWorker.java 源代码

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

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


package com.moengage.pushbase.internal;

import android.app.IntentService;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.constraintlayout.widget.WO.IDVO;
import defpackage.KX1;
import defpackage.MV2;
import defpackage.SC1;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

@Metadata
public final class MoEPushWorker extends IntentService {
    private final String tag;

    public MoEPushWorker() {
        super("RegistrationIntentService");
        this.tag = "PushBase_9.1.1_MoEPushWorker";
    }

    public static final String dismissNotification$lambda$2(MoEPushWorker moEPushWorker) {
        return qe.a(new StringBuilder(), moEPushWorker.tag, " dismissNotification() : ");
    }

    private final void handleNotificationCleared(Bundle bundle, iH2 ih2) {
        To1.a(ih2.d, 0, (Throwable) null, (Function0) null, new SC1(this, 0), 7);
        Context applicationContext = getApplicationContext();
        Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
        do3.f(applicationContext, ih2, bundle, false);
        bundle.putString("action_type", "swipe");
        ll2.a.getClass();
        KX1 b = ll2.b(ih2);
        Context applicationContext2 = getApplicationContext();
        Intrinsics.checkNotNullExpressionValue(applicationContext2, "getApplicationContext(...)");
        b.h(applicationContext2, bundle);
        gB2 gb2 = hB2.a;
        Context applicationContext3 = getApplicationContext();
        Intrinsics.checkNotNullExpressionValue(applicationContext3, "getApplicationContext(...)");
        hB2.c(applicationContext3, bundle, ih2);
    }

    public static final String handleNotificationCleared$lambda$3(MoEPushWorker moEPushWorker) {
        return qe.a(new StringBuilder(), moEPushWorker.tag, " handleNotificationCleared() : ");
    }

    public static final String onHandleIntent$lambda$0(MoEPushWorker moEPushWorker, String str) {
        return GP.d(new StringBuilder(), moEPushWorker.tag, " onHandleIntent() : Action: ", str);
    }

    public static final String onHandleIntent$lambda$1(MoEPushWorker moEPushWorker) {
        return qe.a(new StringBuilder(), moEPushWorker.tag, " onHandleIntent() : ");
    }

    @Override
    public void onHandleIntent(Intent intent) {
        if (intent == null) {
            return;
        }
        try {
            Bundle extras = intent.getExtras();
            if (extras == null || extras.isEmpty()) {
                return;
            }
            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 {
                    }
                }
            }
            iH2 c = a.c(extras);
            if (c == null) {
                return;
            }
            FU.K(c.d, this.tag, extras);
            String action = intent.getAction();
            if (action == null) {
                return;
            }
            To1.a(c.d, 0, (Throwable) null, (Function0) null, new e03(this, 8, action), 7);
            if (Intrinsics.b(action, "ACTION_NOTIFICATION_CLEARED")) {
                handleNotificationCleared(extras, c);
            } else if (Intrinsics.b(action, "ACTION_NOTIFICATION_CLOSE_CLICK")) {
                dismissNotification(extras, c);
            }
        } catch (Throwable th) {
            a.d(To1.e, 1, th, (sl2) null, new sl2(this, 1), 4);
        }
    }

    private final void dismissNotification(Bundle bundle, iH2 ih2) throws JSONException {
        To1.a(ih2.d, 0, (Throwable) null, (Function0) null, new QX1(this, 29), 7);
        Context applicationContext = getApplicationContext();
        Intrinsics.checkNotNullExpressionValue(applicationContext, "getApplicationContext(...)");
        do3.f(applicationContext, ih2, bundle, false);
        JSONArray g = do3.g(bundle);
        if (g.length() == 0) {
            return;
        }
        JSONObject jSONObject = g.getJSONObject(0);
        Intrinsics.checkNotNullExpressionValue(jSONObject, "getJSONObject(...)");
        Intrinsics.checkNotNullParameter(jSONObject, "actionJson");
        String string = jSONObject.getString("name");
        Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
        L4 l4 = new L4(string, jSONObject);
        String string2 = jSONObject.getString("value");
        Intrinsics.checkNotNullExpressionValue(string2, "getString(...)");
        Intrinsics.checkNotNullParameter(l4, "action");
        Intrinsics.checkNotNullParameter(string2, "notificationTag");
        Intrinsics.checkNotNullParameter(l4, "action");
        Intrinsics.checkNotNullParameter(string, "actionType");
        Intrinsics.checkNotNullParameter(jSONObject, "payload");
        Context applicationContext2 = getApplicationContext();
        Intrinsics.checkNotNullExpressionValue(applicationContext2, "getApplicationContext(...)");
        do3.n(applicationContext2, string2);
        Context applicationContext3 = getApplicationContext();
        Intrinsics.checkNotNullExpressionValue(applicationContext3, "getApplicationContext(...)");
        Intrinsics.checkNotNullParameter(applicationContext3, "context");
        Intrinsics.checkNotNullParameter(ih2, "sdkInstance");
        Intrinsics.checkNotNullParameter(bundle, "payload");
        try {
            Yj2 yj2 = new Yj2();
            yj2.a(bundle.getString("gcm_campaign_id"), "gcm_campaign_id");
            MV2.a(bundle, yj2, ih2);
            String str = ih2.a.a;
            Intrinsics.checkNotNullParameter(applicationContext3, "context");
            Intrinsics.checkNotNullParameter("MOE_NOTIFICATION_DISMISSED", "eventName");
            Intrinsics.checkNotNullParameter(yj2, IDVO.ZEUMU);
            Intrinsics.checkNotNullParameter(str, "appId");
            iH2 c = mH2.c(str);
            if (c != null) {
                c.f.d(new T41("TRACK_EVENT", false, new IC1(applicationContext3, yj2, c, "MOE_NOTIFICATION_DISMISSED")));
            }
        } catch (Throwable th) {
            To1.a(ih2.d, 1, th, (Function0) null, new WB(12), 4);
        }
        gB2 gb2 = hB2.a;
        Context applicationContext4 = getApplicationContext();
        Intrinsics.checkNotNullExpressionValue(applicationContext4, "getApplicationContext(...)");
        hB2.c(applicationContext4, bundle, ih2);
        bundle.putString("action_type", "dismiss_button");
        ll2.a.getClass();
        KX1 b = ll2.b(ih2);
        Context applicationContext5 = getApplicationContext();
        Intrinsics.checkNotNullExpressionValue(applicationContext5, "getApplicationContext(...)");
        b.h(applicationContext5, bundle);
    }
}