正在查看: Chaupal v3.2 应用的 CustomTabMainActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Chaupal v3.2 应用的 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.login.LoginTargetApp;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.f;
import org.jetbrains.annotations.NotNull;
import q5.b0;
import q5.d;
import q5.h0;
import q5.u;
@Metadata
public final class CustomTabMainActivity extends Activity {
@NotNull
public static final a f9208d = new a(null);
@NotNull
public static final String f9209e = Intrinsics.n(CustomTabMainActivity.class.getSimpleName(), ".extra_action");
@NotNull
public static final String f9210f = Intrinsics.n(CustomTabMainActivity.class.getSimpleName(), ".extra_params");
@NotNull
public static final String f9211g = Intrinsics.n(CustomTabMainActivity.class.getSimpleName(), ".extra_chromePackage");
@NotNull
public static final String f9212h = Intrinsics.n(CustomTabMainActivity.class.getSimpleName(), ".extra_url");
@NotNull
public static final String f9213i = Intrinsics.n(CustomTabMainActivity.class.getSimpleName(), ".extra_targetApp");
@NotNull
public static final String f9214j = Intrinsics.n(CustomTabMainActivity.class.getSimpleName(), ".action_refresh");
@NotNull
public static final String f9215k = Intrinsics.n(CustomTabMainActivity.class.getSimpleName(), ".no_activity_exception");
private boolean f9216a = true;
private BroadcastReceiver f9217c;
@Metadata
public static final class a {
private a() {
}
public a(f fVar) {
this();
}
public final Bundle b(String str) {
Uri parse = Uri.parse(str);
h0 h0Var = h0.f18168a;
Bundle o02 = h0.o0(parse.getQuery());
o02.putAll(h0.o0(parse.getFragment()));
return o02;
}
}
@Metadata
public class b {
public static final int[] f9218a;
static {
int[] iArr = new int[LoginTargetApp.valuesCustom().length];
iArr[LoginTargetApp.INSTAGRAM.ordinal()] = 1;
f9218a = iArr;
}
}
@Metadata
public static final class c extends BroadcastReceiver {
c() {
}
@Override
public void onReceive(@NotNull Context context, @NotNull Intent intent) {
Intrinsics.checkNotNullParameter(context, "context");
Intrinsics.checkNotNullParameter(intent, "intent");
Intent intent2 = new Intent(CustomTabMainActivity.this, (Class<?>) CustomTabMainActivity.class);
intent2.setAction(CustomTabMainActivity.f9214j);
String str = CustomTabMainActivity.f9212h;
intent2.putExtra(str, intent.getStringExtra(str));
intent2.addFlags(603979776);
CustomTabMainActivity.this.startActivity(intent2);
}
}
private final void a(int i7, Intent intent) {
BroadcastReceiver broadcastReceiver = this.f9217c;
if (broadcastReceiver != null) {
n0.a.b(this).e(broadcastReceiver);
}
if (intent != null) {
String stringExtra = intent.getStringExtra(f9212h);
Bundle b7 = stringExtra != null ? f9208d.b(stringExtra) : new Bundle();
b0 b0Var = b0.f18134a;
Intent intent2 = getIntent();
Intrinsics.checkNotNullExpressionValue(intent2, "intent");
Intent m7 = b0.m(intent2, b7, null);
if (m7 != null) {
intent = m7;
}
setResult(i7, intent);
} else {
b0 b0Var2 = b0.f18134a;
Intent intent3 = getIntent();
Intrinsics.checkNotNullExpressionValue(intent3, "intent");
setResult(i7, b0.m(intent3, null, null));
}
finish();
}
@Override
protected void onCreate(Bundle bundle) {
String stringExtra;
super.onCreate(bundle);
String str = CustomTabActivity.f9204d;
if (Intrinsics.c(str, getIntent().getAction())) {
setResult(0);
finish();
return;
}
if (bundle != null || (stringExtra = getIntent().getStringExtra(f9209e)) == null) {
return;
}
Bundle bundleExtra = getIntent().getBundleExtra(f9210f);
boolean a7 = (b.f9218a[LoginTargetApp.Companion.a(getIntent().getStringExtra(f9213i)).ordinal()] == 1 ? new u(stringExtra, bundleExtra) : new d(stringExtra, bundleExtra)).a(this, getIntent().getStringExtra(f9211g));
this.f9216a = false;
if (!a7) {
setResult(0, getIntent().putExtra(f9215k, true));
finish();
} else {
c cVar = new c();
this.f9217c = cVar;
n0.a.b(this).c(cVar, new IntentFilter(str));
}
}
@Override
protected void onNewIntent(@NotNull Intent intent) {
Intrinsics.checkNotNullParameter(intent, "intent");
super.onNewIntent(intent);
if (Intrinsics.c(f9214j, intent.getAction())) {
n0.a.b(this).d(new Intent(CustomTabActivity.f9205e));
a(-1, intent);
} else if (Intrinsics.c(CustomTabActivity.f9204d, intent.getAction())) {
a(-1, intent);
}
}
@Override
protected void onResume() {
super.onResume();
if (this.f9216a) {
a(0, null);
}
this.f9216a = true;
}
}