导航菜单

页面标题

页面副标题

Atlys v4.8.7 - r.java 源代码

正在查看: Atlys v4.8.7 应用的 r.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package bj;

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 cj.C0679a;
import com.facebook.react.bridge.ReactContext;
import com.facebook.react.bridge.UiThreadUtil;
import com.facebook.react.uimanager.UIManagerHelper;
import com.facebook.react.uimanager.events.EventDispatcher;
import in.juspay.hypersdk.core.PaymentConstants;
import java.util.ArrayList;
import kotlin.Metadata;

@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0016\u0018\u00002\u00020\u00012\u00020\u0002:\u0002\u0005\u0006B\t\b\u0016¢\u0006\u0004\b\u0003\u0010\u0004¨\u0006\u0007"}, d2 = {"Lbj/r;", "Landroidx/fragment/app/F;", "Lbj/s;", "<init>", "()V", "bj/p", "bj/q", "react-native-screens_release"}, k = 1, mv = {1, 9, 0})
public class r extends androidx.fragment.app.F implements InterfaceC0601s {
    public final C0595l j;
    public final ArrayList k;
    public boolean l;
    public float m;
    public boolean n;
    public boolean o;
    public boolean p;

    public r() {
        this.k = new ArrayList();
        this.m = -1.0f;
        this.n = true;
        this.o = 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.");
    }

    public static final void s(ViewGroup viewGroup) {
        ViewParent parent = viewGroup.getParent();
        if (parent != null) {
            ViewGroup viewGroup2 = (ViewGroup) parent;
            viewGroup2.endViewTransition(viewGroup);
            viewGroup2.removeView(viewGroup);
        }
        viewGroup.setVisibility(0);
    }

    @Override
    public void e() {
        androidx.fragment.app.K activity = getActivity();
        if (activity == null) {
            this.l = true;
        } else {
            Rl.I.J0(q(), activity, u());
        }
    }

    public final void m() {
        ReactContext context = q().getContext();
        kotlin.jvm.internal.l.f(context, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
        ReactContext reactContext = context;
        int surfaceId = UIManagerHelper.getSurfaceId(reactContext);
        EventDispatcher eventDispatcherForReactTag = UIManagerHelper.getEventDispatcherForReactTag(reactContext, q().getId());
        if (eventDispatcherForReactTag != null) {
            eventDispatcherForReactTag.dispatchEvent(new C0679a(surfaceId, q().getId(), 1));
        }
    }

    public final void n(bj.EnumC0599p r7, bj.InterfaceC0601s r8) {
        throw new UnsupportedOperationException("Method not decompiled: bj.r.n(bj.p, bj.s):void");
    }

    public final void o(float f, boolean z) {
        if (!(this instanceof y) || this.m == f) {
            return;
        }
        float max = Math.max(0.0f, Math.min(1.0f, f));
        this.m = max;
        short s = (short) (max == 0.0f ? 1 : max == 1.0f ? 2 : 3);
        C0597n container = q().getContainer();
        boolean goingForward = container instanceof C0603u ? ((C0603u) container).getGoingForward() : false;
        ReactContext context = q().getContext();
        kotlin.jvm.internal.l.f(context, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
        ReactContext reactContext = context;
        EventDispatcher eventDispatcherForReactTag = UIManagerHelper.getEventDispatcherForReactTag(reactContext, q().getId());
        if (eventDispatcherForReactTag != null) {
            eventDispatcherForReactTag.dispatchEvent(new cj.c(UIManagerHelper.getSurfaceId(reactContext), q().getId(), this.m, z, goingForward, s));
        }
    }

    public View onCreateView(LayoutInflater inflater, ViewGroup viewGroup, Bundle bundle) {
        kotlin.jvm.internal.l.h(inflater, "inflater");
        q().setLayoutParams(new FrameLayout.LayoutParams(-1, -1));
        Context context = getContext();
        if (context == null) {
            return null;
        }
        C0600q c0600q = new C0600q(context);
        C0595l q = q();
        s(q);
        c0600q.addView(q);
        return c0600q;
    }

    public final void onDestroy() {
        super.onDestroy();
        C0597n container = q().getContainer();
        if (container == null || !container.c(this)) {
            ReactContext context = q().getContext();
            if (context instanceof ReactContext) {
                int surfaceId = UIManagerHelper.getSurfaceId(context);
                EventDispatcher eventDispatcherForReactTag = UIManagerHelper.getEventDispatcherForReactTag(context, q().getId());
                if (eventDispatcherForReactTag != null) {
                    eventDispatcherForReactTag.dispatchEvent(new C0679a(surfaceId, q().getId(), 5));
                }
            }
        }
        this.k.clear();
    }

    public final void onResume() {
        super.onResume();
        if (this.l) {
            this.l = false;
            Rl.I.J0(q(), t(), u());
        }
    }

    public final void p(boolean z) {
        this.p = !z;
        androidx.fragment.app.F parentFragment = getParentFragment();
        if (parentFragment == null || ((parentFragment instanceof r) && !((r) parentFragment).p)) {
            if (isResumed()) {
                UiThreadUtil.runOnUiThread(new C.b(z, this, 1));
            } else if (z) {
                n(EnumC0599p.c, this);
                o(1.0f, true);
            } else {
                n(EnumC0599p.d, this);
                o(0.0f, true);
            }
        }
    }

    public final C0595l q() {
        C0595l c0595l = this.j;
        if (c0595l != null) {
            return c0595l;
        }
        kotlin.jvm.internal.l.o(PaymentConstants.Event.SCREEN);
        throw null;
    }

    public void r() {
        p(true);
    }

    public final Activity t() {
        androidx.fragment.app.F fragment;
        androidx.fragment.app.K activity;
        androidx.fragment.app.K activity2 = getActivity();
        if (activity2 != null) {
            return activity2;
        }
        ReactContext context = q().getContext();
        if (context instanceof ReactContext) {
            ReactContext reactContext = context;
            if (reactContext.getCurrentActivity() != null) {
                return reactContext.getCurrentActivity();
            }
        }
        for (ViewParent container = q().getContainer(); container != null; container = container.getParent()) {
            if ((container instanceof C0595l) && (fragment = ((C0595l) container).getFragment()) != null && (activity = fragment.getActivity()) != null) {
                return activity;
            }
        }
        return null;
    }

    public final ReactContext u() {
        if (getContext() instanceof ReactContext) {
            ReactContext context = getContext();
            kotlin.jvm.internal.l.f(context, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
            return context;
        }
        if (q().getContext() instanceof ReactContext) {
            ReactContext context2 = q().getContext();
            kotlin.jvm.internal.l.f(context2, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
            return context2;
        }
        for (ViewParent container = q().getContainer(); container != null; container = container.getParent()) {
            if (container instanceof C0595l) {
                C0595l c0595l = (C0595l) container;
                if (c0595l.getContext() instanceof ReactContext) {
                    ReactContext context3 = c0595l.getContext();
                    kotlin.jvm.internal.l.f(context3, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
                    return context3;
                }
            }
        }
        return null;
    }

    public r(C0595l screenView) {
        kotlin.jvm.internal.l.h(screenView, "screenView");
        this.k = new ArrayList();
        this.m = -1.0f;
        this.n = true;
        this.o = true;
        this.j = screenView;
    }
}