正在查看: CityMall v1.42.1 应用的 C0199i.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: CityMall v1.42.1 应用的 C0199i.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 C0199i implements OnApplyWindowInsetsListener, LifecycleEventListener {
private static boolean d;
private static boolean e;
public static final C0199i a = new C0199i();
private static final HashSet b = new HashSet();
private static WeakReference c = new WeakReference(null);
private static boolean f = true;
private C0199i() {
}
private final boolean c() {
return !d || c.get() == null;
}
private final View d() {
return (View) c.get();
}
public final void a(OnApplyWindowInsetsListener listener) {
kotlin.jvm.internal.j.i(listener, "listener");
b.add(listener);
}
public WindowInsetsCompat b(View v, WindowInsetsCompat insets) {
kotlin.jvm.internal.j.i(v, "v");
kotlin.jvm.internal.j.i(insets, "insets");
WindowInsetsCompat Z = f ? ViewCompat.Z(v, insets) : insets;
kotlin.jvm.internal.j.f(Z);
Iterator it = b.iterator();
while (it.hasNext()) {
Z = ((OnApplyWindowInsetsListener) it.next()).b(v, insets);
kotlin.jvm.internal.j.h(Z, "onApplyWindowInsets(...)");
}
return Z;
}
public final boolean e(View view) {
kotlin.jvm.internal.j.i(view, "view");
if (!c()) {
return false;
}
ViewCompat.C0(view, this);
c = new WeakReference(view);
d = true;
return true;
}
public final void f(ReactApplicationContext context) {
kotlin.jvm.internal.j.i(context, "context");
if (e) {
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");
}
e = true;
context.addLifecycleEventListener(this);
}
public final void g(OnApplyWindowInsetsListener listener) {
kotlin.jvm.internal.j.i(listener, "listener");
b.remove(listener);
}
public void onHostDestroy() {
View d2 = d();
if (d && d2 != null) {
ViewCompat.C0(d2, (OnApplyWindowInsetsListener) null);
d = false;
c.clear();
}
e = false;
}
public void onHostPause() {
}
public void onHostResume() {
}
}