正在查看: BAM Crawford v6.14.1 应用的 FullscreenFragmentActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: BAM Crawford v6.14.1 应用的 FullscreenFragmentActivity.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.subsplash.thechurchapp;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.view.WindowInsetsController;
import androidx.constraintlayout.widget.ConstraintLayout;
import androidx.core.view.h2;
import androidx.core.view.m2;
import com.facebook.react.j0;
import com.subsplash.thechurchapp.handlers.common.NavigationHandler;
import com.subsplash.thechurchapp.handlers.common.b;
import com.subsplash.thechurchapp.handlers.common.l;
import com.subsplash.thechurchapp.handlers.notification.NotificationHandler;
import kotlin.jvm.internal.k;
import okio.Segment;
import pi.n;
import pi.o;
public class FullscreenFragmentActivity extends FragmentHostActivity {
private final void y0(boolean z) {
if (z) {
getWindow().clearFlags(Segment.SHARE_MINIMUM);
getWindow().addFlags(2048);
} else {
getWindow().clearFlags(2048);
getWindow().addFlags(Segment.SHARE_MINIMUM);
}
}
@Override
public void g0() {
super.g0();
View findViewById = findViewById(n.fragment_container);
ViewGroup.LayoutParams layoutParams = findViewById != null ? findViewById.getLayoutParams() : null;
ConstraintLayout.b bVar = layoutParams instanceof ConstraintLayout.b ? (ConstraintLayout.b) layoutParams : null;
NavigationHandler c0 = c0();
b bVar2 = c0 != null ? c0.topBarStyle : null;
if (bVar2 != b.TRANSPARENT && bVar2 != b.HIDDEN) {
NavigationHandler c02 = c0();
if ((c02 != null ? c02.presentationStyle : null) != l.KITMODAL) {
if (bVar != null) {
bVar.h = -1;
}
if (bVar != null) {
bVar.i = n.toolbar_container;
}
if (bVar != null || findViewById == null) {
}
findViewById.setLayoutParams(bVar);
return;
}
}
if (bVar != null) {
bVar.h = 0;
}
if (bVar != null) {
bVar.i = -1;
}
if (bVar != null) {
}
}
@Override
public void onCreate(Bundle bundle) {
View decorView = getWindow().getDecorView();
k.d(decorView, "this.window.decorView");
if (Build.VERSION.SDK_INT >= 31) {
getWindow().setDecorFitsSystemWindows(false);
} else {
decorView.setSystemUiVisibility(decorView.getSystemUiVisibility() | 0 | Segment.SHARE_MINIMUM | NotificationHandler.IMAGE_SIZE);
}
super.onCreate(bundle);
}
@Override
protected int r0() {
return o.fullscreen_fragment_host_activity;
}
public final boolean x0() {
androidx.appcompat.app.a K = K();
return K != null && K.n();
}
public final void z0(boolean z) {
WindowInsetsController windowInsetsController;
WindowInsetsController windowInsetsController2;
View decorView = getWindow().getDecorView();
k.d(decorView, "this.window.decorView");
if (Build.VERSION.SDK_INT < 31) {
y0(z);
int systemUiVisibility = decorView.getSystemUiVisibility();
decorView.setSystemUiVisibility(z ? systemUiVisibility & (-3) : systemUiVisibility | 2);
return;
}
int a = j0.a();
if (z) {
windowInsetsController2 = decorView.getWindowInsetsController();
if (windowInsetsController2 != null) {
h2.a(windowInsetsController2, a);
return;
}
return;
}
windowInsetsController = decorView.getWindowInsetsController();
if (windowInsetsController != null) {
m2.a(windowInsetsController, a);
}
}
}