导航菜单

页面标题

页面副标题

Perplexity v2.48.1 - TrampolineActivity.java 源代码

正在查看: Perplexity v2.48.1 应用的 TrampolineActivity.java JAVA 源代码文件

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


package ai.perplexity.app.android.ui.common;

import ai.perplexity.app.android.ui.main.MainActivity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import androidx.activity.ComponentActivity;
import kotlin.Metadata;
import kotlin.jvm.internal.SourceDebugExtension;

@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00020\u0001B\u0007¢\u0006\u0004\b\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lai/perplexity/app/android/ui/common/TrampolineActivity;", "Landroidx/activity/ComponentActivity;", "<init>", "()V", "PerplexityAndroid_v260454(2.48.1)_20250618_122841_release"}, k = 1, mv = {2, 1, 0}, xi = 48)
@SourceDebugExtension
public final class TrampolineActivity extends ComponentActivity {
    @Override
    public final void onCreate(Bundle bundle) {
        String action;
        Uri data;
        super.onCreate(bundle);
        Intent intent = new Intent(this, (Class<?>) MainActivity.class);
        Intent intent2 = getIntent();
        if (intent2 != null && (data = intent2.getData()) != null) {
            intent.setData(data);
        }
        Intent intent3 = getIntent();
        if (intent3 != null && (action = intent3.getAction()) != null) {
            if (!action.equals("android.intent.action.PROCESS_TEXT")) {
                action = null;
            }
            if (action != null) {
                intent.setAction("android.intent.action.PROCESS_TEXT");
                Intent intent4 = getIntent();
                intent.putExtra("android.intent.extra.PROCESS_TEXT", intent4 != null ? intent4.getCharSequenceExtra("android.intent.extra.PROCESS_TEXT") : null);
            }
        }
        startActivity(intent);
        overridePendingTransition(0, 0);
        finish();
        overridePendingTransition(0, 0);
    }
}