导航菜单

页面标题

页面副标题

Mint v5.7.3 - ChromeCustomTabForDeeplink.java 源代码

正在查看: Mint v5.7.3 应用的 ChromeCustomTabForDeeplink.java JAVA 源代码文件

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


package com.htmedia.mint.ui.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import com.htmedia.mint.utils.q;
import com.thoughtbot.expandablerecyclerview.BuildConfig;

public class ChromeCustomTabForDeeplink extends a {
    boolean a = false;

    private void goBack() {
        if (getIntent().getExtras() != null && getIntent().getExtras().containsKey("isNotification") && getIntent().getExtras().getInt("isNotification") > q.m.SPLASH.ordinal()) {
            Intent intent = new Intent((Context) this, (Class<?>) HomeActivity.class);
            intent.addFlags(67108864);
            intent.addFlags(32768);
            startActivity(intent);
        }
        finish();
    }

    public void onBackPressed() {
        goBack();
    }

    protected void onCreate(Bundle bundle) {
        super/*androidx.fragment.app.FragmentActivity*/.onCreate(bundle);
        setContentView(2131624028);
        Bundle extras = (getIntent() == null || getIntent().getExtras() == null) ? null : getIntent().getExtras();
        String string = (extras == null || !extras.containsKey("url")) ? BuildConfig.FLAVOR : extras.getString("url");
        if (TextUtils.isEmpty(string)) {
            goBack();
        } else {
            com.htmedia.mint.utils.f0.z2(this, com.htmedia.mint.utils.f0.v(string, this));
        }
    }

    protected void onStart() {
        super.onStart();
        if (this.a) {
            this.a = false;
            goBack();
        }
    }

    protected void onStop() {
        super.onStop();
        this.a = true;
    }
}