正在查看: CityMall v1.42.1 应用的 CustomTabMainActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CityMall v1.42.1 应用的 CustomTabMainActivity.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.net.Uri;
import android.os.Bundle;
import com.facebook.internal.C0849d;
import com.facebook.internal.Utility;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
@Metadata
public final class CustomTabMainActivity extends Activity {
public static final a f13905c = new a(null);
public static final String f13906d = CustomTabMainActivity.class.getSimpleName() + ".extra_action";
public static final String f13907e = CustomTabMainActivity.class.getSimpleName() + ".extra_params";
public static final String f13908f = CustomTabMainActivity.class.getSimpleName() + ".extra_chromePackage";
public static final String f13909g = CustomTabMainActivity.class.getSimpleName() + ".extra_url";
public static final String f13910h = CustomTabMainActivity.class.getSimpleName() + ".extra_targetApp";
public static final String f13911i = CustomTabMainActivity.class.getSimpleName() + ".action_refresh";
public static final String f13912j = CustomTabMainActivity.class.getSimpleName() + ".no_activity_exception";
private boolean f13913a = true;
private BroadcastReceiver f13914b;
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final Bundle b(String str) {
Uri parse = Uri.parse(str);
Bundle q02 = Utility.q0(parse.getQuery());
q02.putAll(Utility.q0(parse.getFragment()));
return q02;
}
private a() {
}
}
public class b {
public static final int[] f13915a;
static {
int[] iArr = new int[com.facebook.login.y.values().length];
try {
iArr[com.facebook.login.y.INSTAGRAM.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
f13915a = iArr;
}
}
public static final class c extends BroadcastReceiver {
c() {
}
@Override
public void onReceive(Context context, Intent intent) {
kotlin.jvm.internal.j.i(context, "context");
kotlin.jvm.internal.j.i(intent, "intent");
Intent intent2 = new Intent(CustomTabMainActivity.this, (Class<?>) CustomTabMainActivity.class);
intent2.setAction(CustomTabMainActivity.f13911i);
String str = CustomTabMainActivity.f13909g;
intent2.putExtra(str, intent.getStringExtra(str));
intent2.addFlags(603979776);
CustomTabMainActivity.this.startActivity(intent2);
}
}
private final void a(int i5, Intent intent) {
BroadcastReceiver broadcastReceiver = this.f13914b;
if (broadcastReceiver != null) {
O.a.b(this).e(broadcastReceiver);
}
if (intent != null) {
String stringExtra = intent.getStringExtra(f13909g);
Bundle b5 = stringExtra != null ? f13905c.b(stringExtra) : new Bundle();
Intent intent2 = getIntent();
kotlin.jvm.internal.j.h(intent2, "intent");
Intent n4 = com.facebook.internal.E.n(intent2, b5, null);
if (n4 != null) {
intent = n4;
}
setResult(i5, intent);
} else {
Intent intent3 = getIntent();
kotlin.jvm.internal.j.h(intent3, "intent");
setResult(i5, com.facebook.internal.E.n(intent3, null, null));
}
finish();
}
@Override
protected void onCreate(Bundle bundle) {
String stringExtra;
super.onCreate(bundle);
String str = CustomTabActivity.f13901c;
if (kotlin.jvm.internal.j.d(str, getIntent().getAction())) {
setResult(0);
finish();
return;
}
if (bundle != null || (stringExtra = getIntent().getStringExtra(f13906d)) == null) {
return;
}
Bundle bundleExtra = getIntent().getBundleExtra(f13907e);
boolean a5 = (b.f13915a[com.facebook.login.y.f16534b.a(getIntent().getStringExtra(f13910h)).ordinal()] == 1 ? new com.facebook.internal.x(stringExtra, bundleExtra) : new C0849d(stringExtra, bundleExtra)).a(this, getIntent().getStringExtra(f13908f));
this.f13913a = false;
if (!a5) {
setResult(0, getIntent().putExtra(f13912j, true));
finish();
} else {
c cVar = new c();
this.f13914b = cVar;
O.a.b(this).c(cVar, new IntentFilter(str));
}
}
@Override
protected void onNewIntent(Intent intent) {
kotlin.jvm.internal.j.i(intent, "intent");
super.onNewIntent(intent);
if (kotlin.jvm.internal.j.d(f13911i, intent.getAction())) {
O.a.b(this).d(new Intent(CustomTabActivity.f13902d));
a(-1, intent);
} else if (kotlin.jvm.internal.j.d(CustomTabActivity.f13901c, intent.getAction())) {
a(-1, intent);
}
}
@Override
protected void onResume() {
super.onResume();
if (this.f13913a) {
a(0, null);
}
this.f13913a = true;
}
}