package androidx.coordinatorlayout.widget; import android.content.Context; import android.content.res.Resources; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Rect; import android.graphics.drawable.ColorDrawable; import android.graphics.drawable.Drawable; import android.os.Build; import android.os.Parcel; import android.os.Parcelable; import android.os.SystemClock; import android.text.TextUtils; import android.util.AttributeSet; import android.util.SparseArray; import android.view.MotionEvent; import android.view.View; import android.view.ViewGroup; import android.view.ViewTreeObserver; import androidx.core.view.ViewCompat; import androidx.core.view.WindowInsetsCompat; import com.google.android.gms.maps.model.BitmapDescriptorFactory; import io.flutter.plugin.platform.PlatformPlugin; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.reflect.Constructor; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import o.C17469wxr; import o.C4002bNM; import o.HpP; import o.JXX; import o.LbT; import o.Opi; import o.RDy; import o.Tlu; import o.XgG; import o.ZEY; import o.htg; import o.nMh; /* loaded from: classes.dex */ public class CoordinatorLayout extends ViewGroup implements htg { private static Class[] c; private static Comparator d; private static String f; private static final RDy.Sts g; private static ThreadLocal>> i; boolean a; public WindowInsetsCompat b; ViewGroup.OnHierarchyChangeListener e; private LbT h; private final int[] j; private final C4002bNM k; private boolean l; private final List m; private boolean n; /* renamed from: o, reason: collision with root package name */ private View f6384o; private boolean p; private final JXX q; private View r; private int[] s; private final int[] t; private final List u; private jbe v; private final List w; private Drawable y; @Retention(RetentionPolicy.RUNTIME) @Deprecated /* loaded from: classes.dex */ public @interface HBt { Class c(); } /* loaded from: classes.dex */ public interface IeS { Sts a(); } static { Package r0 = CoordinatorLayout.class.getPackage(); f = r0 != null ? r0.getName() : null; d = new tOB(); c = new Class[]{Context.class, AttributeSet.class}; i = new ThreadLocal<>(); g = new RDy.LWm(12); } public CoordinatorLayout(Context context) { this(context, null); } public CoordinatorLayout(Context context, AttributeSet attributeSet) { this(context, attributeSet, Opi.RVV.coordinatorLayoutStyle); } public CoordinatorLayout(Context context, AttributeSet attributeSet, int i2) { super(context, attributeSet, i2); TypedArray obtainStyledAttributes; this.m = new ArrayList(); this.k = new C4002bNM<>(); this.u = new ArrayList(); this.w = new ArrayList(); this.j = new int[2]; this.t = new int[2]; this.q = new JXX(); if (i2 == 0) { obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, Opi.IeS.CoordinatorLayout, 0, Opi.HBt.Widget_Support_CoordinatorLayout); } else { obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, Opi.IeS.CoordinatorLayout, i2, 0); } if (Build.VERSION.SDK_INT >= 29) { if (i2 == 0) { saveAttributeDataForStyleable(context, Opi.IeS.CoordinatorLayout, attributeSet, obtainStyledAttributes, 0, Opi.HBt.Widget_Support_CoordinatorLayout); } else { saveAttributeDataForStyleable(context, Opi.IeS.CoordinatorLayout, attributeSet, obtainStyledAttributes, i2, 0); } } int resourceId = obtainStyledAttributes.getResourceId(Opi.IeS.CoordinatorLayout_keylines, 0); if (resourceId != 0) { Resources resources = context.getResources(); this.s = resources.getIntArray(resourceId); float f2 = resources.getDisplayMetrics().density; int length = this.s.length; for (int i3 = 0; i3 < length; i3++) { this.s[i3] = (int) (r12[i3] * f2); } } this.y = obtainStyledAttributes.getDrawable(Opi.IeS.CoordinatorLayout_statusBarBackground); obtainStyledAttributes.recycle(); e(); super.setOnHierarchyChangeListener(new LWm(this)); if (ViewCompat.n(this) == 0) { ViewCompat.g(this, 1); } } @Override // android.view.ViewGroup, android.view.View public void onAttachedToWindow() { super.onAttachedToWindow(); d(false); if (this.p) { if (this.v == null) { this.v = new jbe(this); } getViewTreeObserver().addOnPreDrawListener(this.v); } if (this.b == null && ViewCompat.l(this)) { ViewCompat.J(this); } this.l = true; } @Override // android.view.ViewGroup, android.view.View public void onDetachedFromWindow() { super.onDetachedFromWindow(); d(false); if (this.p && this.v != null) { getViewTreeObserver().removeOnPreDrawListener(this.v); } View view = this.r; if (view != null) { onStopNestedScroll(view); } this.l = false; } public void setStatusBarBackground(Drawable drawable) { Drawable drawable2 = this.y; if (drawable2 != drawable) { if (drawable2 != null) { drawable2.setCallback(null); } Drawable mutate = drawable != null ? drawable.mutate() : null; this.y = mutate; if (mutate != null) { if (mutate.isStateful()) { this.y.setState(getDrawableState()); } Tlu.pD_(this.y, ViewCompat.m(this)); this.y.setVisible(getVisibility() == 0, false); this.y.setCallback(this); } ViewCompat.N(this); } } @Override // android.view.ViewGroup, android.view.View protected void drawableStateChanged() { super.drawableStateChanged(); int[] drawableState = getDrawableState(); Drawable drawable = this.y; if (drawable != null && drawable.isStateful() && drawable.setState(drawableState)) { invalidate(); } } @Override // android.view.View protected boolean verifyDrawable(Drawable drawable) { return super.verifyDrawable(drawable) || drawable == this.y; } @Override // android.view.View public void setVisibility(int i2) { super.setVisibility(i2); boolean z = i2 == 0; Drawable drawable = this.y; if (drawable == null || drawable.isVisible() == z) { return; } this.y.setVisible(z, false); } public void setStatusBarBackgroundResource(int i2) { setStatusBarBackground(i2 != 0 ? nMh.getDrawable(getContext(), i2) : null); } public void setStatusBarBackgroundColor(int i2) { setStatusBarBackground(new ColorDrawable(i2)); } private void d(boolean z) { int childCount = getChildCount(); for (int i2 = 0; i2 < childCount; i2++) { View childAt = getChildAt(i2); Sts sts = ((RVV) childAt.getLayoutParams()).h; if (sts != null) { long uptimeMillis = SystemClock.uptimeMillis(); MotionEvent obtain = MotionEvent.obtain(uptimeMillis, uptimeMillis, 3, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, 0); if (z) { sts.LJ_(this, childAt, obtain); } else { sts.MY_(this, childAt, obtain); } obtain.recycle(); } } for (int i3 = 0; i3 < childCount; i3++) { ((RVV) getChildAt(i3).getLayoutParams()).n = false; } this.f6384o = null; this.n = false; } private boolean lx_(MotionEvent motionEvent, int i2) { int actionMasked = motionEvent.getActionMasked(); List list = this.u; list.clear(); boolean isChildrenDrawingOrderEnabled = isChildrenDrawingOrderEnabled(); int childCount = getChildCount(); for (int i3 = childCount - 1; i3 >= 0; i3--) { list.add(getChildAt(isChildrenDrawingOrderEnabled ? getChildDrawingOrder(childCount, i3) : i3)); } Comparator comparator = d; if (comparator != null) { Collections.sort(list, comparator); } int size = list.size(); MotionEvent motionEvent2 = null; boolean z = false; boolean z2 = false; for (int i4 = 0; i4 < size; i4++) { View view = list.get(i4); RVV rvv = (RVV) view.getLayoutParams(); Sts sts = rvv.h; if (!(z || z2) || actionMasked == 0) { if (!z && sts != null) { if (i2 == 0) { z = sts.LJ_(this, view, motionEvent); } else if (i2 == 1) { z = sts.MY_(this, view, motionEvent); } if (z) { this.f6384o = view; } } if (rvv.h == null) { rvv.n = false; } boolean z3 = rvv.n; boolean z4 = rvv.n; if (z4) { z4 = true; } else { Sts sts2 = rvv.h; rvv.n = z4; } z2 = z4 && !z3; if (z4 && !z2) { break; } } else if (sts != null) { if (motionEvent2 == null) { long uptimeMillis = SystemClock.uptimeMillis(); motionEvent2 = MotionEvent.obtain(uptimeMillis, uptimeMillis, 3, BitmapDescriptorFactory.HUE_RED, BitmapDescriptorFactory.HUE_RED, 0); } if (i2 == 0) { sts.LJ_(this, view, motionEvent2); } else if (i2 == 1) { sts.MY_(this, view, motionEvent2); } } } list.clear(); return z; } @Override // android.view.ViewGroup public boolean onInterceptTouchEvent(MotionEvent motionEvent) { int actionMasked = motionEvent.getActionMasked(); if (actionMasked == 0) { d(true); } boolean lx_ = lx_(motionEvent, 0); if (actionMasked == 1 || actionMasked == 3) { d(true); } return lx_; } /* JADX WARN: Code restructure failed: missing block: B:4:0x0012, code lost: if (r3 != false) goto L8; */ /* JADX WARN: Removed duplicated region for block: B:10:0x004a */ /* JADX WARN: Removed duplicated region for block: B:17:0x0035 */ /* JADX WARN: Removed duplicated region for block: B:8:0x002f */ @Override // android.view.View /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public boolean onTouchEvent(android.view.MotionEvent r18) { /* r17 = this; r0 = r17 r1 = r18 int r2 = r18.getActionMasked() android.view.View r3 = r0.f6384o r4 = 1 r5 = 0 if (r3 != 0) goto L15 boolean r3 = r0.lx_(r1, r4) if (r3 == 0) goto L29 goto L16 L15: r3 = r5 L16: android.view.View r6 = r0.f6384o android.view.ViewGroup$LayoutParams r6 = r6.getLayoutParams() androidx.coordinatorlayout.widget.CoordinatorLayout$RVV r6 = (androidx.coordinatorlayout.widget.CoordinatorLayout.RVV) r6 androidx.coordinatorlayout.widget.CoordinatorLayout$Sts r6 = r6.h if (r6 == 0) goto L29 android.view.View r7 = r0.f6384o boolean r6 = r6.MY_(r0, r7, r1) goto L2a L29: r6 = r5 L2a: android.view.View r7 = r0.f6384o r8 = 0 if (r7 != 0) goto L35 boolean r1 = super.onTouchEvent(r18) r6 = r6 | r1 goto L48 L35: if (r3 == 0) goto L48 long r11 = android.os.SystemClock.uptimeMillis() r13 = 3 r14 = 0 r15 = 0 r16 = 0 r9 = r11 android.view.MotionEvent r8 = android.view.MotionEvent.obtain(r9, r11, r13, r14, r15, r16) super.onTouchEvent(r8) L48: if (r8 == 0) goto L4d r8.recycle() L4d: if (r2 == r4) goto L52 r1 = 3 if (r2 != r1) goto L55 L52: r0.d(r5) L55: return r6 */ throw new UnsupportedOperationException("Method not decompiled: androidx.coordinatorlayout.widget.CoordinatorLayout.onTouchEvent(android.view.MotionEvent):boolean"); } @Override // android.view.ViewGroup, android.view.ViewParent public void requestDisallowInterceptTouchEvent(boolean z) { super.requestDisallowInterceptTouchEvent(z); if (!z || this.n) { return; } d(false); this.n = true; } /* JADX WARN: Multi-variable type inference failed */ static Sts lw_(Context context, AttributeSet attributeSet, String str) { if (TextUtils.isEmpty(str)) { return null; } if (str.startsWith(".")) { StringBuilder sb = new StringBuilder(); sb.append(context.getPackageName()); sb.append(str); str = sb.toString(); } else if (str.indexOf(46) < 0) { String str2 = f; if (!TextUtils.isEmpty(str2)) { StringBuilder sb2 = new StringBuilder(); sb2.append(str2); sb2.append('.'); sb2.append(str); str = sb2.toString(); } } try { ThreadLocal>> threadLocal = i; Map> map = threadLocal.get(); if (map == null) { map = new HashMap<>(); threadLocal.set(map); } Constructor constructor = map.get(str); if (constructor == null) { constructor = Class.forName(str, false, context.getClassLoader()).getConstructor(c); constructor.setAccessible(true); map.put(str, constructor); } return constructor.newInstance(context, attributeSet); } catch (Exception e) { throw new RuntimeException("Could not inflate Behavior subclass ".concat(String.valueOf(str)), e); } } /* JADX WARN: Multi-variable type inference failed */ private static RVV d(View view) { RVV rvv = (RVV) view.getLayoutParams(); if (!rvv.f) { if (view instanceof IeS) { rvv.e(((IeS) view).a()); rvv.f = true; } else { HBt hBt = null; for (Class cls = view.getClass(); cls != null; cls = cls.getSuperclass()) { hBt = (HBt) cls.getAnnotation(HBt.class); if (hBt != null) { break; } } if (hBt != null) { try { rvv.e(hBt.c().getDeclaredConstructor(new Class[0]).newInstance(new Object[0])); } catch (Exception unused) { } } rvv.f = true; } } return rvv; } @Override // android.view.View protected int getSuggestedMinimumWidth() { return Math.max(super.getSuggestedMinimumWidth(), getPaddingLeft() + getPaddingRight()); } @Override // android.view.View protected int getSuggestedMinimumHeight() { return Math.max(super.getSuggestedMinimumHeight(), getPaddingTop() + getPaddingBottom()); } public final void a(View view, int i2, int i3, int i4, int i5) { measureChildWithMargins(view, i2, i3, i4, i5); } /* JADX WARN: Code restructure failed: missing block: B:181:0x034e, code lost: if (r0.a(r31, r19, r25, r20, r26, 0) == false) goto L180; */ /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Removed duplicated region for block: B:169:0x02b5 */ /* JADX WARN: Removed duplicated region for block: B:175:0x02ef */ /* JADX WARN: Removed duplicated region for block: B:180:0x032c */ /* JADX WARN: Removed duplicated region for block: B:186:0x0351 */ @Override // android.view.View /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ protected void onMeasure(int r32, int r33) { /* Method dump skipped, instructions count: 975 To view this dump add '--comments-level debug' option */ throw new UnsupportedOperationException("Method not decompiled: androidx.coordinatorlayout.widget.CoordinatorLayout.onMeasure(int, int):void"); } public final void c(View view, int i2) { RVV rvv = (RVV) view.getLayoutParams(); if (rvv.i == null && rvv.j != -1) { throw new IllegalStateException("An anchor may not be changed after CoordinatorLayout measurement begins before layout is complete."); } if (rvv.i != null) { a(view, rvv.i, i2); } else if (rvv.e >= 0) { c(view, rvv.e, i2); } else { b(view, i2); } } @Override // android.view.ViewGroup, android.view.View protected void onLayout(boolean z, int i2, int i3, int i4, int i5) { Sts sts; int m = ViewCompat.m(this); int size = this.m.size(); for (int i6 = 0; i6 < size; i6++) { View view = this.m.get(i6); if (view.getVisibility() != 8 && ((sts = ((RVV) view.getLayoutParams()).h) == null || !sts.c(this, view, m))) { c(view, m); } } } @Override // android.view.View public void onDraw(Canvas canvas) { super.onDraw(canvas); if (!this.a || this.y == null) { return; } WindowInsetsCompat windowInsetsCompat = this.b; int i2 = windowInsetsCompat != null ? windowInsetsCompat.i() : 0; if (i2 > 0) { this.y.setBounds(0, 0, getWidth(), i2); this.y.draw(canvas); } } @Override // android.view.View public void setFitsSystemWindows(boolean z) { super.setFitsSystemWindows(z); e(); } private void ly_(View view, boolean z, Rect rect) { if (view.isLayoutRequested() || view.getVisibility() == 8) { rect.setEmpty(); } else if (!z) { rect.set(view.getLeft(), view.getTop(), view.getRight(), view.getBottom()); } else { C17469wxr.lF_(this, view, rect); } } private static void lv_(int i2, Rect rect, Rect rect2, RVV rvv, int i3, int i4) { int width; int height; int i5 = rvv.c; if (i5 == 0) { i5 = 17; } int c2 = HpP.c(i5, i2); int i6 = rvv.d; if ((i6 & 7) == 0) { i6 |= 8388611; } if ((i6 & 112) == 0) { i6 |= 48; } int c3 = HpP.c(i6, i2); int i7 = c2 & 7; int i8 = c2 & 112; int i9 = c3 & 7; int i10 = c3 & 112; if (i9 == 1) { width = rect.left + (rect.width() / 2); } else if (i9 != 5) { width = rect.left; } else { width = rect.right; } if (i10 == 16) { height = rect.top + (rect.height() / 2); } else if (i10 != 80) { height = rect.top; } else { height = rect.bottom; } if (i7 == 1) { width -= i3 / 2; } else if (i7 != 5) { width -= i3; } if (i8 == 16) { height -= i4 / 2; } else if (i8 != 80) { height -= i4; } rect2.set(width, height, i3 + width, i4 + height); } private void lu_(RVV rvv, Rect rect, int i2, int i3) { int width = getWidth(); int height = getHeight(); int paddingLeft = getPaddingLeft(); int i4 = ((ViewGroup.MarginLayoutParams) rvv).leftMargin; int i5 = paddingLeft + i4; int max = Math.max(i5, Math.min(rect.left, ((width - getPaddingRight()) - i2) - ((ViewGroup.MarginLayoutParams) rvv).rightMargin)); int paddingTop = getPaddingTop(); int i6 = ((ViewGroup.MarginLayoutParams) rvv).topMargin; int i7 = paddingTop + i6; int max2 = Math.max(i7, Math.min(rect.top, ((height - getPaddingBottom()) - i3) - ((ViewGroup.MarginLayoutParams) rvv).bottomMargin)); rect.set(max, max2, i2 + max, i3 + max2); } private void a(View view, View view2, int i2) { RDy.Sts sts = g; Rect d2 = sts.d(); if (d2 == null) { d2 = new Rect(); } Rect d3 = sts.d(); if (d3 == null) { d3 = new Rect(); } Rect rect = d3; try { C17469wxr.lF_(this, view2, d2); RVV rvv = (RVV) view.getLayoutParams(); int measuredWidth = view.getMeasuredWidth(); int measuredHeight = view.getMeasuredHeight(); lv_(i2, d2, rect, rvv, measuredWidth, measuredHeight); lu_(rvv, rect, measuredWidth, measuredHeight); view.layout(rect.left, rect.top, rect.right, rect.bottom); d2.setEmpty(); sts.d(d2); rect.setEmpty(); sts.d(rect); } catch (Throwable th) { d2.setEmpty(); RDy.Sts sts2 = g; sts2.d(d2); rect.setEmpty(); sts2.d(rect); throw th; } } private void c(View view, int i2, int i3) { RVV rvv = (RVV) view.getLayoutParams(); int i4 = rvv.c; if (i4 == 0) { i4 = 8388661; } int c2 = HpP.c(i4, i3); int i5 = c2 & 7; int i6 = c2 & 112; int width = getWidth(); int height = getHeight(); int measuredWidth = view.getMeasuredWidth(); int measuredHeight = view.getMeasuredHeight(); if (i3 == 1) { i2 = width - i2; } int[] iArr = this.s; int i7 = 0; int i8 = ((iArr == null || i2 < 0 || i2 >= iArr.length) ? 0 : iArr[i2]) - measuredWidth; if (i5 == 1) { i8 += measuredWidth / 2; } else if (i5 == 5) { i8 += measuredWidth; } if (i6 == 16) { i7 = measuredHeight / 2; } else if (i6 == 80) { i7 = measuredHeight; } int max = Math.max(getPaddingLeft() + ((ViewGroup.MarginLayoutParams) rvv).leftMargin, Math.min(i8, ((width - getPaddingRight()) - measuredWidth) - ((ViewGroup.MarginLayoutParams) rvv).rightMargin)); int max2 = Math.max(getPaddingTop() + ((ViewGroup.MarginLayoutParams) rvv).topMargin, Math.min(i7, ((height - getPaddingBottom()) - measuredHeight) - ((ViewGroup.MarginLayoutParams) rvv).bottomMargin)); view.layout(max, max2, measuredWidth + max, measuredHeight + max2); } private void b(View view, int i2) { RVV rvv = (RVV) view.getLayoutParams(); RDy.Sts sts = g; Rect d2 = sts.d(); if (d2 == null) { d2 = new Rect(); } d2.set(getPaddingLeft() + ((ViewGroup.MarginLayoutParams) rvv).leftMargin, getPaddingTop() + ((ViewGroup.MarginLayoutParams) rvv).topMargin, (getWidth() - getPaddingRight()) - ((ViewGroup.MarginLayoutParams) rvv).rightMargin, (getHeight() - getPaddingBottom()) - ((ViewGroup.MarginLayoutParams) rvv).bottomMargin); if (this.b != null && ViewCompat.l(this) && !ViewCompat.l(view)) { d2.left += this.b.g(); d2.top += this.b.i(); d2.right -= this.b.j(); d2.bottom -= this.b.f(); } Rect d3 = sts.d(); if (d3 == null) { d3 = new Rect(); } Rect rect = d3; int i3 = rvv.c; if ((i3 & 7) == 0) { i3 |= 8388611; } if ((i3 & 112) == 0) { i3 |= 48; } HpP.ro_(i3, view.getMeasuredWidth(), view.getMeasuredHeight(), d2, rect, i2); view.layout(rect.left, rect.top, rect.right, rect.bottom); d2.setEmpty(); sts.d(d2); rect.setEmpty(); sts.d(rect); } @Override // android.view.ViewGroup protected boolean drawChild(Canvas canvas, View view, long j) { RVV rvv = (RVV) view.getLayoutParams(); if (rvv.h != null) { Sts sts = rvv.h; } return super.drawChild(canvas, view, j); } /* JADX WARN: Multi-variable type inference failed */ /* JADX WARN: Type inference failed for: r6v0 */ /* JADX WARN: Type inference failed for: r6v1, types: [int] */ /* JADX WARN: Type inference failed for: r6v16 */ final void b(int i2) { int i3; Rect rect; int i4; boolean z; boolean z2; boolean z3; boolean z4; int width; int i5; int height; int i6; int i7; RVV rvv; int i8; Rect rect2; int i9; boolean z5; int i10; RVV rvv2; Sts sts; int m = ViewCompat.m(this); int size = this.m.size(); RDy.Sts sts2 = g; Rect d2 = sts2.d(); if (d2 == null) { d2 = new Rect(); } Rect rect3 = d2; Rect d3 = sts2.d(); if (d3 == null) { d3 = new Rect(); } Rect rect4 = d3; Rect d4 = sts2.d(); if (d4 == null) { d4 = new Rect(); } Rect rect5 = d4; boolean z6 = false; int i11 = 0; while (i11 < size) { View view = this.m.get(i11); RVV rvv3 = (RVV) view.getLayoutParams(); if (i2 == 0 && view.getVisibility() == 8) { i4 = size; rect = rect5; z = z6; i3 = i11; } else { ?? r6 = z6; while (r6 < i11) { if (rvv3.g == this.m.get(r6)) { RVV rvv4 = (RVV) view.getLayoutParams(); if (rvv4.i != null) { RDy.Sts sts3 = g; Rect d5 = sts3.d(); if (d5 == null) { d5 = new Rect(); } Rect d6 = sts3.d(); if (d6 == null) { d6 = new Rect(); } i8 = size; Rect rect6 = d6; Rect d7 = sts3.d(); if (d7 == null) { d7 = new Rect(); } Rect rect7 = d7; C17469wxr.lF_(this, rvv4.i, d5); ly_(view, z6, rect6); int measuredWidth = view.getMeasuredWidth(); int measuredHeight = view.getMeasuredHeight(); Rect rect8 = d5; i9 = i11; rect2 = rect5; i7 = r6; rvv = rvv3; lv_(m, rect8, rect7, rvv4, measuredWidth, measuredHeight); if (rect7.left == rect6.left && rect7.top == rect6.top) { i10 = measuredWidth; rvv2 = rvv4; z5 = false; } else { z5 = true; i10 = measuredWidth; rvv2 = rvv4; } lu_(rvv2, rect7, i10, measuredHeight); int i12 = rect7.left - rect6.left; int i13 = rect7.top - rect6.top; if (i12 != 0) { ViewCompat.e(view, i12); } if (i13 != 0) { ViewCompat.d(view, i13); } if (z5 && (sts = rvv2.h) != null) { sts.e(this, view, rvv2.i); } rect8.setEmpty(); sts3.d(rect8); rect6.setEmpty(); sts3.d(rect6); rect7.setEmpty(); sts3.d(rect7); size = i8; i11 = i9; rect5 = rect2; rvv3 = rvv; z6 = false; r6 = i7 + 1; } } i7 = r6; rvv = rvv3; i8 = size; rect2 = rect5; i9 = i11; size = i8; i11 = i9; rect5 = rect2; rvv3 = rvv; z6 = false; r6 = i7 + 1; } RVV rvv5 = rvv3; int i14 = size; Rect rect9 = rect5; i3 = i11; ly_(view, true, rect4); if (rvv5.a != 0 && !rect4.isEmpty()) { int c2 = HpP.c(rvv5.a, m); int i15 = c2 & 112; if (i15 == 48) { rect3.top = Math.max(rect3.top, rect4.bottom); } else if (i15 == 80) { rect3.bottom = Math.max(rect3.bottom, getHeight() - rect4.top); } int i16 = c2 & 7; if (i16 == 3) { rect3.left = Math.max(rect3.left, rect4.right); } else if (i16 == 5) { rect3.right = Math.max(rect3.right, getWidth() - rect4.left); } } if (rvv5.b != 0 && view.getVisibility() == 0 && ViewCompat.G(view) && view.getWidth() > 0 && view.getHeight() > 0) { RVV rvv6 = (RVV) view.getLayoutParams(); Sts sts4 = rvv6.h; RDy.Sts sts5 = g; Rect d8 = sts5.d(); if (d8 == null) { d8 = new Rect(); } Rect d9 = sts5.d(); if (d9 == null) { d9 = new Rect(); } d9.set(view.getLeft(), view.getTop(), view.getRight(), view.getBottom()); if (sts4 != null && sts4.Jp_(this, view, d8)) { if (!d9.contains(d8)) { StringBuilder sb = new StringBuilder("Rect should be within the child's bounds. Rect:"); sb.append(d8.toShortString()); sb.append(" | Bounds:"); sb.append(d9.toShortString()); throw new IllegalArgumentException(sb.toString()); } } else { d8.set(d9); } d9.setEmpty(); sts5.d(d9); if (d8.isEmpty()) { d8.setEmpty(); sts5.d(d8); } else { int c3 = HpP.c(rvv6.b, m); if ((c3 & 48) != 48 || (i6 = (d8.top - ((ViewGroup.MarginLayoutParams) rvv6).topMargin) - rvv6.r) >= rect3.top) { z3 = false; } else { d(view, rect3.top - i6); z3 = true; } if ((c3 & 80) == 80 && (height = ((getHeight() - d8.bottom) - ((ViewGroup.MarginLayoutParams) rvv6).bottomMargin) + rvv6.r) < rect3.bottom) { d(view, height - rect3.bottom); } else if (!z3) { d(view, 0); } if ((c3 & 3) != 3 || (i5 = (d8.left - ((ViewGroup.MarginLayoutParams) rvv6).leftMargin) - rvv6.f6385o) >= rect3.left) { z4 = false; } else { e(view, rect3.left - i5); z4 = true; } if ((c3 & 5) == 5 && (width = ((getWidth() - d8.right) - ((ViewGroup.MarginLayoutParams) rvv6).rightMargin) + rvv6.f6385o) < rect3.right) { e(view, width - rect3.right); } else if (!z4) { e(view, 0); } d8.setEmpty(); sts5.d(d8); } } if (i2 != 2) { rect = rect9; rect.set(((RVV) view.getLayoutParams()).q); if (rect.equals(rect4)) { i4 = i14; z = false; } else { ((RVV) view.getLayoutParams()).q.set(rect4); } } else { rect = rect9; } i4 = i14; for (int i17 = i3 + 1; i17 < i4; i17++) { View view2 = this.m.get(i17); RVV rvv7 = (RVV) view2.getLayoutParams(); Sts sts6 = rvv7.h; if (sts6 != null && sts6.e(view2, view)) { if (i2 == 0 && rvv7.m) { rvv7.m = false; } else { if (i2 == 2) { sts6.c(this, view); z2 = true; } else { z2 = sts6.e(this, view2, view); } if (i2 == 1) { rvv7.m = z2; } } } } z = false; } i11 = i3 + 1; rect5 = rect; z6 = z; size = i4; } Rect rect10 = rect5; rect3.setEmpty(); RDy.Sts sts7 = g; sts7.d(rect3); rect4.setEmpty(); sts7.d(rect4); rect10.setEmpty(); sts7.d(rect10); } private static void e(View view, int i2) { RVV rvv = (RVV) view.getLayoutParams(); if (rvv.f6385o != i2) { ViewCompat.e(view, i2 - rvv.f6385o); rvv.f6385o = i2; } } private static void d(View view, int i2) { RVV rvv = (RVV) view.getLayoutParams(); if (rvv.r != i2) { ViewCompat.d(view, i2 - rvv.r); rvv.r = i2; } } public final void b(View view) { ArrayList arrayList = this.k.a.get(view); if (arrayList == null || arrayList.isEmpty()) { return; } for (int i2 = 0; i2 < arrayList.size(); i2++) { View view2 = arrayList.get(i2); Sts sts = ((RVV) view2.getLayoutParams()).h; if (sts != null) { sts.e(this, view2, view); } } } public final List c(View view) { C4002bNM c4002bNM = this.k; int size = c4002bNM.a.size(); ArrayList arrayList = null; for (int i2 = 0; i2 < size; i2++) { int i3 = i2 << 1; ArrayList arrayList2 = (ArrayList) c4002bNM.a.e[i3 + 1]; if (arrayList2 != null && arrayList2.contains(view)) { if (arrayList == null) { arrayList = new ArrayList(); } arrayList.add(c4002bNM.a.e[i3]); } } this.w.clear(); if (arrayList != null) { this.w.addAll(arrayList); } return this.w; } public final List e(View view) { ArrayList arrayList = this.k.a.get(view); this.w.clear(); if (arrayList != null) { this.w.addAll(arrayList); } return this.w; } public final boolean e(View view, int i2, int i3) { RDy.Sts sts = g; Rect d2 = sts.d(); if (d2 == null) { d2 = new Rect(); } C17469wxr.lF_(this, view, d2); try { boolean contains = d2.contains(i2, i3); d2.setEmpty(); sts.d(d2); return contains; } catch (Throwable th) { d2.setEmpty(); g.d(d2); throw th; } } public final boolean c(View view, View view2) { boolean z = false; if (view.getVisibility() != 0 || view2.getVisibility() != 0) { return false; } RDy.Sts sts = g; Rect d2 = sts.d(); if (d2 == null) { d2 = new Rect(); } ly_(view, view.getParent() != this, d2); Rect d3 = sts.d(); if (d3 == null) { d3 = new Rect(); } ly_(view2, view2.getParent() != this, d3); try { if (d2.left <= d3.right && d2.top <= d3.bottom && d2.right >= d3.left) { if (d2.bottom >= d3.top) { z = true; } } d2.setEmpty(); sts.d(d2); d3.setEmpty(); sts.d(d3); return z; } catch (Throwable th) { d2.setEmpty(); RDy.Sts sts2 = g; sts2.d(d2); d3.setEmpty(); sts2.d(d3); throw th; } } @Override // android.view.ViewGroup protected boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) { return (layoutParams instanceof RVV) && super.checkLayoutParams(layoutParams); } @Override // android.view.ViewGroup, android.view.ViewParent public boolean onStartNestedScroll(View view, View view2, int i2) { return c(view, view2, i2, 0); } @Override // o.FEJ public final boolean c(View view, View view2, int i2, int i3) { int childCount = getChildCount(); boolean z = false; for (int i4 = 0; i4 < childCount; i4++) { View childAt = getChildAt(i4); if (childAt.getVisibility() != 8) { RVV rvv = (RVV) childAt.getLayoutParams(); Sts sts = rvv.h; if (sts != null) { boolean e = sts.e(this, childAt, view, view2, i2, i3); z |= e; if (i3 == 0) { rvv.l = e; } else if (i3 == 1) { rvv.k = e; } } else if (i3 == 0) { rvv.l = false; } else if (i3 == 1) { rvv.k = false; } } } return z; } @Override // android.view.ViewGroup, android.view.ViewParent public void onNestedScrollAccepted(View view, View view2, int i2) { e(view, view2, i2, 0); } @Override // android.view.ViewGroup, android.view.ViewParent public void onStopNestedScroll(View view) { a(view, 0); } @Override // android.view.ViewGroup, android.view.ViewParent public void onNestedScroll(View view, int i2, int i3, int i4, int i5) { a(view, i2, i3, i4, i5, 0, this.t); } @Override // o.FEJ public final void c(View view, int i2, int i3, int i4, int i5, int i6) { a(view, i2, i3, i4, i5, 0, this.t); } @Override // o.htg public final void a(View view, int i2, int i3, int i4, int i5, int i6, int[] iArr) { boolean z; Sts sts; int min; boolean z2; int min2; int childCount = getChildCount(); boolean z3 = false; int i7 = 0; int i8 = 0; for (int i9 = 0; i9 < childCount; i9++) { View childAt = getChildAt(i9); if (childAt.getVisibility() != 8) { RVV rvv = (RVV) childAt.getLayoutParams(); if (i6 == 0) { z = rvv.l; } else if (i6 == 1) { z = rvv.k; } if (z && (sts = rvv.h) != null) { int[] iArr2 = this.j; iArr2[0] = 0; iArr2[1] = 0; int i10 = i7; sts.a(this, childAt, view, i2, i3, i4, i5, i6, iArr2); int[] iArr3 = this.j; if (i4 > 0) { min = Math.max(i8, iArr3[0]); } else { min = Math.min(i8, iArr3[0]); } i8 = min; if (i5 > 0) { z2 = true; min2 = Math.max(i10, this.j[1]); } else { z2 = true; min2 = Math.min(i10, this.j[1]); } i7 = min2; z3 = z2; } } i7 = i7; } iArr[0] = iArr[0] + i8; iArr[1] = iArr[1] + i7; if (z3) { b(1); } } @Override // android.view.ViewGroup, android.view.ViewParent public void onNestedPreScroll(View view, int i2, int i3, int[] iArr) { a(view, i2, i3, iArr, 0); } @Override // o.FEJ public final void a(View view, int i2, int i3, int[] iArr, int i4) { boolean z; Sts sts; int min; int min2; int childCount = getChildCount(); boolean z2 = false; int i5 = 0; int i6 = 0; for (int i7 = 0; i7 < childCount; i7++) { View childAt = getChildAt(i7); if (childAt.getVisibility() != 8) { RVV rvv = (RVV) childAt.getLayoutParams(); if (i4 == 0) { z = rvv.l; } else if (i4 == 1) { z = rvv.k; } if (z && (sts = rvv.h) != null) { int[] iArr2 = this.j; iArr2[0] = 0; iArr2[1] = 0; sts.e(this, childAt, view, i2, i3, iArr2, i4); int[] iArr3 = this.j; if (i2 > 0) { min = Math.max(i5, iArr3[0]); } else { min = Math.min(i5, iArr3[0]); } i5 = min; int[] iArr4 = this.j; if (i3 > 0) { min2 = Math.max(i6, iArr4[1]); } else { min2 = Math.min(i6, iArr4[1]); } i6 = min2; z2 = true; } } } iArr[0] = i5; iArr[1] = i6; if (z2) { b(1); } } @Override // android.view.ViewGroup, android.view.ViewParent public boolean onNestedFling(View view, float f2, float f3, boolean z) { int childCount = getChildCount(); for (int i2 = 0; i2 < childCount; i2++) { View childAt = getChildAt(i2); if (childAt.getVisibility() != 8) { RVV rvv = (RVV) childAt.getLayoutParams(); if (rvv.l) { Sts sts = rvv.h; } } } return false; } @Override // android.view.ViewGroup, android.view.ViewParent public boolean onNestedPreFling(View view, float f2, float f3) { Sts sts; int childCount = getChildCount(); boolean z = false; for (int i2 = 0; i2 < childCount; i2++) { View childAt = getChildAt(i2); if (childAt.getVisibility() != 8) { RVV rvv = (RVV) childAt.getLayoutParams(); if (rvv.l && (sts = rvv.h) != null) { z |= sts.c(this, childAt, view, f2, f3); } } } return z; } /* loaded from: classes.dex */ class jbe implements ViewTreeObserver.OnPreDrawListener { final CoordinatorLayout c; jbe(CoordinatorLayout coordinatorLayout) { this.c = coordinatorLayout; } @Override // android.view.ViewTreeObserver.OnPreDrawListener public final boolean onPreDraw() { this.c.b(0); return true; } } /* loaded from: classes.dex */ static class tOB implements Comparator { tOB() { } @Override // java.util.Comparator public final /* synthetic */ int compare(View view, View view2) { float C = ViewCompat.C(view); float C2 = ViewCompat.C(view2); if (C > C2) { return -1; } return C < C2 ? 1 : 0; } } /* loaded from: classes.dex */ public static abstract class Sts { public boolean HT_(CoordinatorLayout coordinatorLayout, V v, Rect rect, boolean z) { return false; } public boolean Jp_(CoordinatorLayout coordinatorLayout, V v, Rect rect) { return false; } public void LG_(CoordinatorLayout coordinatorLayout, V v, Parcelable parcelable) { } public boolean LJ_(CoordinatorLayout coordinatorLayout, V v, MotionEvent motionEvent) { return false; } public boolean MY_(CoordinatorLayout coordinatorLayout, V v, MotionEvent motionEvent) { return false; } public void a(RVV rvv) { } public void a(CoordinatorLayout coordinatorLayout, V v, View view, int i) { } public boolean a(CoordinatorLayout coordinatorLayout, V v, int i, int i2, int i3, int i4) { return false; } public void c(CoordinatorLayout coordinatorLayout, View view) { } public boolean c(CoordinatorLayout coordinatorLayout, V v, int i) { return false; } public boolean c(CoordinatorLayout coordinatorLayout, V v, View view, float f, float f2) { return false; } public void d() { } public void e(CoordinatorLayout coordinatorLayout, V v, View view, int i, int i2, int[] iArr, int i3) { } public boolean e(V v, View view) { return false; } public boolean e(CoordinatorLayout coordinatorLayout, V v, View view) { return false; } public boolean e(CoordinatorLayout coordinatorLayout, V v, View view, View view2, int i, int i2) { return false; } public Sts() { } public Sts(Context context, AttributeSet attributeSet) { } public void a(CoordinatorLayout coordinatorLayout, V v, View view, int i, int i2, int i3, int i4, int i5, int[] iArr) { iArr[0] = iArr[0] + i3; iArr[1] = iArr[1] + i4; } public Parcelable LH_(CoordinatorLayout coordinatorLayout, V v) { return View.BaseSavedState.EMPTY_STATE; } } /* loaded from: classes.dex */ public static class RVV extends ViewGroup.MarginLayoutParams { public int a; public int b; public int c; public int d; public int e; boolean f; View g; public Sts h; View i; public int j; boolean k; boolean l; boolean m; boolean n; /* renamed from: o, reason: collision with root package name */ int f6385o; final Rect q; int r; private Object t; public RVV() { super(-2, -2); this.f = false; this.c = 0; this.d = 0; this.e = -1; this.j = -1; this.a = 0; this.b = 0; this.q = new Rect(); } RVV(Context context, AttributeSet attributeSet) { super(context, attributeSet); this.f = false; this.c = 0; this.d = 0; this.e = -1; this.j = -1; this.a = 0; this.b = 0; this.q = new Rect(); TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, Opi.IeS.CoordinatorLayout_Layout); this.c = obtainStyledAttributes.getInteger(Opi.IeS.CoordinatorLayout_Layout_android_layout_gravity, 0); this.j = obtainStyledAttributes.getResourceId(Opi.IeS.CoordinatorLayout_Layout_layout_anchor, -1); this.d = obtainStyledAttributes.getInteger(Opi.IeS.CoordinatorLayout_Layout_layout_anchorGravity, 0); this.e = obtainStyledAttributes.getInteger(Opi.IeS.CoordinatorLayout_Layout_layout_keyline, -1); this.a = obtainStyledAttributes.getInt(Opi.IeS.CoordinatorLayout_Layout_layout_insetEdge, 0); this.b = obtainStyledAttributes.getInt(Opi.IeS.CoordinatorLayout_Layout_layout_dodgeInsetEdges, 0); boolean hasValue = obtainStyledAttributes.hasValue(Opi.IeS.CoordinatorLayout_Layout_layout_behavior); this.f = hasValue; if (hasValue) { this.h = CoordinatorLayout.lw_(context, attributeSet, obtainStyledAttributes.getString(Opi.IeS.CoordinatorLayout_Layout_layout_behavior)); } obtainStyledAttributes.recycle(); Sts sts = this.h; if (sts != null) { sts.a(this); } } public RVV(RVV rvv) { super((ViewGroup.MarginLayoutParams) rvv); this.f = false; this.c = 0; this.d = 0; this.e = -1; this.j = -1; this.a = 0; this.b = 0; this.q = new Rect(); } public RVV(ViewGroup.MarginLayoutParams marginLayoutParams) { super(marginLayoutParams); this.f = false; this.c = 0; this.d = 0; this.e = -1; this.j = -1; this.a = 0; this.b = 0; this.q = new Rect(); } public RVV(ViewGroup.LayoutParams layoutParams) { super(layoutParams); this.f = false; this.c = 0; this.d = 0; this.e = -1; this.j = -1; this.a = 0; this.b = 0; this.q = new Rect(); } public final void e(Sts sts) { Sts sts2 = this.h; if (sts2 != sts) { if (sts2 != null) { sts2.d(); } this.h = sts; this.t = null; this.f = true; if (sts != null) { sts.a(this); } } } } /* loaded from: classes.dex */ class LWm implements ViewGroup.OnHierarchyChangeListener { final CoordinatorLayout a; LWm(CoordinatorLayout coordinatorLayout) { this.a = coordinatorLayout; } @Override // android.view.ViewGroup.OnHierarchyChangeListener public final void onChildViewAdded(View view, View view2) { if (this.a.e != null) { this.a.e.onChildViewAdded(view, view2); } } @Override // android.view.ViewGroup.OnHierarchyChangeListener public final void onChildViewRemoved(View view, View view2) { this.a.b(2); if (this.a.e != null) { this.a.e.onChildViewRemoved(view, view2); } } } @Override // android.view.View protected void onRestoreInstanceState(Parcelable parcelable) { Parcelable parcelable2; if (!(parcelable instanceof saX)) { super.onRestoreInstanceState(parcelable); return; } saX sax = (saX) parcelable; super.onRestoreInstanceState(sax.b); SparseArray sparseArray = sax.d; int childCount = getChildCount(); for (int i2 = 0; i2 < childCount; i2++) { View childAt = getChildAt(i2); int id = childAt.getId(); Sts sts = d(childAt).h; if (id != -1 && sts != null && (parcelable2 = sparseArray.get(id)) != null) { sts.LG_(this, childAt, parcelable2); } } } @Override // android.view.View protected Parcelable onSaveInstanceState() { Parcelable LH_; saX sax = new saX(super.onSaveInstanceState()); SparseArray sparseArray = new SparseArray<>(); int childCount = getChildCount(); for (int i2 = 0; i2 < childCount; i2++) { View childAt = getChildAt(i2); int id = childAt.getId(); Sts sts = ((RVV) childAt.getLayoutParams()).h; if (id != -1 && sts != null && (LH_ = sts.LH_(this, childAt)) != null) { sparseArray.append(id, LH_); } } sax.d = sparseArray; return sax; } @Override // android.view.ViewGroup, android.view.ViewParent public boolean requestChildRectangleOnScreen(View view, Rect rect, boolean z) { Sts sts = ((RVV) view.getLayoutParams()).h; if (sts == null || !sts.HT_(this, view, rect, z)) { return super.requestChildRectangleOnScreen(view, rect, z); } return true; } private void e() { if (ViewCompat.l(this)) { if (this.h == null) { this.h = new LbT(this) { // from class: androidx.coordinatorlayout.widget.CoordinatorLayout.5 final CoordinatorLayout e; { this.e = this; } @Override // o.LbT public final WindowInsetsCompat e(View view, WindowInsetsCompat windowInsetsCompat) { CoordinatorLayout coordinatorLayout = this.e; if (!ZEY.b(coordinatorLayout.b, windowInsetsCompat)) { coordinatorLayout.b = windowInsetsCompat; boolean z = windowInsetsCompat != null && windowInsetsCompat.i() > 0; coordinatorLayout.a = z; coordinatorLayout.setWillNotDraw(!z && coordinatorLayout.getBackground() == null); if (!windowInsetsCompat.h()) { int childCount = coordinatorLayout.getChildCount(); for (int i2 = 0; i2 < childCount; i2++) { View childAt = coordinatorLayout.getChildAt(i2); if (ViewCompat.l(childAt) && ((RVV) childAt.getLayoutParams()).h != null && windowInsetsCompat.h()) { break; } } } coordinatorLayout.requestLayout(); } return windowInsetsCompat; } }; } ViewCompat.c(this, this.h); setSystemUiVisibility(PlatformPlugin.DEFAULT_SYSTEM_UI); return; } ViewCompat.c(this, (LbT) null); } /* loaded from: classes.dex */ protected static class saX extends XgG { public static final Parcelable.Creator CREATOR = new Parcelable.ClassLoaderCreator() { // from class: androidx.coordinatorlayout.widget.CoordinatorLayout.saX.2 @Override // android.os.Parcelable.Creator public final /* synthetic */ Object createFromParcel(Parcel parcel) { return new saX(parcel, null); } @Override // android.os.Parcelable.ClassLoaderCreator public final /* synthetic */ saX createFromParcel(Parcel parcel, ClassLoader classLoader) { return new saX(parcel, classLoader); } @Override // android.os.Parcelable.Creator public final /* bridge */ /* synthetic */ Object[] newArray(int i) { return new saX[i]; } }; SparseArray d; public saX(Parcel parcel, ClassLoader classLoader) { super(parcel, classLoader); int readInt = parcel.readInt(); int[] iArr = new int[readInt]; parcel.readIntArray(iArr); Parcelable[] readParcelableArray = parcel.readParcelableArray(classLoader); this.d = new SparseArray<>(readInt); for (int i = 0; i < readInt; i++) { this.d.append(iArr[i], readParcelableArray[i]); } } public saX(Parcelable parcelable) { super(parcelable); } @Override // o.XgG, android.os.Parcelable public final void writeToParcel(Parcel parcel, int i) { super.writeToParcel(parcel, i); SparseArray sparseArray = this.d; int size = sparseArray != null ? sparseArray.size() : 0; parcel.writeInt(size); int[] iArr = new int[size]; Parcelable[] parcelableArr = new Parcelable[size]; for (int i2 = 0; i2 < size; i2++) { iArr[i2] = this.d.keyAt(i2); parcelableArr[i2] = this.d.valueAt(i2); } parcel.writeIntArray(iArr); parcel.writeParcelableArray(parcelableArr, i); } } @Override // android.view.ViewGroup protected /* synthetic */ ViewGroup.LayoutParams generateDefaultLayoutParams() { return new RVV(); } @Override // android.view.ViewGroup public /* synthetic */ ViewGroup.LayoutParams generateLayoutParams(AttributeSet attributeSet) { return new RVV(getContext(), attributeSet); } @Override // android.view.ViewGroup protected /* synthetic */ ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) { if (layoutParams instanceof RVV) { return new RVV((RVV) layoutParams); } if (layoutParams instanceof ViewGroup.MarginLayoutParams) { return new RVV((ViewGroup.MarginLayoutParams) layoutParams); } return new RVV(layoutParams); } @Override // android.view.ViewGroup public int getNestedScrollAxes() { JXX jxx = this.q; return jxx.d | jxx.c; } @Override // o.FEJ public final void e(View view, View view2, int i2, int i3) { boolean z; JXX jxx = this.q; if (i3 == 1) { jxx.d = i2; } else { jxx.c = i2; } this.r = view2; int childCount = getChildCount(); for (int i4 = 0; i4 < childCount; i4++) { RVV rvv = (RVV) getChildAt(i4).getLayoutParams(); if (i3 == 0) { z = rvv.l; } else if (i3 == 1) { z = rvv.k; } if (z) { Sts sts = rvv.h; } } } @Override // o.FEJ public final void a(View view, int i2) { boolean z; JXX jxx = this.q; if (i2 == 1) { jxx.d = 0; } else { jxx.c = 0; } int childCount = getChildCount(); for (int i3 = 0; i3 < childCount; i3++) { View childAt = getChildAt(i3); RVV rvv = (RVV) childAt.getLayoutParams(); if (i2 == 0) { z = rvv.l; } else if (i2 == 1) { z = rvv.k; } if (z) { Sts sts = rvv.h; if (sts != null) { sts.a(this, childAt, view, i2); } if (i2 == 0) { rvv.l = false; } else if (i2 == 1) { rvv.k = false; } rvv.m = false; } } this.r = null; } @Override // android.view.ViewGroup public void setOnHierarchyChangeListener(ViewGroup.OnHierarchyChangeListener onHierarchyChangeListener) { this.e = onHierarchyChangeListener; } }