正在查看: Kickcash v16.1 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Kickcash v16.1 应用的 d.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.swmansion.rnscreens;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.widget.FrameLayout;
import androidx.fragment.app.Fragment;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.UiThreadUtil;
import com.microsoft.clarity.gr.m;
import com.microsoft.clarity.kd.n0;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
public class d extends Fragment implements e {
@NotNull
public static final a J1 = new a(null);
public com.swmansion.rnscreens.a C1;
@NotNull
private final List<com.swmansion.rnscreens.b> D1;
private boolean E1;
private float F1;
private boolean G1;
private boolean H1;
private boolean I1;
public static final class a {
public a(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final short a(float f) {
int i = 1;
if (!(f == 0.0f)) {
i = f == 1.0f ? 2 : 3;
}
return (short) i;
}
@NotNull
protected final View b(@NotNull View view) {
Intrinsics.checkNotNullParameter(view, "view");
ViewParent parent = view.getParent();
if (parent != null) {
ViewGroup viewGroup = (ViewGroup) parent;
viewGroup.endViewTransition(view);
viewGroup.removeView(view);
}
view.setVisibility(0);
return view;
}
private a() {
}
}
public enum b {
DID_APPEAR,
WILL_APPEAR,
DID_DISAPPEAR,
WILL_DISAPPEAR
}
private static final class c extends FrameLayout {
public c(@NotNull Context context) {
super(context);
Intrinsics.checkNotNullParameter(context, "context");
}
@Override
public void clearFocus() {
if (getVisibility() != 4) {
super.clearFocus();
}
}
}
public class C0071d {
public static final int[] a;
static {
int[] iArr = new int[b.values().length];
try {
iArr[b.WILL_APPEAR.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[b.DID_APPEAR.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[b.WILL_DISAPPEAR.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[b.DID_DISAPPEAR.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
a = iArr;
}
}
public d() {
this.D1 = new ArrayList();
this.F1 = -1.0f;
this.G1 = true;
this.H1 = true;
throw new IllegalStateException("Screen fragments should never be restored. Follow instructions from https://github.com/software-mansion/react-native-screens/issues/17#issuecomment-424704067 to properly configure your main activity.");
}
private final void j2() {
i2(b.DID_APPEAR, this);
n2(1.0f, false);
}
private final void k2() {
i2(b.DID_DISAPPEAR, this);
n2(1.0f, true);
}
private final void l2() {
i2(b.WILL_APPEAR, this);
n2(0.0f, false);
}
private final void m2() {
i2(b.WILL_DISAPPEAR, this);
n2(0.0f, true);
}
private final void o2(final boolean z) {
this.I1 = !z;
Fragment O = O();
if (O == null || ((O instanceof d) && !((d) O).I1)) {
if (s0()) {
UiThreadUtil.runOnUiThread(new Runnable() {
@Override
public final void run() {
com.swmansion.rnscreens.d.p2(z, this);
}
});
} else if (z) {
k2();
} else {
m2();
}
}
}
public static final void p2(boolean z, d this$0) {
Intrinsics.checkNotNullParameter(this$0, "this$0");
if (z) {
this$0.j2();
} else {
this$0.l2();
}
}
@NotNull
protected static final View s2(@NotNull View view) {
return J1.b(view);
}
private final void u2() {
Activity u = u();
if (u == null) {
this.E1 = true;
} else {
k.a.w(i(), u, h());
}
}
public View G0(@NotNull LayoutInflater inflater, ViewGroup viewGroup, Bundle bundle) {
Intrinsics.checkNotNullParameter(inflater, "inflater");
i().setLayoutParams(new FrameLayout.LayoutParams(-1, -1));
Context B = B();
if (B == null) {
return null;
}
c cVar = new c(B);
cVar.addView(s2(i()));
return cVar;
}
public void H0() {
super.H0();
com.swmansion.rnscreens.b container = i().getContainer();
if (container == null || !container.n(this)) {
ReactContext context = i().getContext();
if (context instanceof ReactContext) {
int e = n0.e(context);
com.microsoft.clarity.od.d c2 = n0.c(context, i().getId());
if (c2 != null) {
c2.d(new com.microsoft.clarity.mp.g(e, i().getId()));
}
}
}
k().clear();
}
public void X0() {
super.X0();
if (this.E1) {
this.E1 = false;
k.a.w(i(), d(), h());
}
}
@Override
public void b(@NotNull com.swmansion.rnscreens.b container) {
Intrinsics.checkNotNullParameter(container, "container");
k().remove(container);
}
@Override
public void c(@NotNull b event) {
Intrinsics.checkNotNullParameter(event, "event");
int i = C0071d.a[event.ordinal()];
if (i == 1) {
this.G1 = false;
return;
}
if (i == 2) {
this.H1 = false;
} else if (i == 3) {
this.G1 = true;
} else {
if (i != 4) {
return;
}
this.H1 = true;
}
}
@Override
public Activity d() {
Fragment fragment;
androidx.fragment.app.d u;
androidx.fragment.app.d u2 = u();
if (u2 != null) {
return u2;
}
ReactContext context = i().getContext();
if (context instanceof ReactContext) {
ReactContext reactContext = context;
if (reactContext.getCurrentActivity() != null) {
return reactContext.getCurrentActivity();
}
}
for (ViewParent container = i().getContainer(); container != null; container = container.getParent()) {
if ((container instanceof com.swmansion.rnscreens.a) && (fragment = ((com.swmansion.rnscreens.a) container).getFragment()) != null && (u = fragment.u()) != null) {
return u;
}
}
return null;
}
public boolean g2(@NotNull b event) {
Intrinsics.checkNotNullParameter(event, "event");
int i = C0071d.a[event.ordinal()];
if (i == 1) {
return this.G1;
}
if (i == 2) {
return this.H1;
}
if (i != 3) {
if (i != 4) {
throw new m();
}
if (!this.H1) {
return true;
}
} else if (!this.G1) {
return true;
}
return false;
}
@Override
public ReactContext h() {
if (B() instanceof ReactContext) {
ReactContext B = B();
Intrinsics.f(B, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
return B;
}
if (i().getContext() instanceof ReactContext) {
ReactContext context = i().getContext();
Intrinsics.f(context, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
return context;
}
for (ViewParent container = i().getContainer(); container != null; container = container.getParent()) {
if (container instanceof com.swmansion.rnscreens.a) {
com.swmansion.rnscreens.a aVar = (com.swmansion.rnscreens.a) container;
if (aVar.getContext() instanceof ReactContext) {
ReactContext context2 = aVar.getContext();
Intrinsics.f(context2, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
return context2;
}
}
}
return null;
}
public void h2() {
ReactContext context = i().getContext();
Intrinsics.f(context, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
ReactContext reactContext = context;
int e = n0.e(reactContext);
com.microsoft.clarity.od.d c2 = n0.c(reactContext, i().getId());
if (c2 != null) {
c2.d(new com.microsoft.clarity.mp.b(e, i().getId()));
}
}
@Override
@NotNull
public com.swmansion.rnscreens.a i() {
com.swmansion.rnscreens.a aVar = this.C1;
if (aVar != null) {
return aVar;
}
Intrinsics.w("screen");
return null;
}
public void i2(@NotNull b event, @NotNull e fragmentWrapper) {
com.microsoft.clarity.od.c iVar;
Intrinsics.checkNotNullParameter(event, "event");
Intrinsics.checkNotNullParameter(fragmentWrapper, "fragmentWrapper");
Fragment e = fragmentWrapper.e();
if (e instanceof g) {
g gVar = (g) e;
if (gVar.g2(event)) {
com.swmansion.rnscreens.a i = gVar.i();
fragmentWrapper.c(event);
int f = n0.f(i);
int i2 = C0071d.a[event.ordinal()];
if (i2 == 1) {
iVar = new com.microsoft.clarity.mp.i(f, i.getId());
} else if (i2 == 2) {
iVar = new com.microsoft.clarity.mp.e(f, i.getId());
} else if (i2 == 3) {
iVar = new com.microsoft.clarity.mp.j(f, i.getId());
} else {
if (i2 != 4) {
throw new m();
}
iVar = new com.microsoft.clarity.mp.f(f, i.getId());
}
ReactContext context = i().getContext();
Intrinsics.f(context, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
com.microsoft.clarity.od.d c2 = n0.c(context, i().getId());
if (c2 != null) {
c2.d(iVar);
}
fragmentWrapper.j(event);
}
}
}
@Override
public void j(@NotNull b event) {
e fragmentWrapper;
Intrinsics.checkNotNullParameter(event, "event");
List<com.swmansion.rnscreens.b> k = k();
ArrayList arrayList = new ArrayList();
for (Object obj : k) {
if (((com.swmansion.rnscreens.b) obj).getScreenCount() > 0) {
arrayList.add(obj);
}
}
Iterator it = arrayList.iterator();
while (it.hasNext()) {
com.swmansion.rnscreens.a topScreen = ((com.swmansion.rnscreens.b) it.next()).getTopScreen();
if (topScreen != null && (fragmentWrapper = topScreen.getFragmentWrapper()) != null) {
i2(event, fragmentWrapper);
}
}
}
@Override
@NotNull
public List<com.swmansion.rnscreens.b> k() {
return this.D1;
}
@Override
public void l(@NotNull com.swmansion.rnscreens.b container) {
Intrinsics.checkNotNullParameter(container, "container");
k().add(container);
}
@Override
public void m() {
u2();
}
public void n2(float f, boolean z) {
if (this instanceof g) {
if (this.F1 == f) {
return;
}
float max = Math.max(0.0f, Math.min(1.0f, f));
this.F1 = max;
short a2 = J1.a(max);
com.swmansion.rnscreens.b container = i().getContainer();
boolean goingForward = container instanceof f ? ((f) container).getGoingForward() : false;
ReactContext context = i().getContext();
Intrinsics.f(context, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
ReactContext reactContext = context;
com.microsoft.clarity.od.d c2 = n0.c(reactContext, i().getId());
if (c2 != null) {
c2.d(new com.microsoft.clarity.mp.h(n0.e(reactContext), i().getId(), this.F1, z, goingForward, a2));
}
}
}
public void q2() {
o2(true);
}
public void r2() {
o2(false);
}
public void t2(@NotNull com.swmansion.rnscreens.a aVar) {
Intrinsics.checkNotNullParameter(aVar, "<set-?>");
this.C1 = aVar;
}
public d(@NotNull com.swmansion.rnscreens.a screenView) {
Intrinsics.checkNotNullParameter(screenView, "screenView");
this.D1 = new ArrayList();
this.F1 = -1.0f;
this.G1 = true;
this.H1 = true;
t2(screenView);
}
@Override
@NotNull
public Fragment e() {
return this;
}
}