正在查看: Housing v14.7.8 应用的 FacebookActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Housing v14.7.8 应用的 FacebookActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.facebook;
import android.content.Context;
import android.content.Intent;
import android.content.res.Configuration;
import android.os.Bundle;
import androidx.activity.result.LoginFragment;
import androidx.fragment.app.f0;
import androidx.fragment.app.p;
import androidx.fragment.app.s0;
import androidx.fragment.app.u;
import com.facebook.gamingservices.cloudgaming.internal.SDKConstants;
import com.facebook.internal.FacebookDialogFragment;
import com.facebook.internal.NativeProtocol;
import com.facebook.internal.Utility;
import com.facebook.internal.instrument.crashshield.CrashShieldHandler;
import com.facebook.internal.logging.dumpsys.EndToEndDumper;
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 java.io.FileDescriptor;
import java.io.PrintWriter;
import java.util.ArrayList;
import kotlin.Metadata;
import kotlin.jvm.internal.r;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Metadata(d1 = {"\u0000D\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\t\b\u0016\u0018\u0000 \u001f2\u00020\u0001:\u0001\u001fB\u0007¢\u0006\u0004\b\u0002\u0010\u0003J\u000f\u0010\u0005\u001a\u00020\u0004H\u0002¢\u0006\u0004\b\u0005\u0010\u0003J\u0019\u0010\b\u001a\u00020\u00042\b\u0010\u0007\u001a\u0004\u0018\u00010\u0006H\u0016¢\u0006\u0004\b\b\u0010\tJ\u000f\u0010\u000b\u001a\u00020\nH\u0014¢\u0006\u0004\b\u000b\u0010\fJ\u0017\u0010\u000f\u001a\u00020\u00042\u0006\u0010\u000e\u001a\u00020\rH\u0016¢\u0006\u0004\b\u000f\u0010\u0010J9\u0010\u0019\u001a\u00020\u00042\u0006\u0010\u0012\u001a\u00020\u00112\b\u0010\u0014\u001a\u0004\u0018\u00010\u00132\u0006\u0010\u0016\u001a\u00020\u00152\u000e\u0010\u0018\u001a\n\u0012\u0004\u0012\u00020\u0011\u0018\u00010\u0017H\u0017¢\u0006\u0004\b\u0019\u0010\u001aR(\u0010\u001c\u001a\u0004\u0018\u00010\n2\b\u0010\u001b\u001a\u0004\u0018\u00010\n8\u0006@BX\u0086\u000e¢\u0006\f\n\u0004\b\u001c\u0010\u001d\u001a\u0004\b\u001e\u0010\f¨\u0006 "}, d2 = {"Lcom/facebook/FacebookActivity;", "Landroidx/fragment/app/u;", "<init>", "()V", "Lzp/j0;", "handlePassThroughError", "Landroid/os/Bundle;", "savedInstanceState", "onCreate", "(Landroid/os/Bundle;)V", "Landroidx/fragment/app/p;", "getFragment", "()Landroidx/fragment/app/p;", "Landroid/content/res/Configuration;", "newConfig", "onConfigurationChanged", "(Landroid/content/res/Configuration;)V", "", "prefix", "Ljava/io/FileDescriptor;", "fd", "Ljava/io/PrintWriter;", "writer", "", "args", "dump", "(Ljava/lang/String;Ljava/io/FileDescriptor;Ljava/io/PrintWriter;[Ljava/lang/String;)V", "<set-?>", "currentFragment", "Landroidx/fragment/app/p;", "getCurrentFragment", "Companion", "facebook-common_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
@Instrumented
public class FacebookActivity extends u implements TraceFieldInterface {
@NotNull
private static final String FRAGMENT_TAG = "SingleFragment";
@NotNull
public static final String PASS_THROUGH_CANCEL_ACTION = "PassThrough";
public Trace _nr_trace;
@Nullable
private p currentFragment;
private static final String TAG = FacebookActivity.class.getName();
private final void handlePassThroughError() {
Intent intent = getIntent();
r.j(intent, "requestIntent");
FacebookException exceptionFromErrorData = NativeProtocol.getExceptionFromErrorData(NativeProtocol.getMethodArgumentsFromIntent(intent));
Intent intent2 = getIntent();
r.j(intent2, SDKConstants.PARAM_INTENT);
setResult(0, NativeProtocol.createProtocolResultIntent(intent2, null, exceptionFromErrorData));
finish();
}
public void dump(@NotNull String prefix, @Nullable FileDescriptor fd, @NotNull PrintWriter writer, @Nullable String[] args) {
if (CrashShieldHandler.isObjectCrashing(this)) {
return;
}
try {
r.k(prefix, "prefix");
r.k(writer, "writer");
EndToEndDumper companion = EndToEndDumper.INSTANCE.getInstance();
if (companion == null || !companion.maybeDump(prefix, writer, args)) {
super.dump(prefix, fd, writer, args);
}
} catch (Throwable th) {
CrashShieldHandler.handleThrowable(th, this);
}
}
@Nullable
public final p getCurrentFragment() {
return this.currentFragment;
}
@NotNull
public p getFragment() {
Intent intent = getIntent();
f0 supportFragmentManager = getSupportFragmentManager();
r.j(supportFragmentManager, "supportFragmentManager");
p Q = supportFragmentManager.Q(FRAGMENT_TAG);
if (Q != null) {
return Q;
}
if (FacebookDialogFragment.TAG.equals(intent.getAction())) {
FacebookDialogFragment facebookDialogFragment = new FacebookDialogFragment();
facebookDialogFragment.setRetainInstance(true);
facebookDialogFragment.show(supportFragmentManager, FRAGMENT_TAG);
return facebookDialogFragment;
}
LoginFragment loginFragment = new LoginFragment();
loginFragment.setRetainInstance(true);
s0 h = supportFragmentManager.h();
h.i(com.facebook.common.R.id.com_facebook_fragment_container, loginFragment, FRAGMENT_TAG, 1);
h.d();
return loginFragment;
}
public void onConfigurationChanged(@NotNull Configuration newConfig) {
r.k(newConfig, "newConfig");
super/*androidx.activity.h*/.onConfigurationChanged(newConfig);
p pVar = this.currentFragment;
if (pVar != null) {
pVar.onConfigurationChanged(newConfig);
}
}
public void onCreate(@Nullable Bundle savedInstanceState) {
TraceMachine.startTracing("FacebookActivity");
try {
TraceMachine.enterMethod(this._nr_trace, "FacebookActivity#onCreate", (ArrayList) null);
} catch (NoSuchFieldError unused) {
TraceMachine.enterMethod((Trace) null, "FacebookActivity#onCreate", (ArrayList) null);
}
super.onCreate(savedInstanceState);
Intent intent = getIntent();
if (!FacebookSdk.isInitialized()) {
Utility.logd(TAG, "Facebook SDK not initialized. Make sure you call sdkInitialize inside your Application's onCreate method.");
Context applicationContext = getApplicationContext();
r.j(applicationContext, "applicationContext");
FacebookSdk.sdkInitialize(applicationContext);
}
setContentView(com.facebook.common.R.layout.com_facebook_activity_layout);
if (PASS_THROUGH_CANCEL_ACTION.equals(intent.getAction())) {
handlePassThroughError();
TraceMachine.exitMethod();
} else {
this.currentFragment = getFragment();
TraceMachine.exitMethod();
}
}
public void onStart() {
super.onStart();
ApplicationStateMonitor.getInstance().activityStarted();
}
public void onStop() {
super.onStop();
ApplicationStateMonitor.getInstance().activityStopped();
}
}