导航菜单

页面标题

页面副标题

MedEd v5.3.6 - MoEPushReceiver.java 源代码

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

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


package com.moengage.pushbase.internal;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import defpackage.C0143am;
import defpackage.GP;
import defpackage.To1$a;
import defpackage.do3;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.j;

@Metadata
public final class MoEPushReceiver extends BroadcastReceiver {
    private final String tag = "PushBase_9.1.1_MoEPushReceiver";

    private final void handleNotification(Context context, Bundle bundle) {
        a aVar;
        To1$a.d(To1.e, 0, null, null, new OP(this, 1), 7);
        a aVar2 = a.b;
        if (aVar2 == null) {
            synchronized (a.class) {
                try {
                    aVar = a.b;
                    if (aVar == null) {
                        aVar = new a();
                    }
                    a.b = aVar;
                } catch (Throwable th) {
                    throw th;
                }
            }
            aVar2 = aVar;
        }
        aVar2.d(context, bundle);
    }

    public static final String handleNotification$lambda$6(MoEPushReceiver moEPushReceiver) {
        return qe.a(new StringBuilder(), moEPushReceiver.tag, " handleNotification() : ");
    }

    private final void handleNotificationDismiss(Context context, Bundle bundle) {
        String string = bundle.getString("gcm_campaign_id", "");
        Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
        String h = do3.h(string);
        To1$a to1$a = To1.e;
        To1$a.d(to1$a, 0, null, null, new uL0(this, 16, h), 7);
        if (j.E(h)) {
            return;
        }
        do3.n(context, h);
        To1$a.d(to1$a, 0, null, null, new vL0(this, 14, h), 7);
    }

    public static final String handleNotificationDismiss$lambda$4(MoEPushReceiver moEPushReceiver, String str) {
        return GP.d(new StringBuilder(), moEPushReceiver.tag, " handleNotificationDismiss() : Will try to dismiss notification, Notification Tag: ", str);
    }

    public static final String handleNotificationDismiss$lambda$5(MoEPushReceiver moEPushReceiver, String str) {
        return GP.d(new StringBuilder(), moEPushReceiver.tag, " handleNotificationDismiss() : Notification dismissed for Tag: ", str);
    }

    public static final String onReceive$lambda$0(MoEPushReceiver moEPushReceiver) {
        return qe.a(new StringBuilder(), moEPushReceiver.tag, " onReceive() : ");
    }

    public static final String onReceive$lambda$1(MoEPushReceiver moEPushReceiver, String str) {
        return GP.d(new StringBuilder(), moEPushReceiver.tag, " onReceive() : Action: ", str);
    }

    public static final String onReceive$lambda$2(MoEPushReceiver moEPushReceiver) {
        return qe.a(new StringBuilder(), moEPushReceiver.tag, " onReceive() : Not a valid action type.");
    }

    public static final String onReceive$lambda$3(MoEPushReceiver moEPushReceiver) {
        return qe.a(new StringBuilder(), moEPushReceiver.tag, " onReceive() : ");
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        Intrinsics.checkNotNullParameter(context, "context");
        Intrinsics.checkNotNullParameter(intent, "intent");
        try {
            To1$a to1$a = To1.e;
            To1$a.d(to1$a, 0, null, null, new C0143am(this, 25), 7);
            Bundle extras = intent.getExtras();
            if (extras == null) {
                return;
            }
            String action = intent.getAction();
            To1$a.d(to1$a, 0, null, null, new Mh3(this, 6, action), 7);
            if (action != null && !j.E(action)) {
                FU.L(this.tag, extras);
                if (Intrinsics.b(action, "MOE_ACTION_NOTIFICATION_AUTO_DISMISS")) {
                    handleNotificationDismiss(context, extras);
                } else if (Intrinsics.b(action, "MOE_ACTION_SHOW_NOTIFICATION")) {
                    handleNotification(context, extras);
                } else {
                    To1$a.d(to1$a, 0, null, null, new NT(this, 29), 7);
                }
            }
        } catch (Exception e) {
            To1$a.d(To1.e, 1, e, null, new fA3(this, 23), 4);
        }
    }
}