导航菜单

页面标题

页面副标题

Chaupal v3.2 - CustomTabActivity.java 源代码

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

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


package com.facebook;

import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.f;
import org.jetbrains.annotations.NotNull;

@Metadata
public final class CustomTabActivity extends Activity {

    @NotNull
    public static final a f9203c = new a(null);

    @NotNull
    public static final String f9204d = Intrinsics.n(CustomTabActivity.class.getSimpleName(), ".action_customTabRedirect");

    @NotNull
    public static final String f9205e = Intrinsics.n(CustomTabActivity.class.getSimpleName(), ".action_destroy");

    private BroadcastReceiver f9206a;

    @Metadata
    public static final class a {
        private a() {
        }

        public a(f fVar) {
            this();
        }
    }

    @Metadata
    public static final class b extends BroadcastReceiver {
        b() {
        }

        @Override
        public void onReceive(@NotNull Context context, @NotNull Intent intent) {
            Intrinsics.checkNotNullParameter(context, "context");
            Intrinsics.checkNotNullParameter(intent, "intent");
            CustomTabActivity.this.finish();
        }
    }

    @Override
    protected void onActivityResult(int i7, int i8, Intent intent) {
        super.onActivityResult(i7, i8, intent);
        if (i8 == 0) {
            Intent intent2 = new Intent(f9204d);
            intent2.putExtra(CustomTabMainActivity.f9212h, getIntent().getDataString());
            n0.a.b(this).d(intent2);
            b bVar = new b();
            n0.a.b(this).c(bVar, new IntentFilter(f9205e));
            this.f9206a = bVar;
        }
    }

    @Override
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        Intent intent = new Intent(this, (Class<?>) CustomTabMainActivity.class);
        intent.setAction(f9204d);
        intent.putExtra(CustomTabMainActivity.f9212h, getIntent().getDataString());
        intent.addFlags(603979776);
        startActivityForResult(intent, 2);
    }

    @Override
    protected void onDestroy() {
        BroadcastReceiver broadcastReceiver = this.f9206a;
        if (broadcastReceiver != null) {
            n0.a.b(this).e(broadcastReceiver);
        }
        super.onDestroy();
    }
}