导航菜单

页面标题

页面副标题

Moneyman v2.316.0.0 - ExponeaPushTrackingActivityOlderApi.java 源代码

正在查看: Moneyman v2.316.0.0 应用的 ExponeaPushTrackingActivityOlderApi.java JAVA 源代码文件

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


package com.exponea.sdk.services;

import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import com.exponea.sdk.ExponeaExtras;
import com.exponea.sdk.models.NotificationAction;
import com.exponea.sdk.services.MessagingUtils;
import com.exponea.sdk.util.Logger;
import java.io.Serializable;
import kotlin.Metadata;
import kotlin.jvm.internal.i;

@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0000\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u001f\u0010\t\u001a\u00020\b2\u0006\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u0006H\u0016¢\u0006\u0004\b\t\u0010\n¨\u0006\u000b"}, d2 = {"Lcom/exponea/sdk/services/ExponeaPushTrackingActivityOlderApi;", "Lcom/exponea/sdk/services/ExponeaPushTrackingActivity;", "<init>", "()V", "Landroid/content/Context;", "context", "Landroid/content/Intent;", "intent", "LVf/A;", "processPushClick", "(Landroid/content/Context;Landroid/content/Intent;)V", "sdk_release"}, k = 1, mv = {1, 9, 0}, xi = 48)
public final class ExponeaPushTrackingActivityOlderApi extends ExponeaPushTrackingActivity {
    @Override
    public void processPushClick(Context context, Intent intent) {
        ComponentName component;
        String className;
        i.g(context, "context");
        i.g(intent, "intent");
        super.processPushClick(context, intent);
        if (i.b(intent.getAction(), ExponeaExtras.ACTION_URL_CLICKED) || i.b(intent.getAction(), ExponeaExtras.ACTION_DEEPLINK_CLICKED)) {
            Intent intent2 = new Intent("android.intent.action.VIEW");
            intent2.addFlags(270532608);
            Serializable serializableExtra = intent.getSerializableExtra(ExponeaExtras.EXTRA_ACTION_INFO);
            i.e(serializableExtra, "null cannot be cast to non-null type com.exponea.sdk.models.NotificationAction");
            String url = ((NotificationAction) serializableExtra).getUrl();
            if (url != null && url.length() != 0) {
                intent2.setData(Uri.parse(url));
            }
            finish();
            Logger.INSTANCE.d(this, "Opening VIEW intent for url: " + url);
            startActivity(intent2);
            return;
        }
        if (i.b(intent.getAction(), ExponeaExtras.ACTION_CLICKED)) {
            MessagingUtils.Companion companion = MessagingUtils.INSTANCE;
            Context applicationContext = context.getApplicationContext();
            i.f(applicationContext, "getApplicationContext(...)");
            Intent intentAppOpen = companion.getIntentAppOpen(applicationContext);
            Class<?> cls = (intentAppOpen == null || (component = intentAppOpen.getComponent()) == null || (className = component.getClassName()) == null) ? null : Class.forName(className);
            if (cls == null) {
                Logger.INSTANCE.e(this, "Application launch intent has not been found, check your manifest");
                return;
            }
            Intent intent3 = new Intent(context, cls);
            intent3.addFlags(270532608);
            finish();
            Logger.INSTANCE.d(this, "Opening launch intent for app: ".concat(cls.getName()));
            startActivity(intent3);
        }
    }
}