导航菜单

页面标题

页面副标题

Bhakti v5.4.0 - MoEPushReceiver.java 源代码

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

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


package com.moengage.pushbase.internal;

import Ai.p;
import Yf.e;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt;
import mf.h;
import qg.e0;
import uh.k;
import uh.l;
import uh.w;
import yd.c;

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

    private final void handleNotification(Context context, Bundle bundle) {
        w wVar;
        c cVar = h.c;
        p.P(0, (Throwable) null, (e0) null, new k(this, 0), 7);
        w wVar2 = w.b;
        if (wVar2 == null) {
            synchronized (w.class) {
                try {
                    wVar = w.b;
                    if (wVar == null) {
                        wVar = new w(0);
                    }
                    w.b = wVar;
                } catch (Throwable th2) {
                    throw th2;
                }
            }
            wVar2 = wVar;
        }
        wVar2.K(context, bundle);
    }

    private final void handleNotificationDismiss(Context context, Bundle bundle) {
        String string = bundle.getString("gcm_campaign_id", "");
        Intrinsics.checkNotNullExpressionValue(string, "getString(...)");
        String G9 = A8.w.G(string);
        c cVar = h.c;
        p.P(0, (Throwable) null, (e0) null, new l(this, G9, 0), 7);
        if (StringsKt.H(G9)) {
            return;
        }
        A8.w.Y(context, G9);
        p.P(0, (Throwable) null, (e0) null, new l(this, G9, 1), 7);
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        int i10 = 2;
        int i11 = 1;
        Intrinsics.checkNotNullParameter(context, "context");
        Intrinsics.checkNotNullParameter(intent, "intent");
        try {
            c cVar = h.c;
            p.P(0, (Throwable) null, (e0) null, new k(this, i11), 7);
            Bundle extras = intent.getExtras();
            if (extras == null) {
                return;
            }
            String action = intent.getAction();
            p.P(0, (Throwable) null, (e0) null, new l(this, action, i10), 7);
            if (action != null && !StringsKt.H(action)) {
                e.T(extras, this.tag);
                if (action.equals("MOE_ACTION_NOTIFICATION_AUTO_DISMISS")) {
                    handleNotificationDismiss(context, extras);
                } else if (action.equals("MOE_ACTION_SHOW_NOTIFICATION")) {
                    handleNotification(context, extras);
                } else {
                    p.P(0, (Throwable) null, (e0) null, new k(this, i10), 7);
                }
            }
        } catch (Exception e4) {
            c cVar2 = h.c;
            p.P(1, e4, (e0) null, new k(this, 3), 4);
        }
    }
}