正在查看: CityMall v1.42.1 应用的 ChromeTabsManagerActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CityMall v1.42.1 应用的 ChromeTabsManagerActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.proyecto26.inappbrowser;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import m6.C0483a;
import org.greenrobot.eventbus.EventBus;
public class ChromeTabsManagerActivity extends Activity {
private boolean a = false;
private String b = null;
private boolean c = false;
private static Intent a(Context context) {
return new Intent(context, (Class<?>) ChromeTabsManagerActivity.class);
}
public static Intent b(Context context) {
Intent a = a(context);
a.addFlags(67108864);
return a;
}
public static Intent c(Context context, Intent intent) {
Intent a = a(context);
a.putExtra("browserIntent", intent);
return a;
}
@Override
protected void onCreate(Bundle bundle) {
try {
super.onCreate(bundle);
if (!getIntent().hasExtra("browserIntent") || (bundle != null && bundle.getString("browserResultType") != null)) {
finish();
return;
}
Intent intent = (Intent) getIntent().getParcelableExtra("browserIntent");
intent.addFlags(67108864);
startActivity(intent);
this.b = "dismiss";
} catch (Exception e) {
this.c = true;
EventBus.c().l(new C0483a("Unable to open url.", this.b, Boolean.valueOf(this.c)));
finish();
e.printStackTrace();
}
}
@Override
protected void onDestroy() {
String str = this.b;
if (str != null) {
str.hashCode();
if (str.equals("cancel")) {
EventBus.c().l(new C0483a("chrome tabs activity closed", this.b, Boolean.valueOf(this.c)));
} else {
EventBus.c().l(new C0483a("chrome tabs activity destroyed", "dismiss", Boolean.valueOf(this.c)));
}
this.b = null;
}
super.onDestroy();
}
@Override
protected void onNewIntent(Intent intent) {
super.onNewIntent(intent);
setIntent(intent);
}
@Override
protected void onRestoreInstanceState(Bundle bundle) {
super.onRestoreInstanceState(bundle);
this.b = bundle.getString("browserResultType");
}
@Override
protected void onResume() {
super.onResume();
if (!this.a) {
this.a = true;
} else {
this.b = "cancel";
finish();
}
}
@Override
protected void onSaveInstanceState(Bundle bundle) {
bundle.putString("browserResultType", "dismiss");
super.onSaveInstanceState(bundle);
}
}