导航菜单

页面标题

页面副标题

Kickcash v16.1 - g.java 源代码

正在查看: Kickcash v16.1 应用的 g.java JAVA 源代码文件

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


package com.swmansion.rnscreens;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.view.animation.Animation;
import android.view.animation.AnimationSet;
import android.view.animation.Transformation;
import androidx.appcompat.widget.Toolbar;
import androidx.coordinatorlayout.widget.CoordinatorLayout;
import androidx.fragment.app.Fragment;
import com.google.android.material.appbar.AppBarLayout;
import com.microsoft.clarity.kd.p;
import com.swmansion.rnscreens.j;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;

public final class g extends d implements h {
    private AppBarLayout K1;
    private Toolbar L1;
    private boolean M1;
    private boolean N1;
    private View O1;
    private com.microsoft.clarity.lp.c P1;
    private Function1<? super com.microsoft.clarity.lp.c, Unit> Q1;

    private static final class a extends Animation {

        @NotNull
        private final d X;

        public a(@NotNull d mFragment) {
            Intrinsics.checkNotNullParameter(mFragment, "mFragment");
            this.X = mFragment;
        }

        @Override
        protected void applyTransformation(float f, @NotNull Transformation t) {
            Intrinsics.checkNotNullParameter(t, "t");
            super.applyTransformation(f, t);
            this.X.n2(f, !r3.s0());
        }
    }

    private static final class b extends CoordinatorLayout {

        @NotNull
        private final d c1;

        @NotNull
        private final Animation.AnimationListener d1;

        public static final class a implements Animation.AnimationListener {
            a() {
            }

            @Override
            public void onAnimationEnd(@NotNull Animation animation) {
                Intrinsics.checkNotNullParameter(animation, "animation");
                b.this.c1.q2();
            }

            @Override
            public void onAnimationRepeat(@NotNull Animation animation) {
                Intrinsics.checkNotNullParameter(animation, "animation");
            }

            @Override
            public void onAnimationStart(@NotNull Animation animation) {
                Intrinsics.checkNotNullParameter(animation, "animation");
                b.this.c1.r2();
            }
        }

        public b(@NotNull Context context, @NotNull d mFragment) {
            super(context);
            Intrinsics.checkNotNullParameter(context, "context");
            Intrinsics.checkNotNullParameter(mFragment, "mFragment");
            this.c1 = mFragment;
            this.d1 = new a();
        }

        public void clearFocus() {
            if (getVisibility() != 4) {
                super/*android.view.View*/.clearFocus();
            }
        }

        public void startAnimation(@NotNull Animation animation) {
            Intrinsics.checkNotNullParameter(animation, "animation");
            a aVar = new a(this.c1);
            aVar.setDuration(animation.getDuration());
            if ((animation instanceof AnimationSet) && !this.c1.q0()) {
                AnimationSet animationSet = (AnimationSet) animation;
                animationSet.addAnimation(aVar);
                animationSet.setAnimationListener(this.d1);
                super/*android.view.View*/.startAnimation(animationSet);
                return;
            }
            AnimationSet animationSet2 = new AnimationSet(true);
            animationSet2.addAnimation(animation);
            animationSet2.addAnimation(aVar);
            animationSet2.setAnimationListener(this.d1);
            super/*android.view.View*/.startAnimation(animationSet2);
        }
    }

    public g(@NotNull com.swmansion.rnscreens.a screenView) {
        super(screenView);
        Intrinsics.checkNotNullParameter(screenView, "screenView");
    }

    private final boolean F2() {
        i headerConfig = i().getHeaderConfig();
        int configSubviewsCount = headerConfig != null ? headerConfig.getConfigSubviewsCount() : 0;
        if (headerConfig != null && configSubviewsCount > 0) {
            for (int i = 0; i < configSubviewsCount; i++) {
                if (headerConfig.e(i).getType() == j.a.SEARCH_BAR) {
                    return true;
                }
            }
        }
        return false;
    }

    private final void G2(Menu menu) {
        menu.clear();
        if (F2()) {
            Context B = B();
            if (this.P1 == null && B != null) {
                com.microsoft.clarity.lp.c cVar = new com.microsoft.clarity.lp.c(B, this);
                this.P1 = cVar;
                Function1<? super com.microsoft.clarity.lp.c, Unit> function1 = this.Q1;
                if (function1 != null) {
                    function1.invoke(cVar);
                }
            }
            MenuItem add = menu.add("");
            add.setShowAsAction(2);
            add.setActionView((View) this.P1);
        }
    }

    private final View x2() {
        View i = i();
        while (i != null) {
            if (i.isFocused()) {
                return i;
            }
            i = i instanceof ViewGroup ? ((ViewGroup) i).getFocusedChild() : null;
        }
        return null;
    }

    private final void z2() {
        View f0 = f0();
        ViewParent parent = f0 != null ? f0.getParent() : null;
        if (parent instanceof f) {
            ((f) parent).I();
        }
    }

