导航菜单

页面标题

页面副标题

Mitra Bukalapak v2.55.0 - WholesaleNotificationClickedHandler.java 源代码

正在查看: Mitra Bukalapak v2.55.0 应用的 WholesaleNotificationClickedHandler.java JAVA 源代码文件

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


package com.bukalapak.mitra.notification;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.ComponentCallbacks2;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import androidx.core.app.NotificationManagerCompat;
import com.bukalapak.android.lib.api4.tungku.data.SingleKycIdentity;
import com.bukalapak.mitra.lib.schema.AgenLiteOpenedSession;
import defpackage.bx;
import defpackage.dl;
import defpackage.hq5;
import defpackage.ic8;
import defpackage.ke;
import defpackage.ku8;
import defpackage.n41;
import defpackage.nq8;
import defpackage.p64;
import defpackage.uja;
import defpackage.wp1;
import java.io.Serializable;
import kotlin.Metadata;

@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0005\u0018\u00002\u00020\u00012\u00020\u0002B\u0007¢\u0006\u0004\b\u000f\u0010\u0010J\u0018\u0010\b\u001a\u00020\u00072\u0006\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0006\u001a\u00020\u0005H\u0016J\u0018\u0010\t\u001a\u00020\u00072\u0006\u0010\u0004\u001a\u00020\u00032\u0006\u0010\u0006\u001a\u00020\u0005H\u0016J\u001a\u0010\u000e\u001a\u00020\u00072\u0006\u0010\u000b\u001a\u00020\n2\b\u0010\r\u001a\u0004\u0018\u00010\fH\u0007¨\u0006\u0011"}, d2 = {"Lcom/bukalapak/mitra/notification/WholesaleNotificationClickedHandler;", "Landroid/content/BroadcastReceiver;", "Lhq5;", "Landroid/content/Context;", "context", "Landroid/content/Intent;", "intent", "Llm9;", "onReceive", SingleKycIdentity.A, SingleKycIdentity.EMPTY, "notificationId", SingleKycIdentity.EMPTY, "groupKey", SingleKycIdentity.B, "<init>", "()V", "base_app_release"}, k = 1, mv = {1, 8, 0})
public final class WholesaleNotificationClickedHandler extends BroadcastReceiver implements hq5 {
    @Override
    public void a(Context context, Intent intent) {
        p64.h(context, "context");
        p64.h(intent, "intent");
        onReceive(context, intent);
    }

    public final void b(int i, String str) {
        n41 n41Var = n41.a;
        NotificationManagerCompat.from(n41Var.g()).cancel(i);
        if (ke.a.g()) {
            return;
        }
        n41Var.g().sendBroadcast(new Intent("android.intent.action.CLOSE_SYSTEM_DIALOGS"));
    }

    @Override
    public void onReceive(Context context, Intent intent) {
        cz6 cz6Var;
        String str;
        boolean y;
        boolean y2;
        p64.h(context, "context");
        p64.h(intent, "intent");
        nq8.a.u();
        Bundle extras = intent.getExtras();
        ke keVar = ke.a;
        String str2 = null;
        if (keVar.m()) {
            if (extras != null) {
                cz6Var = (cz6) mka.a(extras, "notification_data", cz6.class);
            }
            cz6Var = null;
        } else {
            Serializable serializable = extras != null ? extras.getSerializable("notification_data") : null;
            if (serializable instanceof cz6) {
                cz6Var = (cz6) serializable;
            }
            cz6Var = null;
        }
        Boolean valueOf = extras != null ? Boolean.valueOf(extras.getBoolean("button_clicked")) : null;
        String string = extras != null ? extras.getString("button_action") : null;
        boolean z = extras != null ? extras.getBoolean("is_root_activity") : false;
        Bundle a = is5.a.a(cz6Var != null ? cz6Var.j() : 0L, cz6Var != null ? cz6Var.n() : null, "push_notification");
        dl dlVar = dl.a;
        if (string == null) {
            str = cz6Var != null ? cz6Var.q() : null;
            if (str == null) {
                str = SingleKycIdentity.EMPTY;
            }
        } else {
            str = string;
        }
        dl.d(dlVar, str, AgenLiteOpenedSession.PUSH_NOTIF, cz6Var != null ? cz6Var.q() : null, null, 8, null);
        if (cz6Var != null) {
            ComponentCallbacks2 a2 = uja.INSTANCE.a();
            p64.f(a2, "null cannot be cast to non-null type com.bukalapak.mitra.app.BaseApplication");
            bx bxVar = (bx) a2;
            bxVar.b();
            Activity currentActivity = bxVar.a().getCurrentActivity();
            if (p64.c(valueOf, Boolean.TRUE) && string != null) {
                y2 = ku8.y(string);
                if (!y2) {
                    b(cz6Var.j(), cz6Var.f());
                    if (keVar.g()) {
                        wp1 h = ic8.a.h();
                        if (currentActivity != null) {
                            context = currentActivity;
                        }
                        h.d(context, z, string, a);
                    } else {
                        wp1 h2 = ic8.a.h();
                        if (currentActivity != null) {
                            context = currentActivity;
                        }
                        h2.a(context, string, a);
                    }
                    fs5.a.i(cz6Var, string, "clicked");
                    return;
                }
            }
            String q = cz6Var.q();
            if (q != null) {
                y = ku8.y(q);
                if (!y) {
                    str2 = q;
                }
            }
            if (str2 != null) {
                if (keVar.g()) {
                    wp1 h3 = ic8.a.h();
                    if (currentActivity != null) {
                        context = currentActivity;
                    }
                    h3.d(context, z, str2, a);
                } else {
                    wp1 h4 = ic8.a.h();
                    if (currentActivity != null) {
                        context = currentActivity;
                    }
                    h4.a(context, str2, a);
                }
                fs5.a.i(cz6Var, str2, "clicked");
            }
        }
    }
}