正在查看: FanCode v7.24.0 应用的 ChromeTabsManagerActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: FanCode v7.24.0 应用的 ChromeTabsManagerActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.proyecto26.inappbrowser;
import an.c;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import com.newrelic.agent.android.api.v2.TraceFieldInterface;
import com.newrelic.agent.android.background.ApplicationStateMonitor;
import com.newrelic.agent.android.instrumentation.Instrumented;
import com.newrelic.agent.android.tracing.Trace;
import com.newrelic.agent.android.tracing.TraceMachine;
import ek.a;
@Instrumented
public class ChromeTabsManagerActivity extends Activity implements TraceFieldInterface {
private boolean a = false;
private String b = null;
private boolean c = false;
public Trace d;
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) {
TraceMachine.startTracing("ChromeTabsManagerActivity");
try {
TraceMachine.enterMethod(this.d, "ChromeTabsManagerActivity#onCreate", null);
} catch (NoSuchFieldError unused) {
TraceMachine.enterMethod(null, "ChromeTabsManagerActivity#onCreate", null);
}
try {
super.onCreate(bundle);
if (getIntent().hasExtra("browserIntent") && (bundle == null || bundle.getString("browserResultType") == null)) {
Intent intent = (Intent) getIntent().getParcelableExtra("browserIntent");
intent.addFlags(67108864);
startActivity(intent);
this.b = "dismiss";
} else {
finish();
}
} catch (Exception e) {
this.c = true;
c.c().l(new a("Unable to open url.", this.b, Boolean.valueOf(this.c)));
finish();
e.printStackTrace();
}
TraceMachine.exitMethod();
}
@Override
protected void onDestroy() {
String str = this.b;
if (str != null) {
str.hashCode();
if (str.equals("cancel")) {
c.c().l(new a("chrome tabs activity closed", this.b, Boolean.valueOf(this.c)));
} else {
c.c().l(new a("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);
}
@Override
protected void onStart() {
super.onStart();
ApplicationStateMonitor.getInstance().activityStarted();
}
@Override
protected void onStop() {
super.onStop();
ApplicationStateMonitor.getInstance().activityStopped();
}
}