正在查看: CityMall v1.42.1 应用的 C6268i.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CityMall v1.42.1 应用的 C6268i.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.swmansion.rnscreens;
import android.util.Log;
import android.view.View;
import androidx.core.view.OnApplyWindowInsetsListener;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;
import com.facebook.react.bridge.LifecycleEventListener;
import com.facebook.react.bridge.ReactApplicationContext;
import java.lang.ref.WeakReference;
import java.util.HashSet;
import java.util.Iterator;
public final class C6268i implements OnApplyWindowInsetsListener, LifecycleEventListener {
private static boolean f49804d;
private static boolean f49805e;
public static final C6268i f49801a = new C6268i();
private static final HashSet f49802b = new HashSet();
private static WeakReference f49803c = new WeakReference(null);
private static boolean f49806f = true;
private C6268i() {
}
private final boolean c() {
return !f49804d || f49803c.get() == null;
}
private final View d() {
return (View) f49803c.get();
}
public final void a(OnApplyWindowInsetsListener listener) {
kotlin.jvm.internal.j.i(listener, "listener");
f49802b.add(listener);
}
@Override
public WindowInsetsCompat b(View v8, WindowInsetsCompat insets) {
kotlin.jvm.internal.j.i(v8, "v");
kotlin.jvm.internal.j.i(insets, "insets");
WindowInsetsCompat Z7 = f49806f ? ViewCompat.Z(v8, insets) : insets;
kotlin.jvm.internal.j.f(Z7);
Iterator it = f49802b.iterator();
while (it.hasNext()) {
Z7 = ((OnApplyWindowInsetsListener) it.next()).b(v8, insets);
kotlin.jvm.internal.j.h(Z7, "onApplyWindowInsets(...)");
}
return Z7;
}
public final boolean e(View view) {
kotlin.jvm.internal.j.i(view, "view");
if (!c()) {
return false;
}
ViewCompat.C0(view, this);
f49803c = new WeakReference(view);
f49804d = true;
return true;
}
public final void f(ReactApplicationContext context) {
kotlin.jvm.internal.j.i(context, "context");
if (f49805e) {
Log.w("[RNScreens]", "InsetObserverProxy registers on new context while it has not been invalidated on the old one. Please report this as issue at https://github.com/software-mansion/react-native-screens/issues");
}
f49805e = true;
context.addLifecycleEventListener(this);
}
public final void g(OnApplyWindowInsetsListener listener) {
kotlin.jvm.internal.j.i(listener, "listener");
f49802b.remove(listener);
}
@Override
public void onHostDestroy() {
View d8 = d();
if (f49804d && d8 != null) {
ViewCompat.C0(d8, null);
f49804d = false;
f49803c.clear();
}
f49805e = false;
}
@Override
public void onHostPause() {
}
@Override
public void onHostResume() {
}
}