导航菜单

页面标题

页面副标题

Chaupal v3.2 - FacebookActivity.java 源代码

正在查看: Chaupal v3.2 应用的 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.FragmentManager;
import androidx.fragment.app.h;
import com.facebook.login.LoginFragment;
import d5.b;
import d5.c;
import java.io.FileDescriptor;
import java.io.PrintWriter;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.f;
import org.jetbrains.annotations.NotNull;
import q4.t;
import q5.b0;
import q5.h0;

@Metadata
public class FacebookActivity extends h {

    @NotNull
    public static final a f9220c = new a(null);

    private static final String f9221d = FacebookActivity.class.getName();

    private Fragment f9222a;

    @Metadata
    public static final class a {
        private a() {
        }

        public a(f fVar) {
            this();
        }
    }

    private final void V() {
        Intent intent = getIntent();
        b0 b0Var = b0.f18134a;
        Intrinsics.checkNotNullExpressionValue(intent, "requestIntent");
        FacebookException q7 = b0.q(b0.u(intent));
        Intent intent2 = getIntent();
        Intrinsics.checkNotNullExpressionValue(intent2, "intent");
        setResult(0, b0.m(intent2, null, q7));
        finish();
    }

    public final Fragment T() {
        return this.f9222a;
    }

    @NotNull
    protected Fragment U() {
        LoginFragment loginFragment;
        Intent intent = getIntent();
        FragmentManager supportFragmentManager = getSupportFragmentManager();
        Intrinsics.checkNotNullExpressionValue(supportFragmentManager, "supportFragmentManager");
        Fragment k02 = supportFragmentManager.k0("SingleFragment");
        if (k02 != null) {
            return k02;
        }
        if (Intrinsics.c("FacebookDialogFragment", intent.getAction())) {
            ?? hVar = new q5.h();
            hVar.setRetainInstance(true);
            hVar.show(supportFragmentManager, "SingleFragment");
            loginFragment = hVar;
        } else {
            LoginFragment loginFragment2 = new LoginFragment();
            loginFragment2.setRetainInstance(true);
            supportFragmentManager.q().c(b.f16192c, loginFragment2, "SingleFragment").i();
            loginFragment = loginFragment2;
        }
        return loginFragment;
    }

    @Override
    public void dump(@NotNull String str, FileDescriptor fileDescriptor, @NotNull PrintWriter printWriter, String[] strArr) {
        Intrinsics.checkNotNullParameter(str, "prefix");
        Intrinsics.checkNotNullParameter(printWriter, "writer");
        y5.a a7 = y5.a.f19675a.a();
        if (Intrinsics.c(a7 == null ? null : Boolean.valueOf(a7.a(str, printWriter, strArr)), Boolean.TRUE)) {
            return;
        }
        super.dump(str, fileDescriptor, printWriter, strArr);
    }

    @Override
    public void onConfigurationChanged(@NotNull Configuration configuration) {
        Intrinsics.checkNotNullParameter(configuration, "newConfig");
        super.onConfigurationChanged(configuration);
        Fragment fragment = this.f9222a;
        if (fragment == null) {
            return;
        }
        fragment.onConfigurationChanged(configuration);
    }

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        Intent intent = getIntent();
        t tVar = t.f18071a;
        if (!t.G()) {
            h0 h0Var = h0.f18168a;
            h0.j0(f9221d, "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(c.f16196a);
        if (Intrinsics.c("PassThrough", intent.getAction())) {
            V();
        } else {
            this.f9222a = U();
        }
    }
}