导航菜单

页面标题

页面副标题

Oolka v2.4.42 - FacebookActivity.java 源代码

正在查看: Oolka v2.4.42 应用的 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.fragment.app.Fragment;
import androidx.fragment.app.FragmentActivity;
import androidx.fragment.app.FragmentManager;
import com.facebook.internal.FacebookDialogFragment;
import com.facebook.internal.NativeProtocol;
import com.facebook.internal.r0;
import com.facebook.login.LoginFragment;
import java.io.FileDescriptor;
import java.io.PrintWriter;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;

@Metadata
public class FacebookActivity extends FragmentActivity {

    @NotNull
    public static final a H = new a(null);
    public static final String I = FacebookActivity.class.getName();
    public Fragment G;

    @Metadata
    public static final class a {
        public a(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        public a() {
        }
    }

    public void dump(@NotNull String str, FileDescriptor fileDescriptor, @NotNull PrintWriter printWriter, String[] strArr) {
        if (com.facebook.internal.instrument.crashshield.a.d(this)) {
            return;
        }
        try {
            Intrinsics.checkNotNullParameter(str, "prefix");
            Intrinsics.checkNotNullParameter(printWriter, "writer");
            com.facebook.internal.logging.dumpsys.a.a.a();
            super.dump(str, fileDescriptor, printWriter, strArr);
        } catch (Throwable th) {
            com.facebook.internal.instrument.crashshield.a.b(th, this);
        }
    }

    public final Fragment n0() {
        return this.G;
    }

    @NotNull
    public Fragment o0() {
        Fragment loginFragment;
        Intent intent = getIntent();
        FragmentManager supportFragmentManager = getSupportFragmentManager();
        Intrinsics.checkNotNullExpressionValue(supportFragmentManager, "supportFragmentManager");
        Fragment k0 = supportFragmentManager.k0("SingleFragment");
        if (k0 != null) {
            return k0;
        }
        if (Intrinsics.areEqual("FacebookDialogFragment", intent.getAction())) {
            loginFragment = new FacebookDialogFragment();
            loginFragment.setRetainInstance(true);
            loginFragment.show(supportFragmentManager, "SingleFragment");
        } else {
            loginFragment = new LoginFragment();
            loginFragment.setRetainInstance(true);
            supportFragmentManager.p().c(com.facebook.common.c.c, loginFragment, "SingleFragment").i();
        }
        return loginFragment;
    }

    public void onConfigurationChanged(@NotNull Configuration configuration) {
        Intrinsics.checkNotNullParameter(configuration, "newConfig");
        super/*androidx.activity.ComponentActivity*/.onConfigurationChanged(configuration);
        Fragment fragment = this.G;
        if (fragment != null) {
            fragment.onConfigurationChanged(configuration);
        }
    }

    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        Intent intent = getIntent();
        if (!t.G()) {
            r0.l0(I, "Facebook SDK not initialized. Make sure you call sdkInitialize inside your Application's onCreate method.");
            Context applicationContext = getApplicationContext();
            Intrinsics.checkNotNullExpressionValue(applicationContext, "applicationContext");
            t.N(applicationContext);
        }
        setContentView(com.facebook.common.d.a);
        if (Intrinsics.areEqual("PassThrough", intent.getAction())) {
            p0();
        } else {
            this.G = o0();
        }
    }

    public final void p0() {
        Intent intent = getIntent();
        Intrinsics.checkNotNullExpressionValue(intent, "requestIntent");
        FacebookException t = NativeProtocol.t(NativeProtocol.y(intent));
        Intent intent2 = getIntent();
        Intrinsics.checkNotNullExpressionValue(intent2, "intent");
        setResult(0, NativeProtocol.n(intent2, null, t));
        finish();
    }
}