导航菜单

页面标题

页面副标题

Chaupal v3.2 - DeepLinkActivity.java 源代码

正在查看: Chaupal v3.2 应用的 DeepLinkActivity.java JAVA 源代码文件

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


package com.yupptv.ott;

import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import io.branch.referral.Branch;
import org.json.JSONException;
import org.json.JSONObject;

public class DeepLinkActivity extends androidx.appcompat.app.e {
    private void V(Intent intent) {
        OTTApplication.f0 = true;
        intent.setClass(this, SplashScreenActivity.class);
        intent.setFlags(268468224);
        startActivity(intent);
        finish();
    }

    public static void W(JSONObject jSONObject, zd.b bVar) {
        if (bVar != null) {
            hd.h.b("BranchSDK_Tester", bVar.a());
        } else if (jSONObject != null) {
            hd.h.c("BranchSDK_Tester", jSONObject.toString());
        }
    }

    public void X(JSONObject jSONObject, zd.b bVar) {
        if (bVar != null) {
            hd.h.a("BranchSDK_Tester", "branch init failed. Caused by -" + bVar.a());
            V(getIntent());
            return;
        }
        hd.h.a("BranchSDK_Tester", "branch init complete!");
        if (jSONObject == null) {
            V(getIntent());
            return;
        }
        hd.h.a("BranchSDK_Tester", jSONObject.toString());
        Intent intent = getIntent();
        try {
            if (jSONObject.has("+clicked_branch_link") && jSONObject.getBoolean("+clicked_branch_link")) {
                intent.setData(Uri.parse(jSONObject.getString("$canonical_url")));
                V(intent);
                hd.h.a("BranchSDK_Tester", "url" + jSONObject.getString("$canonical_url"));
            } else {
                intent.setData(Uri.parse(jSONObject.getString("+non_branch_link")));
                V(intent);
                hd.h.a("BranchSDK_Tester", "url" + jSONObject.getString("+non_branch_link"));
            }
        } catch (JSONException unused) {
            V(new Intent((Context) this, (Class<?>) SplashScreenActivity.class));
        }
    }

    public void Y() {
        setRequestedOrientation(1);
    }

    protected void onCreate(Bundle bundle) {
        super/*androidx.fragment.app.h*/.onCreate(bundle);
        setContentView(2131624053);
        Y();
    }

    protected void onNewIntent(Intent intent) {
        super/*androidx.activity.ComponentActivity*/.onNewIntent(intent);
        if (a.l) {
            Branch.j0(this).e(new Branch.e() {
                public final void a(JSONObject jSONObject, zd.b bVar) {
                    DeepLinkActivity.W(jSONObject, bVar);
                }
            }).d();
        }
        V(intent);
    }

    protected void onResume() {
        super/*androidx.fragment.app.h*/.onResume();
        Y();
    }

    protected void onStart() {
        super.onStart();
        if (!a.l) {
            V(getIntent());
            return;
        }
        try {
            if (Branch.j0(this) != null) {
                Branch.j0(this).e(new Branch.e() {
                    public final void a(JSONObject jSONObject, zd.b bVar) {
                        DeepLinkActivity.this.X(jSONObject, bVar);
                    }
                }).f(getIntent().getData()).b();
            }
        } catch (Exception unused) {
            V(getIntent());
        }
    }
}