正在查看: Kickcash v16.1 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Kickcash v16.1 应用的 b.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.microsoft.clarity.bp;
import android.content.Context;
import android.graphics.Canvas;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewParent;
import android.widget.HorizontalScrollView;
import android.widget.ScrollView;
import com.facebook.react.bridge.ReactContext;
import com.microsoft.clarity.hr.g;
import com.microsoft.clarity.kd.n0;
import java.util.Comparator;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
public final class b extends com.facebook.react.views.view.b {
@NotNull
private final com.microsoft.clarity.bp.a E0;
private boolean F0;
private boolean G0;
private double H0;
public static final class a<T> implements Comparator {
@Override
public final int compare(T t, T t2) {
int a;
a = com.microsoft.clarity.kr.b.a(Integer.valueOf(((d) t).getIndex()), Integer.valueOf(((d) t2).getIndex()));
return a;
}
}
public b(@NotNull Context context) {
super(context);
Intrinsics.checkNotNullParameter(context, "context");
this.E0 = new com.microsoft.clarity.bp.a();
this.H0 = 1.0d;
}
private final void c() {
ReactContext context = getContext();
Intrinsics.f(context, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
com.microsoft.clarity.od.d c = n0.c(context, getId());
if (c != null) {
ReactContext context2 = getContext();
Intrinsics.f(context2, "null cannot be cast to non-null type com.facebook.react.bridge.ReactContext");
c.d(new c(n0.e(context2), getId(), this.E0.d() / this.H0, this.E0.c() / this.H0));
}
}
private final void e() {
View parentScrollView = getParentScrollView();
if (this.G0 || parentScrollView == null) {
return;
}
boolean z = true;
if (!this.E0.e() ? getBottom() > parentScrollView.getHeight() : getRight() > parentScrollView.getWidth()) {
z = false;
}
if (z) {
Object parent = getParent();
View view = parent instanceof View ? (View) parent : null;
View footer = getFooter();
int footerDiff = getFooterDiff();
if (footerDiff == 0 || footer == null || view == null) {
return;
}
if (this.E0.e()) {
footer.offsetLeftAndRight(footerDiff);
setRight(getRight() + footerDiff);
view.setRight(view.getRight() + footerDiff);
} else {
footer.offsetTopAndBottom(footerDiff);
setBottom(getBottom() + footerDiff);
view.setBottom(view.getBottom() + footerDiff);
}
}
}
private final void f() {
if (getChildCount() <= 1 || this.G0) {
return;
}
int childCount = getChildCount();
d[] dVarArr = new d[childCount];
for (int i = 0; i < childCount; i++) {
KeyEvent.Callback childAt = getChildAt(i);
if (!(childAt instanceof d)) {
throw new IllegalStateException("CellRendererComponent outer view should always be CellContainer. Learn more here: https://shopify.github.io/flash-list/docs/usage#cellrenderercomponent.");
}
dVarArr[i] = (d) childAt;
}
if (childCount > 1) {
g.p(dVarArr, new a());
}
com.microsoft.clarity.bp.a aVar = this.E0;
aVar.j(aVar.e() ? getLeft() : getTop());
this.E0.a(dVarArr);
}
private final View getFooter() {
ViewParent parent = getParent();
ViewGroup viewGroup = parent instanceof ViewGroup ? (ViewGroup) parent : null;
if (viewGroup == null) {
return null;
}
int childCount = viewGroup.getChildCount();
for (int i = 0; i < childCount; i++) {
View childAt = viewGroup.getChildAt(i);
if ((childAt instanceof d) && ((d) childAt).getIndex() == -1) {
return childAt;
}
}
return null;
}
private final int getFooterDiff() {
int bottom;
int top;
if (getChildCount() == 0) {
this.E0.i(0);
} else if (getChildCount() == 1) {
View childAt = getChildAt(0);
com.microsoft.clarity.bp.a aVar = this.E0;
aVar.i(aVar.e() ? childAt.getRight() : childAt.getBottom());
}
if (this.E0.e()) {
bottom = getRight();
top = getLeft();
} else {
bottom = getBottom();
top = getTop();
}
return this.E0.f() - (bottom - top);
}
private final View getParentScrollView() {
for (ViewParent viewParent = getParent(); viewParent != 0; viewParent = viewParent.getParent()) {
if ((viewParent instanceof ScrollView) || (viewParent instanceof HorizontalScrollView)) {
return (View) viewParent;
}
}
return null;
}
protected void dispatchDraw(@NotNull Canvas canvas) {
Intrinsics.checkNotNullParameter(canvas, "canvas");
f();
e();
super.dispatchDraw(canvas);
View parentScrollView = getParentScrollView();
if (!this.F0 || parentScrollView == null) {
return;
}
int width = this.E0.e() ? parentScrollView.getWidth() : parentScrollView.getHeight();
int scrollX = this.E0.e() ? parentScrollView.getScrollX() : parentScrollView.getScrollY();
this.E0.b(scrollX, Math.max((this.E0.e() ? getLeft() : getTop()) - scrollX, 0), Math.max((width + scrollX) - (this.E0.e() ? getRight() : getBottom()), 0));
c();
}
@NotNull
public final com.microsoft.clarity.bp.a getAlShadow() {
return this.E0;
}
public final boolean getDisableAutoLayout() {
return this.G0;
}
public final boolean getEnableInstrumentation() {
return this.F0;
}
public final double getPixelDensity() {
return this.H0;
}
public final void setDisableAutoLayout(boolean z) {
this.G0 = z;
}
public final void setEnableInstrumentation(boolean z) {
this.F0 = z;
}
public final void setPixelDensity(double d) {
this.H0 = d;
}
}