正在查看: RummyCircle v11000.89 应用的 i.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: RummyCircle v11000.89 应用的 i.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.swmansion.rnscreens;
import android.annotation.SuppressLint;
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 androidx.fragment.app.FragmentActivity;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.UiThreadUtil;
import com.swmansion.rnscreens.i;
import in.juspay.hyper.constants.LogCategory;
import in.juspay.hypersdk.core.PaymentConstants;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
@Metadata
public class i extends Fragment implements j {
public static final int h = 0;
public final Screen a;
@NotNull
public final ArrayList b;
public boolean c;
public float d;
public boolean e;
public boolean f;
public boolean g;
public static final class a {
public static final a a;
public static final a b;
public static final a c;
public static final a d;
public static final a[] e;
static {
a aVar = new a("DID_APPEAR", 0);
a = aVar;
a aVar2 = new a("WILL_APPEAR", 1);
b = aVar2;
a aVar3 = new a("DID_DISAPPEAR", 2);
c = aVar3;
a aVar4 = new a("WILL_DISAPPEAR", 3);
d = aVar4;
e = new a[]{aVar, aVar2, aVar3, aVar4};
}
public a() {
throw null;
}
public static a valueOf(String str) {
return (a) Enum.valueOf(a.class, str);
}
public static a[] values() {
return (a[]) e.clone();
}
}
public static final class b extends FrameLayout {
@Override
public final void clearFocus() {
if (getVisibility() != 4) {
super.clearFocus();
}
}
}
public i() {
this.b = new ArrayList();
this.d = -1.0f;
this.e = true;
this.f = 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.");
}
@NotNull
public static final void u(@NotNull ViewGroup viewGroup) {
Intrinsics.checkNotNullParameter(viewGroup, "view");
ViewParent parent = viewGroup.getParent();
if (parent != null) {
ViewGroup viewGroup2 = (ViewGroup) parent;
viewGroup2.endViewTransition(viewGroup);
viewGroup2.removeView(viewGroup);
}
viewGroup.setVisibility(0);
}
@Override
public final void a(@NotNull a aVar) {
Intrinsics.checkNotNullParameter(aVar, "event");
int ordinal = aVar.ordinal();
if (ordinal == 0) {
this.f = false;
return;
}
if (ordinal == 1) {
this.e = false;
} else if (ordinal == 2) {
this.f = true;
} else {
if (ordinal != 3) {
return;
}
this.e = true;
}
}
@Override
public final void c(@NotNull a aVar) {
j fragmentWrapper;
Intrinsics.checkNotNullParameter(aVar, "event");
ArrayList arrayList = this.b;
ArrayList arrayList2 = new ArrayList();
for (Object obj : arrayList) {
if (((ScreenContainer) obj).getScreenCount() > 0) {
arrayList2.add(obj);
}
}
Iterator it = arrayList2.iterator();
while (it.hasNext()) {
Screen topScreen = ((ScreenContainer) it.next()).getTopScreen();
if (topScreen != null && (fragmentWrapper = topScreen.getFragmentWrapper()) != null) {
m(aVar, fragmentWrapper);
}
}
}
public final void d() {
ReactContext context = e().getContext();
Intrinsics.d(context, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
ReactContext reactContext = context;
int j = androidx.camera.core.impl.utils.b.j(reactContext);
com.facebook.react.uimanager.events.d f = androidx.camera.core.impl.utils.b.f(reactContext, e().getId());
if (f != null) {
f.c(new com.swmansion.rnscreens.events.b(j, e().getId()));
}
}
@Override
@NotNull
public final Screen e() {
Screen screen = this.a;
if (screen != null) {
return screen;
}
Intrinsics.q(PaymentConstants.Event.SCREEN);
throw null;
}
@Override
public final void f(@NotNull ScreenContainer screenContainer) {
Intrinsics.checkNotNullParameter(screenContainer, "container");
this.b.remove(screenContainer);
}
@Override
public final Activity g() {
Fragment fragment;
FragmentActivity activity;
FragmentActivity activity2 = getActivity();
if (activity2 != null) {
return activity2;
}
ReactContext context = e().getContext();
if (context instanceof ReactContext) {
ReactContext reactContext = context;
if (reactContext.getCurrentActivity() != null) {
return reactContext.getCurrentActivity();
}
}
for (ViewParent container = e().getContainer(); container != null; container = container.getParent()) {
if ((container instanceof Screen) && (fragment = ((Screen) container).getFragment()) != null && (activity = fragment.getActivity()) != null) {
return activity;
}
}
return null;
}
@Override
public final ReactContext h() {
if (getContext() instanceof ReactContext) {
ReactContext context = getContext();
Intrinsics.d(context, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
return context;
}
if (e().getContext() instanceof ReactContext) {
ReactContext context2 = e().getContext();
Intrinsics.d(context2, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
return context2;
}
for (ViewParent container = e().getContainer(); container != null; container = container.getParent()) {
if (container instanceof Screen) {
Screen screen = (Screen) container;
if (screen.getContext() instanceof ReactContext) {
ReactContext context3 = screen.getContext();
Intrinsics.d(context3, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
return context3;
}
}
}
return null;
}
@Override
@NotNull
public final List<ScreenContainer> i() {
return this.b;
}
@Override
public final void j(@NotNull ScreenContainer screenContainer) {
Intrinsics.checkNotNullParameter(screenContainer, "container");
this.b.add(screenContainer);
}
@Override
public void l() {
FragmentActivity activity = getActivity();
if (activity == null) {
this.c = true;
} else {
p.j(e(), activity, h());
}
}
public final void m(@org.jetbrains.annotations.NotNull com.swmansion.rnscreens.i.a r7, @org.jetbrains.annotations.NotNull com.swmansion.rnscreens.j r8) {
throw new UnsupportedOperationException("Method not decompiled: com.swmansion.rnscreens.i.m(com.swmansion.rnscreens.i$a, com.swmansion.rnscreens.j):void");
}
public View onCreateView(@NotNull LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
Intrinsics.checkNotNullParameter(layoutInflater, "inflater");
e().setLayoutParams(new FrameLayout.LayoutParams(-1, -1));
Context context = getContext();
if (context == null) {
return null;
}
Intrinsics.checkNotNullParameter(context, LogCategory.CONTEXT);
b bVar = new b(context);
Screen e = e();
u(e);
bVar.addView(e);
return bVar;
}
public final void onDestroy() {
super.onDestroy();
ScreenContainer container = e().getContainer();
if (container == null || !container.d(this)) {
ReactContext context = e().getContext();
if (context instanceof ReactContext) {
int j = androidx.camera.core.impl.utils.b.j(context);
com.facebook.react.uimanager.events.d f = androidx.camera.core.impl.utils.b.f(context, e().getId());
if (f != null) {
f.c(new com.swmansion.rnscreens.events.g(j, e().getId()));
}
}
}
this.b.clear();
}
public final void onResume() {
super.onResume();
if (this.c) {
this.c = false;
p.j(e(), g(), h());
}
}
public final void r(float f, boolean z) {
if (!(this instanceof k) || this.d == f) {
return;
}
float max = Math.max(0.0f, Math.min(1.0f, f));
this.d = max;
short s = (short) (max == 0.0f ? 1 : max == 1.0f ? 2 : 3);
ScreenContainer container = e().getContainer();
boolean goingForward = container instanceof ScreenStack ? ((ScreenStack) container).getGoingForward() : false;
ReactContext context = e().getContext();
Intrinsics.d(context, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
ReactContext reactContext = context;
com.facebook.react.uimanager.events.d f2 = androidx.camera.core.impl.utils.b.f(reactContext, e().getId());
if (f2 != null) {
f2.c(new com.swmansion.rnscreens.events.h(androidx.camera.core.impl.utils.b.j(reactContext), e().getId(), this.d, z, goingForward, s));
}
}
public final void s(final boolean z) {
this.g = !z;
Fragment parentFragment = getParentFragment();
if (parentFragment == null || ((parentFragment instanceof i) && !((i) parentFragment).g)) {
if (isResumed()) {
UiThreadUtil.runOnUiThread(new Runnable() {
@Override
public final void run() {
int i = i.h;
i iVar = this;
Intrinsics.checkNotNullParameter(iVar, "this$0");
if (z) {
iVar.m(i.a.a, iVar);
iVar.r(1.0f, false);
} else {
iVar.m(i.a.b, iVar);
iVar.r(0.0f, false);
}
}
});
} else if (z) {
m(a.c, this);
r(1.0f, true);
} else {
m(a.d, this);
r(0.0f, true);
}
}
}
public void t() {
s(true);
}
@SuppressLint({"ValidFragment"})
public i(@NotNull Screen screen) {
Intrinsics.checkNotNullParameter(screen, "screenView");
this.b = new ArrayList();
this.d = -1.0f;
this.e = true;
this.f = true;
Intrinsics.checkNotNullParameter(screen, "<set-?>");
this.a = screen;
}
@Override
@NotNull
public final Fragment b() {
return this;
}
}