导航菜单

页面标题

页面副标题

CityMall v1.42.1 - CustomTabActivity.java 源代码

正在查看: CityMall v1.42.1 应用的 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.DefaultConstructorMarker;
import kotlin.jvm.internal.SourceDebugExtension;

@Metadata
@SourceDebugExtension
public final class CustomTabActivity extends Activity {

    public static final a f13900b = new a(null);

    public static final String f13901c = CustomTabActivity.class.getSimpleName() + ".action_customTabRedirect";

    public static final String f13902d = CustomTabActivity.class.getSimpleName() + ".action_destroy";

    private BroadcastReceiver f13903a;

    public static final class a {
        public a(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        private a() {
        }
    }

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

        @Override
        public void onReceive(Context context, Intent intent) {
            kotlin.jvm.internal.j.i(context, "context");
            kotlin.jvm.internal.j.i(intent, "intent");
            CustomTabActivity.this.finish();
        }
    }

    @Override
    protected void onActivityResult(int i5, int i6, Intent intent) {
        super.onActivityResult(i5, i6, intent);
        if (i6 == 0) {
            Intent intent2 = new Intent(f13901c);
            intent2.putExtra(CustomTabMainActivity.f13909g, getIntent().getDataString());
            O.a.b(this).d(intent2);
            b bVar = new b();
            O.a.b(this).c(bVar, new IntentFilter(f13902d));
            this.f13903a = bVar;
        }
    }

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

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