正在查看: Oolka v2.4.42 应用的 ChromeTabsManagerActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Oolka v2.4.42 应用的 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 org.greenrobot.eventbus.EventBus;
public class ChromeTabsManagerActivity extends Activity {
public boolean a = false;
public String b = null;
public boolean c = false;
public 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
public 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 a("Unable to open url.", this.b, Boolean.valueOf(this.c)));
finish();
e.printStackTrace();
}
}
@Override
public void onDestroy() {
String str = this.b;
if (str != null) {
str.hashCode();
if (str.equals("cancel")) {
EventBus.c().l(new a("chrome tabs activity closed", this.b, Boolean.valueOf(this.c)));
} else {
EventBus.c().l(new a("chrome tabs activity destroyed", "dismiss", Boolean.valueOf(this.c)));
}
this.b = null;
}
super.onDestroy();
}
@Override
public void onNewIntent(Intent intent) {
super.onNewIntent(intent);
setIntent(intent);
}
@Override
public void onRestoreInstanceState(Bundle bundle) {
super.onRestoreInstanceState(bundle);
this.b = bundle.getString("browserResultType");
}
@Override
public void onResume() {
super.onResume();
if (!this.a) {
this.a = true;
} else {
this.b = "cancel";
finish();
}
}
@Override
public void onSaveInstanceState(Bundle bundle) {
bundle.putString("browserResultType", "dismiss");
super.onSaveInstanceState(bundle);
}
}