导航菜单

页面标题

页面副标题

Pulsar v1.0.0 - MTCommonActivity.java 源代码

正在查看: Pulsar v1.0.0 应用的 MTCommonActivity.java JAVA 源代码文件

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


package com.engagelab.privates.common.component;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import com.facebook.react.uimanager.events.PointerEventHelper;
import d2.d;
import d2.g;
import e2.a;
import g2.f;
import org.json.JSONObject;
import t1.a;

public class MTCommonActivity extends Activity {

    private static final String f14847a = "MTCommonActivity";

    private void a(Intent intent) {
        try {
        } finally {
            try {
            } finally {
            }
        }
        if (intent == null) {
            a.e(f14847a, "processIntent intent is null ");
            return;
        }
        Bundle extras = intent.getExtras();
        String uri = intent.getData() != null ? intent.getData().toString() : PointerEventHelper.POINTER_TYPE_UNKNOWN;
        if (TextUtils.isEmpty(uri) && intent.getExtras() != null) {
            uri = extras.getString(extras.containsKey("JMessageExtra") ? "JMessageExtra" : "MTMessageExtra");
        }
        if (TextUtils.isEmpty(uri)) {
            int parseInt = Integer.parseInt(intent.getAction());
            if (3003 == parseInt && ((g) extras.getParcelable(a.e.f19278a)) == null) {
                return;
            }
            d.init(getApplicationContext());
            i1.a.sendMessageToMainProcess(getApplicationContext(), parseInt, extras);
        } else {
            b(uri);
        }
    }

    private void b(String str) {
        String optString;
        String optString2;
        String optString3;
        String str2;
        Bundle bundle;
        try {
            JSONObject jSONObject = new JSONObject(str);
            t1.a.d(f14847a, "platformMessageJson:" + t1.a.toLogString(jSONObject));
            String messageId = f.getMessageId(jSONObject);
            byte optInt = (byte) jSONObject.optInt("rom_type");
            if (jSONObject.has("m_content")) {
                JSONObject optJSONObject = jSONObject.optJSONObject("m_content");
                str2 = optJSONObject.optString("n_title");
                optString = optJSONObject.optString("n_content");
                optString2 = optJSONObject.optString("n_intent_uri");
                optString3 = optJSONObject.optString("n_intent_ssl");
                bundle = f.convertJsonToBundle(optJSONObject.optJSONObject("n_extras"));
            } else {
                String optString4 = jSONObject.optString("n_title");
                optString = jSONObject.optString("n_content");
                optString2 = jSONObject.optString("n_intent_uri");
                optString3 = jSONObject.optString("n_intent_ssl");
                Bundle convertJsonToBundle = f.convertJsonToBundle(jSONObject.optJSONObject("n_extras"));
                str2 = optString4;
                bundle = convertJsonToBundle;
            }
            g intentSsl = new g().setMessageId(messageId).setPlatform(optInt).setTitle(str2).setContent(optString).setExtras(bundle).setIntentUri(optString2).setIntentSsl(optString3);
            Bundle bundle2 = new Bundle();
            bundle2.putParcelable(a.e.f19278a, intentSsl);
            d.init(getApplicationContext());
            i1.a.sendMessageToMainProcess(getApplicationContext(), 3003, bundle2);
        } catch (Throwable th) {
            t1.a.w(f14847a, "processPlatformMessage failed " + th.getMessage());
        }
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        a(getIntent());
    }

    @Override
    public void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
        a(intent);
    }
}