    public void A2() {
        Toolbar toolbar;
        AppBarLayout appBarLayout = this.K1;
        if (appBarLayout != null && (toolbar = this.L1) != null && toolbar.getParent() == appBarLayout) {
            appBarLayout.removeView(toolbar);
        }
        this.L1 = null;
    }

    public final void B2(Function1<? super com.microsoft.clarity.lp.c, Unit> function1) {
        this.Q1 = function1;
    }

    public void C2(@NotNull Toolbar toolbar) {
        Intrinsics.checkNotNullParameter(toolbar, "toolbar");
        AppBarLayout appBarLayout = this.K1;
        if (appBarLayout != null) {
            appBarLayout.addView(toolbar);
        }
        AppBarLayout.f fVar = new AppBarLayout.f(-1, -2);
        fVar.g(0);
        toolbar.setLayoutParams(fVar);
        this.L1 = toolbar;
    }

    public void D2(boolean z) {
        if (this.M1 != z) {
            AppBarLayout appBarLayout = this.K1;
            if (appBarLayout != null) {
                appBarLayout.setElevation(z ? 0.0f : p.d(4.0f));
            }
            AppBarLayout appBarLayout2 = this.K1;
            if (appBarLayout2 != null) {
                appBarLayout2.setStateListAnimator(null);
            }
            this.M1 = z;
        }
    }

    public void E2(boolean z) {
        if (this.N1 != z) {
            CoordinatorLayout.f layoutParams = i().getLayoutParams();
            Intrinsics.f(layoutParams, "null cannot be cast to non-null type androidx.coordinatorlayout.widget.CoordinatorLayout.LayoutParams");
            layoutParams.o(z ? null : new AppBarLayout.ScrollingViewBehavior());
            this.N1 = z;
        }
    }

    public void F0(@NotNull Menu menu, @NotNull MenuInflater inflater) {
        Intrinsics.checkNotNullParameter(menu, "menu");
        Intrinsics.checkNotNullParameter(inflater, "inflater");
        G2(menu);
        super.F0(menu, inflater);
    }

    @Override
    public View G0(@NotNull LayoutInflater inflater, ViewGroup viewGroup, Bundle bundle) {
        AppBarLayout appBarLayout;
        AppBarLayout appBarLayout2;
        Intrinsics.checkNotNullParameter(inflater, "inflater");
        Context B = B();
        View view = null;
        CoordinatorLayout bVar = B != null ? new b(B, this) : null;
        com.swmansion.rnscreens.a i = i();
        CoordinatorLayout.f fVar = new CoordinatorLayout.f(-1, -1);
        fVar.o(this.N1 ? null : new AppBarLayout.ScrollingViewBehavior());
        i.setLayoutParams(fVar);
        if (bVar != null) {
            bVar.addView(d.s2(i()));
        }
        Context B2 = B();
        if (B2 != null) {
            view = new AppBarLayout(B2);
            view.setBackgroundColor(0);
            view.setLayoutParams(new AppBarLayout.f(-1, -2));
        }
        this.K1 = view;
        if (bVar != null) {
            bVar.addView(view);
        }
        if (this.M1 && (appBarLayout2 = this.K1) != null) {
            appBarLayout2.setElevation(0.0f);
        }
        Toolbar toolbar = this.L1;
        if (toolbar != null && (appBarLayout = this.K1) != null) {
            appBarLayout.addView(d.s2(toolbar));
        }
        Q1(true);
        return bVar;
    }

    public void U0(@NotNull Menu menu) {
        Intrinsics.checkNotNullParameter(menu, "menu");
        G2(menu);
        super.U0(menu);
    }

    public void Z0() {
        View view = this.O1;
        if (view != null) {
            view.requestFocus();
        }
        super.Z0();
    }

    public void a1() {
        if (com.microsoft.clarity.np.a.a.a(B())) {
            this.O1 = x2();
        }
        super.a1();
    }

    @Override
    public void m() {
        super.m();
        i headerConfig = i().getHeaderConfig();
        if (headerConfig != null) {
            headerConfig.i();
        }
    }

    @Override
    public void q2() {
        super.q2();
        z2();
    }

    public boolean v2() {
        com.swmansion.rnscreens.b container = i().getContainer();
        if (!(container instanceof f)) {
            throw new IllegalStateException("ScreenStackFragment added into a non-stack container".toString());
        }
        if (!Intrinsics.c(((f) container).getRootScreen(), i())) {
            return true;
        }
        Fragment O = O();
        if (O instanceof g) {
            return ((g) O).v2();
        }
        return false;
    }

    public void w2() {
        com.swmansion.rnscreens.b container = i().getContainer();
        if (!(container instanceof f)) {
            throw new IllegalStateException("ScreenStackFragment added into a non-stack container".toString());
        }
        ((f) container).D(this);
    }

    public final com.microsoft.clarity.lp.c y2() {
        return this.P1;
    }

    public g() {
        throw new IllegalStateException("ScreenStack 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.");
    }
}