正在查看: RummyCircle v11000.89 应用的 k.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: RummyCircle v11000.89 应用的 k.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.swmansion.rnscreens;
import android.content.Context;
import android.content.pm.PackageManager;
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.swmansion.rnscreens.ScreenStackHeaderSubview;
import in.juspay.hyper.constants.LogCategory;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
@Metadata
public final class k extends i implements l {
public AppBarLayout i;
public Toolbar j;
public boolean k;
public boolean l;
public View m;
public CustomSearchView n;
public Function1<? super CustomSearchView, Unit> o;
public static final class a extends Animation {
@NotNull
public final i a;
public a(@NotNull i iVar) {
Intrinsics.checkNotNullParameter(iVar, "mFragment");
this.a = iVar;
}
@Override
public final void applyTransformation(float f, @NotNull Transformation transformation) {
Intrinsics.checkNotNullParameter(transformation, "t");
super.applyTransformation(f, transformation);
this.a.r(f, !r3.isResumed());
}
}
public static final class b extends CoordinatorLayout {
@NotNull
public final i y;
@NotNull
public final a z;
public static final class a implements Animation.AnimationListener {
public a() {
}
@Override
public final void onAnimationEnd(@NotNull Animation animation) {
Intrinsics.checkNotNullParameter(animation, "animation");
b.this.y.t();
}
@Override
public final void onAnimationRepeat(@NotNull Animation animation) {
Intrinsics.checkNotNullParameter(animation, "animation");
}
@Override
public final void onAnimationStart(@NotNull Animation animation) {
Intrinsics.checkNotNullParameter(animation, "animation");
b.this.y.s(false);
}
}
public b(@NotNull Context context, @NotNull i iVar) {
super(context);
Intrinsics.checkNotNullParameter(context, LogCategory.CONTEXT);
Intrinsics.checkNotNullParameter(iVar, "mFragment");
this.y = iVar;
this.z = new a();
}
public final void clearFocus() {
if (getVisibility() != 4) {
super/*android.view.View*/.clearFocus();
}
}
public final void startAnimation(@NotNull Animation animation) {
Intrinsics.checkNotNullParameter(animation, "animation");
i iVar = this.y;
a aVar = new a(iVar);
aVar.setDuration(animation.getDuration());
boolean z = animation instanceof AnimationSet;
a aVar2 = this.z;
if (z && !iVar.isRemoving()) {
AnimationSet animationSet = (AnimationSet) animation;
animationSet.addAnimation(aVar);
animationSet.setAnimationListener(aVar2);
super/*android.view.View*/.startAnimation(animationSet);
return;
}
AnimationSet animationSet2 = new AnimationSet(true);
animationSet2.addAnimation(animation);
animationSet2.addAnimation(aVar);
animationSet2.setAnimationListener(aVar2);
super/*android.view.View*/.startAnimation(animationSet2);
}
}
public k() {
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.");
}
public final void dismiss() {
ScreenContainer container = e().getContainer();
if (!(container instanceof ScreenStack)) {
throw new IllegalStateException("ScreenStackFragment added into a non-stack container".toString());
}
ScreenStack screenStack = (ScreenStack) container;
screenStack.getClass();
Intrinsics.checkNotNullParameter(this, "screenFragment");
screenStack.j.add(this);
screenStack.d = true;
screenStack.i();
}
@Override
public final void l() {
super.l();
ScreenStackHeaderConfig headerConfig = e().getHeaderConfig();
if (headerConfig != null) {
headerConfig.b();
}
}
public final void onCreateOptionsMenu(@NotNull Menu menu, @NotNull MenuInflater menuInflater) {
Intrinsics.checkNotNullParameter(menu, "menu");
Intrinsics.checkNotNullParameter(menuInflater, "inflater");
w(menu);
super.onCreateOptionsMenu(menu, menuInflater);
}
@Override
public final View onCreateView(@NotNull LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
AppBarLayout appBarLayout;
AppBarLayout appBarLayout2;
Intrinsics.checkNotNullParameter(layoutInflater, "inflater");
Context context = getContext();
View view = null;
CoordinatorLayout bVar = context != null ? new b(context, this) : null;
Screen e = e();
CoordinatorLayout.e eVar = new CoordinatorLayout.e(-1, -1);
eVar.b(this.l ? null : new AppBarLayout.ScrollingViewBehavior());
e.setLayoutParams(eVar);
if (bVar != null) {
Screen e2 = e();
i.u(e2);
bVar.addView(e2);
}
Context context2 = getContext();
if (context2 != null) {
view = new AppBarLayout(context2);
view.setBackgroundColor(0);
view.setLayoutParams(new AppBarLayout.LayoutParams());
}
this.i = view;
if (bVar != null) {
bVar.addView(view);
}
if (this.k && (appBarLayout2 = this.i) != null) {
appBarLayout2.setTargetElevation(0.0f);
}
Toolbar toolbar = this.j;
if (toolbar != null && (appBarLayout = this.i) != null) {
i.u(toolbar);
appBarLayout.addView(toolbar);
}
setHasOptionsMenu(true);
return bVar;
}
public final void onPrepareOptionsMenu(@NotNull Menu menu) {
Intrinsics.checkNotNullParameter(menu, "menu");
w(menu);
super.onPrepareOptionsMenu(menu);
}
public final void onStart() {
View view = this.m;
if (view != null) {
view.requestFocus();
}
super.onStart();
}
public final void onStop() {
PackageManager packageManager;
Context context = getContext();
if (context != null && (packageManager = context.getPackageManager()) != null && packageManager.hasSystemFeature("android.software.leanback")) {
View e = e();
while (true) {
if (e == null) {
e = null;
break;
} else if (e.isFocused()) {
break;
} else {
e = e instanceof ViewGroup ? ((ViewGroup) e).getFocusedChild() : null;
}
}
this.m = e;
}
super.onStop();
}
@Override
public final void t() {
s(true);
View view = getView();
ViewParent parent = view != null ? view.getParent() : null;
if (parent instanceof ScreenStack) {
ScreenStack screenStack = (ScreenStack) parent;
if (screenStack.n) {
return;
}
screenStack.m();
}
}
public final boolean v() {
ScreenContainer container = e().getContainer();
if (!(container instanceof ScreenStack)) {
throw new IllegalStateException("ScreenStackFragment added into a non-stack container".toString());
}
if (!Intrinsics.a(((ScreenStack) container).getRootScreen(), e())) {
return true;
}
Fragment parentFragment = getParentFragment();
if (parentFragment instanceof k) {
return ((k) parentFragment).v();
}
return false;
}
public final void w(Menu menu) {
menu.clear();
ScreenStackHeaderConfig headerConfig = e().getHeaderConfig();
int configSubviewsCount = headerConfig != null ? headerConfig.getConfigSubviewsCount() : 0;
if (headerConfig == null || configSubviewsCount <= 0) {
return;
}
for (int i = 0; i < configSubviewsCount; i++) {
ScreenStackHeaderSubview screenStackHeaderSubview = headerConfig.a.get(i);
Intrinsics.checkNotNullExpressionValue(screenStackHeaderSubview, "configSubviews[index]");
if (screenStackHeaderSubview.getType() == ScreenStackHeaderSubview.a.e) {
Context context = getContext();
if (this.n == null && context != null) {
CustomSearchView customSearchView = new CustomSearchView(context, this);
this.n = customSearchView;
Function1<? super CustomSearchView, Unit> function1 = this.o;
if (function1 != null) {
function1.invoke(customSearchView);
}
}
MenuItem add = menu.add("");
add.setShowAsAction(2);
add.setActionView((View) this.n);
return;
}
}
}
}