1746 lines
67 KiB
Java
1746 lines
67 KiB
Java
package com.google.android.material.appbar;
|
|
|
|
import android.animation.TimeInterpolator;
|
|
import android.animation.ValueAnimator;
|
|
import android.content.Context;
|
|
import android.content.res.ColorStateList;
|
|
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.util.AttributeSet;
|
|
import android.view.KeyEvent;
|
|
import android.view.MotionEvent;
|
|
import android.view.View;
|
|
import android.view.ViewGroup;
|
|
import android.view.animation.AnimationUtils;
|
|
import android.view.animation.Interpolator;
|
|
import android.widget.AbsListView;
|
|
import android.widget.LinearLayout;
|
|
import android.widget.ScrollView;
|
|
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
|
import androidx.core.view.ViewCompat;
|
|
import androidx.core.view.WindowInsetsCompat;
|
|
import androidx.core.view.accessibility.AccessibilityNodeInfoCompat;
|
|
import androidx.core.view.accessibility.AccessibilityViewCommand;
|
|
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
|
import com.google.android.material.appbar.AppBarLayout;
|
|
import java.lang.ref.WeakReference;
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import o.AgY;
|
|
import o.C17052tZT;
|
|
import o.C4363bXv;
|
|
import o.C6217cMa;
|
|
import o.FTl;
|
|
import o.Lot;
|
|
import o.Tlu;
|
|
import o.XgG;
|
|
import o.iIt;
|
|
import o.sVs;
|
|
import o.xVN;
|
|
import o.yZt;
|
|
import org.bouncycastle.asn1.cmp.PKIFailureInfo;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class AppBarLayout extends LinearLayout implements CoordinatorLayout.IeS {
|
|
private static final int j = C17052tZT.NHB.Widget_Design_AppBarLayout;
|
|
WindowInsetsCompat a;
|
|
public final List<LWm> b;
|
|
boolean c;
|
|
List<RVV> d;
|
|
boolean e;
|
|
int f;
|
|
public Drawable g;
|
|
private final float h;
|
|
private Behavior i;
|
|
private int k;
|
|
private ValueAnimator l;
|
|
private int m;
|
|
private final ColorStateList n;
|
|
|
|
/* renamed from: o, reason: collision with root package name */
|
|
private int f6465o;
|
|
private final long p;
|
|
private WeakReference<View> q;
|
|
private int r;
|
|
private final TimeInterpolator s;
|
|
private ValueAnimator.AnimatorUpdateListener t;
|
|
private boolean u;
|
|
private boolean v;
|
|
private int[] w;
|
|
private boolean x;
|
|
private int y;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public static abstract class IeS {
|
|
public abstract void e(AppBarLayout appBarLayout, View view, float f);
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
public interface LWm {
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
public interface RVV<T extends AppBarLayout> {
|
|
void c(T t, int i);
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
public interface ojQ extends RVV<AppBarLayout> {
|
|
}
|
|
|
|
@Override // android.widget.LinearLayout, android.view.ViewGroup
|
|
protected /* synthetic */ ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
|
return HI_(layoutParams);
|
|
}
|
|
|
|
@Override // android.widget.LinearLayout, android.view.ViewGroup
|
|
protected /* synthetic */ LinearLayout.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
|
return HI_(layoutParams);
|
|
}
|
|
|
|
public AppBarLayout(Context context) {
|
|
this(context, null);
|
|
}
|
|
|
|
public AppBarLayout(Context context, AttributeSet attributeSet) {
|
|
this(context, attributeSet, C17052tZT.IeS.appBarLayoutStyle);
|
|
}
|
|
|
|
/* JADX WARN: Finally extract failed */
|
|
/* JADX WARN: Illegal instructions before constructor call */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public AppBarLayout(android.content.Context r13, android.util.AttributeSet r14, int r15) {
|
|
/*
|
|
Method dump skipped, instructions count: 396
|
|
To view this dump add '--comments-level debug' option
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.appbar.AppBarLayout.<init>(android.content.Context, android.util.AttributeSet, int):void");
|
|
}
|
|
|
|
public final void e(ojQ ojq) {
|
|
if (this.d == null) {
|
|
this.d = new ArrayList();
|
|
}
|
|
if (ojq == null || this.d.contains(ojq)) {
|
|
return;
|
|
}
|
|
this.d.add(ojq);
|
|
}
|
|
|
|
public void setStatusBarForeground(Drawable drawable) {
|
|
Drawable drawable2 = this.g;
|
|
if (drawable2 != drawable) {
|
|
if (drawable2 != null) {
|
|
drawable2.setCallback(null);
|
|
}
|
|
Drawable mutate = drawable != null ? drawable.mutate() : null;
|
|
this.g = mutate;
|
|
if (mutate != null) {
|
|
if (mutate.isStateful()) {
|
|
this.g.setState(getDrawableState());
|
|
}
|
|
Tlu.pD_(this.g, ViewCompat.m(this));
|
|
this.g.setVisible(getVisibility() == 0, false);
|
|
this.g.setCallback(this);
|
|
}
|
|
setWillNotDraw(true ^ b());
|
|
ViewCompat.N(this);
|
|
}
|
|
}
|
|
|
|
public void setStatusBarForegroundColor(int i) {
|
|
setStatusBarForeground(new ColorDrawable(i));
|
|
}
|
|
|
|
public void setStatusBarForegroundResource(int i) {
|
|
setStatusBarForeground(AgY.dT_(getContext(), i));
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void draw(Canvas canvas) {
|
|
super.draw(canvas);
|
|
if (b()) {
|
|
int save = canvas.save();
|
|
canvas.translate(BitmapDescriptorFactory.HUE_RED, -this.k);
|
|
this.g.draw(canvas);
|
|
canvas.restoreToCount(save);
|
|
}
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.View
|
|
protected void drawableStateChanged() {
|
|
super.drawableStateChanged();
|
|
int[] drawableState = getDrawableState();
|
|
Drawable drawable = this.g;
|
|
if (drawable != null && drawable.isStateful() && drawable.setState(drawableState)) {
|
|
invalidateDrawable(drawable);
|
|
}
|
|
}
|
|
|
|
@Override // android.view.View
|
|
protected boolean verifyDrawable(Drawable drawable) {
|
|
return super.verifyDrawable(drawable) || drawable == this.g;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void setVisibility(int i) {
|
|
super.setVisibility(i);
|
|
boolean z = i == 0;
|
|
Drawable drawable = this.g;
|
|
if (drawable != null) {
|
|
drawable.setVisible(z, false);
|
|
}
|
|
}
|
|
|
|
@Override // android.widget.LinearLayout, android.view.View
|
|
protected void onMeasure(int i, int i2) {
|
|
super.onMeasure(i, i2);
|
|
int mode = View.MeasureSpec.getMode(i2);
|
|
if (mode != 1073741824 && ViewCompat.l(this) && f()) {
|
|
int measuredHeight = getMeasuredHeight();
|
|
if (mode == Integer.MIN_VALUE) {
|
|
int measuredHeight2 = getMeasuredHeight();
|
|
WindowInsetsCompat windowInsetsCompat = this.a;
|
|
int i3 = windowInsetsCompat != null ? windowInsetsCompat.i() : 0;
|
|
int size = View.MeasureSpec.getSize(i2);
|
|
int i4 = measuredHeight2 + i3;
|
|
measuredHeight = i4 < 0 ? 0 : i4 > size ? size : i4;
|
|
} else if (mode == 0) {
|
|
WindowInsetsCompat windowInsetsCompat2 = this.a;
|
|
measuredHeight += windowInsetsCompat2 != null ? windowInsetsCompat2.i() : 0;
|
|
}
|
|
setMeasuredDimension(getMeasuredWidth(), measuredHeight);
|
|
}
|
|
g();
|
|
}
|
|
|
|
@Override // android.widget.LinearLayout, android.view.ViewGroup, android.view.View
|
|
protected void onLayout(boolean z, int i, int i2, int i3, int i4) {
|
|
super.onLayout(z, i, i2, i3, i4);
|
|
boolean z2 = true;
|
|
if (ViewCompat.l(this) && f()) {
|
|
WindowInsetsCompat windowInsetsCompat = this.a;
|
|
int i5 = windowInsetsCompat != null ? windowInsetsCompat.i() : 0;
|
|
for (int childCount = getChildCount() - 1; childCount >= 0; childCount--) {
|
|
ViewCompat.d(getChildAt(childCount), i5);
|
|
}
|
|
}
|
|
g();
|
|
this.c = false;
|
|
int childCount2 = getChildCount();
|
|
int i6 = 0;
|
|
while (true) {
|
|
if (i6 >= childCount2) {
|
|
break;
|
|
}
|
|
if (((Sts) getChildAt(i6).getLayoutParams()).b != null) {
|
|
this.c = true;
|
|
break;
|
|
}
|
|
i6++;
|
|
}
|
|
Drawable drawable = this.g;
|
|
if (drawable != null) {
|
|
int width = getWidth();
|
|
WindowInsetsCompat windowInsetsCompat2 = this.a;
|
|
drawable.setBounds(0, 0, width, windowInsetsCompat2 != null ? windowInsetsCompat2.i() : 0);
|
|
}
|
|
if (this.x) {
|
|
return;
|
|
}
|
|
if (!this.e) {
|
|
int childCount3 = getChildCount();
|
|
int i7 = 0;
|
|
while (true) {
|
|
if (i7 >= childCount3) {
|
|
z2 = false;
|
|
break;
|
|
}
|
|
int i8 = ((Sts) getChildAt(i7).getLayoutParams()).c;
|
|
if ((i8 & 1) == 1 && (i8 & 10) != 0) {
|
|
break;
|
|
} else {
|
|
i7++;
|
|
}
|
|
}
|
|
}
|
|
if (this.u != z2) {
|
|
this.u = z2;
|
|
refreshDrawableState();
|
|
}
|
|
}
|
|
|
|
final boolean b() {
|
|
WindowInsetsCompat windowInsetsCompat;
|
|
return (this.g == null || (windowInsetsCompat = this.a) == null || windowInsetsCompat.i() <= 0) ? false : true;
|
|
}
|
|
|
|
private void g() {
|
|
Behavior behavior = this.i;
|
|
BaseBehavior.RVV HO_ = (behavior == null || this.y == -1 || this.f != 0) ? null : behavior.HO_(XgG.a, this);
|
|
this.y = -1;
|
|
this.m = -1;
|
|
this.f6465o = -1;
|
|
if (HO_ != null) {
|
|
Behavior behavior2 = this.i;
|
|
if (((BaseBehavior) behavior2).e == null) {
|
|
((BaseBehavior) behavior2).e = HO_;
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // android.widget.LinearLayout
|
|
public void setOrientation(int i) {
|
|
if (i != 1) {
|
|
throw new IllegalArgumentException("AppBarLayout is always vertical and does not support horizontal orientation");
|
|
}
|
|
super.setOrientation(i);
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.View
|
|
protected void onAttachedToWindow() {
|
|
super.onAttachedToWindow();
|
|
Drawable background = getBackground();
|
|
if (background instanceof C4363bXv) {
|
|
C4363bXv c4363bXv = (C4363bXv) background;
|
|
if (c4363bXv.B.c == null || !c4363bXv.B.c.a) {
|
|
return;
|
|
}
|
|
c4363bXv.k(Lot.e(this));
|
|
}
|
|
}
|
|
|
|
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.IeS
|
|
public final CoordinatorLayout.Sts<AppBarLayout> a() {
|
|
Behavior behavior = new Behavior();
|
|
this.i = behavior;
|
|
return behavior;
|
|
}
|
|
|
|
@Override // android.view.View
|
|
public void setElevation(float f) {
|
|
super.setElevation(f);
|
|
Drawable background = getBackground();
|
|
if (background instanceof C4363bXv) {
|
|
((C4363bXv) background).n(f);
|
|
}
|
|
}
|
|
|
|
public void setExpanded(boolean z) {
|
|
setExpanded(z, ViewCompat.G(this));
|
|
}
|
|
|
|
public void setExpanded(boolean z, boolean z2) {
|
|
a(z, z2, true);
|
|
}
|
|
|
|
private void a(boolean z, boolean z2, boolean z3) {
|
|
this.f = (z ? 1 : 2) | (z2 ? 4 : 0) | (z3 ? 8 : 0);
|
|
requestLayout();
|
|
}
|
|
|
|
@Override // android.widget.LinearLayout, android.view.ViewGroup
|
|
protected boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
|
return layoutParams instanceof Sts;
|
|
}
|
|
|
|
private static Sts HI_(ViewGroup.LayoutParams layoutParams) {
|
|
if (layoutParams instanceof LinearLayout.LayoutParams) {
|
|
return new Sts((LinearLayout.LayoutParams) layoutParams);
|
|
}
|
|
if (layoutParams instanceof ViewGroup.MarginLayoutParams) {
|
|
return new Sts((ViewGroup.MarginLayoutParams) layoutParams);
|
|
}
|
|
return new Sts(layoutParams);
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.View
|
|
protected void onDetachedFromWindow() {
|
|
super.onDetachedFromWindow();
|
|
WeakReference<View> weakReference = this.q;
|
|
if (weakReference != null) {
|
|
weakReference.clear();
|
|
}
|
|
this.q = null;
|
|
}
|
|
|
|
public final int i() {
|
|
int i = this.y;
|
|
if (i != -1) {
|
|
return i;
|
|
}
|
|
int childCount = getChildCount();
|
|
int i2 = 0;
|
|
int i3 = 0;
|
|
while (true) {
|
|
if (i3 >= childCount) {
|
|
break;
|
|
}
|
|
View childAt = getChildAt(i3);
|
|
if (childAt.getVisibility() != 8) {
|
|
Sts sts = (Sts) childAt.getLayoutParams();
|
|
int measuredHeight = childAt.getMeasuredHeight();
|
|
int i4 = sts.c;
|
|
if ((i4 & 1) == 0) {
|
|
break;
|
|
}
|
|
i2 += measuredHeight + ((ViewGroup.MarginLayoutParams) sts).topMargin + ((ViewGroup.MarginLayoutParams) sts).bottomMargin;
|
|
if (i3 == 0 && ViewCompat.l(childAt)) {
|
|
WindowInsetsCompat windowInsetsCompat = this.a;
|
|
i2 -= windowInsetsCompat != null ? windowInsetsCompat.i() : 0;
|
|
}
|
|
if ((i4 & 2) != 0) {
|
|
i2 -= ViewCompat.o(childAt);
|
|
break;
|
|
}
|
|
}
|
|
i3++;
|
|
}
|
|
int max = Math.max(0, i2);
|
|
this.y = max;
|
|
return max;
|
|
}
|
|
|
|
/* JADX WARN: Removed duplicated region for block: B:20:0x0055 */
|
|
/* JADX WARN: Removed duplicated region for block: B:22:0x005a */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
final int c() {
|
|
/*
|
|
r9 = this;
|
|
int r0 = r9.m
|
|
r1 = -1
|
|
if (r0 == r1) goto L6
|
|
return r0
|
|
L6:
|
|
int r0 = r9.getChildCount()
|
|
int r0 = r0 + (-1)
|
|
r1 = 0
|
|
r2 = r1
|
|
Le:
|
|
if (r0 < 0) goto L67
|
|
android.view.View r3 = r9.getChildAt(r0)
|
|
int r4 = r3.getVisibility()
|
|
r5 = 8
|
|
if (r4 != r5) goto L1d
|
|
goto L64
|
|
L1d:
|
|
android.view.ViewGroup$LayoutParams r4 = r3.getLayoutParams()
|
|
com.google.android.material.appbar.AppBarLayout$Sts r4 = (com.google.android.material.appbar.AppBarLayout.Sts) r4
|
|
int r5 = r3.getMeasuredHeight()
|
|
int r6 = r4.c
|
|
r7 = r6 & 5
|
|
r8 = 5
|
|
if (r7 != r8) goto L62
|
|
int r7 = r4.topMargin
|
|
int r4 = r4.bottomMargin
|
|
int r7 = r7 + r4
|
|
r4 = r6 & 8
|
|
if (r4 == 0) goto L3c
|
|
int r4 = androidx.core.view.ViewCompat.o(r3)
|
|
goto L46
|
|
L3c:
|
|
r4 = r6 & 2
|
|
if (r4 == 0) goto L48
|
|
int r4 = androidx.core.view.ViewCompat.o(r3)
|
|
int r4 = r5 - r4
|
|
L46:
|
|
int r7 = r7 + r4
|
|
goto L49
|
|
L48:
|
|
int r7 = r7 + r5
|
|
L49:
|
|
if (r0 != 0) goto L60
|
|
boolean r3 = androidx.core.view.ViewCompat.l(r3)
|
|
if (r3 == 0) goto L60
|
|
androidx.core.view.WindowInsetsCompat r3 = r9.a
|
|
if (r3 == 0) goto L5a
|
|
int r3 = r3.i()
|
|
goto L5b
|
|
L5a:
|
|
r3 = r1
|
|
L5b:
|
|
int r5 = r5 - r3
|
|
int r7 = java.lang.Math.min(r7, r5)
|
|
L60:
|
|
int r2 = r2 + r7
|
|
goto L64
|
|
L62:
|
|
if (r2 > 0) goto L67
|
|
L64:
|
|
int r0 = r0 + (-1)
|
|
goto Le
|
|
L67:
|
|
int r0 = java.lang.Math.max(r1, r2)
|
|
r9.m = r0
|
|
return r0
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.appbar.AppBarLayout.c():int");
|
|
}
|
|
|
|
final int e() {
|
|
int i = this.f6465o;
|
|
if (i != -1) {
|
|
return i;
|
|
}
|
|
int childCount = getChildCount();
|
|
int i2 = 0;
|
|
int i3 = 0;
|
|
while (true) {
|
|
if (i3 >= childCount) {
|
|
break;
|
|
}
|
|
View childAt = getChildAt(i3);
|
|
if (childAt.getVisibility() != 8) {
|
|
Sts sts = (Sts) childAt.getLayoutParams();
|
|
int measuredHeight = childAt.getMeasuredHeight();
|
|
int i4 = ((ViewGroup.MarginLayoutParams) sts).topMargin;
|
|
int i5 = ((ViewGroup.MarginLayoutParams) sts).bottomMargin;
|
|
int i6 = sts.c;
|
|
if ((i6 & 1) == 0) {
|
|
break;
|
|
}
|
|
i2 += measuredHeight + i4 + i5;
|
|
if ((i6 & 2) != 0) {
|
|
i2 -= ViewCompat.o(childAt);
|
|
break;
|
|
}
|
|
}
|
|
i3++;
|
|
}
|
|
int max = Math.max(0, i2);
|
|
this.f6465o = max;
|
|
return max;
|
|
}
|
|
|
|
final void d(int i) {
|
|
this.k = i;
|
|
if (!willNotDraw()) {
|
|
ViewCompat.N(this);
|
|
}
|
|
List<RVV> list = this.d;
|
|
if (list != null) {
|
|
int size = list.size();
|
|
for (int i2 = 0; i2 < size; i2++) {
|
|
RVV rvv = this.d.get(i2);
|
|
if (rvv != null) {
|
|
rvv.c(this, i);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public final int d() {
|
|
WindowInsetsCompat windowInsetsCompat = this.a;
|
|
int i = windowInsetsCompat != null ? windowInsetsCompat.i() : 0;
|
|
int o2 = ViewCompat.o(this);
|
|
if (o2 == 0) {
|
|
int childCount = getChildCount();
|
|
int o3 = childCount > 0 ? ViewCompat.o(getChildAt(childCount - 1)) : 0;
|
|
if (o3 == 0) {
|
|
return getHeight() / 3;
|
|
}
|
|
o2 = o3;
|
|
}
|
|
return (o2 << 1) + i;
|
|
}
|
|
|
|
@Override // android.view.ViewGroup, android.view.View
|
|
protected int[] onCreateDrawableState(int i) {
|
|
if (this.w == null) {
|
|
this.w = new int[4];
|
|
}
|
|
int[] iArr = this.w;
|
|
int[] onCreateDrawableState = super.onCreateDrawableState(i + iArr.length);
|
|
iArr[0] = this.u ? C17052tZT.IeS.state_liftable : -C17052tZT.IeS.state_liftable;
|
|
iArr[1] = (this.u && this.v) ? C17052tZT.IeS.state_lifted : -C17052tZT.IeS.state_lifted;
|
|
iArr[2] = this.u ? C17052tZT.IeS.state_collapsible : -C17052tZT.IeS.state_collapsible;
|
|
iArr[3] = (this.u && this.v) ? C17052tZT.IeS.state_collapsed : -C17052tZT.IeS.state_collapsed;
|
|
return mergeDrawableStates(onCreateDrawableState, iArr);
|
|
}
|
|
|
|
final boolean b(boolean z) {
|
|
if (!(!this.x) || this.v == z) {
|
|
return false;
|
|
}
|
|
this.v = z;
|
|
refreshDrawableState();
|
|
if (this.e && (getBackground() instanceof C4363bXv)) {
|
|
ColorStateList colorStateList = this.n;
|
|
float f = BitmapDescriptorFactory.HUE_RED;
|
|
if (colorStateList != null) {
|
|
float f2 = z ? 0.0f : 255.0f;
|
|
if (z) {
|
|
f = 255.0f;
|
|
}
|
|
d(f2, f);
|
|
} else {
|
|
float f3 = z ? 0.0f : this.h;
|
|
if (z) {
|
|
f = this.h;
|
|
}
|
|
d(f3, f);
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
private void d(float f, float f2) {
|
|
ValueAnimator valueAnimator = this.l;
|
|
if (valueAnimator != null) {
|
|
valueAnimator.cancel();
|
|
}
|
|
ValueAnimator ofFloat = ValueAnimator.ofFloat(f, f2);
|
|
this.l = ofFloat;
|
|
ofFloat.setDuration(this.p);
|
|
this.l.setInterpolator(this.s);
|
|
ValueAnimator.AnimatorUpdateListener animatorUpdateListener = this.t;
|
|
if (animatorUpdateListener != null) {
|
|
this.l.addUpdateListener(animatorUpdateListener);
|
|
}
|
|
this.l.start();
|
|
}
|
|
|
|
public void setLiftOnScrollTargetView(View view) {
|
|
this.r = -1;
|
|
if (view == null) {
|
|
WeakReference<View> weakReference = this.q;
|
|
if (weakReference != null) {
|
|
weakReference.clear();
|
|
}
|
|
this.q = null;
|
|
return;
|
|
}
|
|
this.q = new WeakReference<>(view);
|
|
}
|
|
|
|
public void setLiftOnScrollTargetViewId(int i) {
|
|
this.r = i;
|
|
WeakReference<View> weakReference = this.q;
|
|
if (weakReference != null) {
|
|
weakReference.clear();
|
|
}
|
|
this.q = null;
|
|
}
|
|
|
|
final boolean a(View view) {
|
|
int i;
|
|
if (this.q == null && (i = this.r) != -1) {
|
|
View findViewById = view != null ? view.findViewById(i) : null;
|
|
if (findViewById == null && (getParent() instanceof ViewGroup)) {
|
|
findViewById = ((ViewGroup) getParent()).findViewById(this.r);
|
|
}
|
|
if (findViewById != null) {
|
|
this.q = new WeakReference<>(findViewById);
|
|
}
|
|
}
|
|
WeakReference<View> weakReference = this.q;
|
|
View view2 = weakReference != null ? weakReference.get() : null;
|
|
if (view2 != null) {
|
|
view = view2;
|
|
}
|
|
return view != null && (view.canScrollVertically(-1) || view.getScrollY() > 0);
|
|
}
|
|
|
|
@Deprecated
|
|
public void setTargetElevation(float f) {
|
|
iIt.c(this, f);
|
|
}
|
|
|
|
private boolean f() {
|
|
if (getChildCount() <= 0) {
|
|
return false;
|
|
}
|
|
View childAt = getChildAt(0);
|
|
return (childAt.getVisibility() == 8 || ViewCompat.l(childAt)) ? false : true;
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
public static class Sts extends LinearLayout.LayoutParams {
|
|
Interpolator b;
|
|
public int c;
|
|
IeS d;
|
|
|
|
public Sts(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
this.c = 1;
|
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C17052tZT.jNh.AppBarLayout_Layout);
|
|
this.c = obtainStyledAttributes.getInt(C17052tZT.jNh.AppBarLayout_Layout_layout_scrollFlags, 0);
|
|
this.d = obtainStyledAttributes.getInt(C17052tZT.jNh.AppBarLayout_Layout_layout_scrollEffect, 0) != 1 ? null : new HBt();
|
|
if (obtainStyledAttributes.hasValue(C17052tZT.jNh.AppBarLayout_Layout_layout_scrollInterpolator)) {
|
|
this.b = AnimationUtils.loadInterpolator(context, obtainStyledAttributes.getResourceId(C17052tZT.jNh.AppBarLayout_Layout_layout_scrollInterpolator, 0));
|
|
}
|
|
obtainStyledAttributes.recycle();
|
|
}
|
|
|
|
public Sts() {
|
|
super(-1, -2);
|
|
this.c = 1;
|
|
}
|
|
|
|
public Sts(ViewGroup.LayoutParams layoutParams) {
|
|
super(layoutParams);
|
|
this.c = 1;
|
|
}
|
|
|
|
public Sts(ViewGroup.MarginLayoutParams marginLayoutParams) {
|
|
super(marginLayoutParams);
|
|
this.c = 1;
|
|
}
|
|
|
|
public Sts(LinearLayout.LayoutParams layoutParams) {
|
|
super(layoutParams);
|
|
this.c = 1;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
public static class Behavior extends BaseBehavior<AppBarLayout> {
|
|
@Override // com.google.android.material.appbar.AppBarLayout.BaseBehavior
|
|
/* renamed from: HQ_ */
|
|
public final /* bridge */ /* synthetic */ void LG_(CoordinatorLayout coordinatorLayout, AppBarLayout appBarLayout, Parcelable parcelable) {
|
|
super.LG_(coordinatorLayout, appBarLayout, parcelable);
|
|
}
|
|
|
|
@Override // com.google.android.material.appbar.AppBarLayout.BaseBehavior
|
|
/* renamed from: HR_ */
|
|
public final /* bridge */ /* synthetic */ Parcelable LH_(CoordinatorLayout coordinatorLayout, AppBarLayout appBarLayout) {
|
|
return super.LH_(coordinatorLayout, appBarLayout);
|
|
}
|
|
|
|
@Override // o.xVN, androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
public final /* bridge */ /* synthetic */ boolean LJ_(CoordinatorLayout coordinatorLayout, View view, MotionEvent motionEvent) {
|
|
return super.LJ_(coordinatorLayout, view, motionEvent);
|
|
}
|
|
|
|
@Override // o.xVN, androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
public final /* bridge */ /* synthetic */ boolean MY_(CoordinatorLayout coordinatorLayout, View view, MotionEvent motionEvent) {
|
|
return super.MY_(coordinatorLayout, view, motionEvent);
|
|
}
|
|
|
|
@Override // com.google.android.material.appbar.AppBarLayout.BaseBehavior
|
|
/* renamed from: a */
|
|
public final /* bridge */ /* synthetic */ boolean e(CoordinatorLayout coordinatorLayout, AppBarLayout appBarLayout, View view, View view2, int i, int i2) {
|
|
return super.e(coordinatorLayout, (CoordinatorLayout) appBarLayout, view, view2, i, i2);
|
|
}
|
|
|
|
@Override // o.JFA
|
|
public final /* bridge */ /* synthetic */ int c() {
|
|
return super.c();
|
|
}
|
|
|
|
@Override // com.google.android.material.appbar.AppBarLayout.BaseBehavior
|
|
/* renamed from: c */
|
|
public final /* bridge */ /* synthetic */ void a(CoordinatorLayout coordinatorLayout, AppBarLayout appBarLayout, View view, int i) {
|
|
super.a(coordinatorLayout, appBarLayout, view, i);
|
|
}
|
|
|
|
@Override // com.google.android.material.appbar.AppBarLayout.BaseBehavior
|
|
/* renamed from: c */
|
|
public final /* bridge */ /* synthetic */ void a(CoordinatorLayout coordinatorLayout, AppBarLayout appBarLayout, View view, int i, int i2, int i3, int i4, int i5, int[] iArr) {
|
|
super.a(coordinatorLayout, appBarLayout, view, i, i2, i3, i4, i5, iArr);
|
|
}
|
|
|
|
@Override // com.google.android.material.appbar.AppBarLayout.BaseBehavior
|
|
/* renamed from: c */
|
|
public final /* bridge */ /* synthetic */ void e(CoordinatorLayout coordinatorLayout, AppBarLayout appBarLayout, View view, int i, int i2, int[] iArr, int i3) {
|
|
super.e(coordinatorLayout, appBarLayout, view, i, i2, iArr, i3);
|
|
}
|
|
|
|
@Override // o.JFA
|
|
public final /* bridge */ /* synthetic */ boolean e(int i) {
|
|
return super.e(i);
|
|
}
|
|
|
|
@Override // com.google.android.material.appbar.AppBarLayout.BaseBehavior
|
|
/* renamed from: e */
|
|
public final /* bridge */ /* synthetic */ boolean c(CoordinatorLayout coordinatorLayout, AppBarLayout appBarLayout, int i) {
|
|
return super.c(coordinatorLayout, (CoordinatorLayout) appBarLayout, i);
|
|
}
|
|
|
|
@Override // com.google.android.material.appbar.AppBarLayout.BaseBehavior
|
|
/* renamed from: e */
|
|
public final /* bridge */ /* synthetic */ boolean a(CoordinatorLayout coordinatorLayout, AppBarLayout appBarLayout, int i, int i2, int i3, int i4) {
|
|
return super.a(coordinatorLayout, (CoordinatorLayout) appBarLayout, i, i2, i3, i4);
|
|
}
|
|
|
|
public Behavior() {
|
|
}
|
|
|
|
public Behavior(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
public static class BaseBehavior<T extends AppBarLayout> extends xVN<T> {
|
|
boolean b;
|
|
private WeakReference<View> c;
|
|
int d;
|
|
RVV e;
|
|
private IeS f;
|
|
private int i;
|
|
private ValueAnimator j;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public static abstract class IeS<T extends AppBarLayout> {
|
|
}
|
|
|
|
@Override // o.xVN
|
|
public final /* synthetic */ int a(View view) {
|
|
return ((AppBarLayout) view).i();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // o.xVN
|
|
public final /* synthetic */ void a(CoordinatorLayout coordinatorLayout, View view) {
|
|
AppBarLayout appBarLayout = (AppBarLayout) view;
|
|
e(coordinatorLayout, (CoordinatorLayout) appBarLayout);
|
|
if (appBarLayout.e) {
|
|
appBarLayout.b(appBarLayout.a(b(coordinatorLayout)));
|
|
}
|
|
}
|
|
|
|
@Override // o.xVN
|
|
public final /* synthetic */ boolean d(View view) {
|
|
WeakReference<View> weakReference = this.c;
|
|
if (weakReference == null) {
|
|
return true;
|
|
}
|
|
View view2 = weakReference.get();
|
|
return (view2 == null || !view2.isShown() || view2.canScrollVertically(-1)) ? false : true;
|
|
}
|
|
|
|
@Override // o.xVN
|
|
public final /* bridge */ /* synthetic */ int e(View view) {
|
|
return -((AppBarLayout) view).e();
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // o.xVN
|
|
public final /* synthetic */ int e(CoordinatorLayout coordinatorLayout, View view, int i, int i2, int i3) {
|
|
int i4;
|
|
int i5;
|
|
AppBarLayout appBarLayout = (AppBarLayout) view;
|
|
int c = c() + this.d;
|
|
int i6 = 0;
|
|
if (i2 == 0 || c < i2 || c > i3) {
|
|
this.d = 0;
|
|
} else {
|
|
if (i < i2) {
|
|
i = i2;
|
|
} else if (i > i3) {
|
|
i = i3;
|
|
}
|
|
if (c != i) {
|
|
if (appBarLayout.c) {
|
|
int abs = Math.abs(i);
|
|
int childCount = appBarLayout.getChildCount();
|
|
int i7 = 0;
|
|
while (true) {
|
|
if (i7 >= childCount) {
|
|
break;
|
|
}
|
|
View childAt = appBarLayout.getChildAt(i7);
|
|
Sts sts = (Sts) childAt.getLayoutParams();
|
|
Interpolator interpolator = sts.b;
|
|
if (abs < childAt.getTop() || abs > childAt.getBottom()) {
|
|
i7++;
|
|
} else if (interpolator != null) {
|
|
int i8 = sts.c;
|
|
if ((i8 & 1) != 0) {
|
|
i5 = childAt.getHeight() + ((ViewGroup.MarginLayoutParams) sts).topMargin + ((ViewGroup.MarginLayoutParams) sts).bottomMargin;
|
|
if ((i8 & 2) != 0) {
|
|
i5 -= ViewCompat.o(childAt);
|
|
}
|
|
} else {
|
|
i5 = 0;
|
|
}
|
|
if (ViewCompat.l(childAt)) {
|
|
WindowInsetsCompat windowInsetsCompat = appBarLayout.a;
|
|
i5 -= windowInsetsCompat != null ? windowInsetsCompat.i() : 0;
|
|
}
|
|
if (i5 > 0) {
|
|
float f = i5;
|
|
i4 = Integer.signum(i) * (childAt.getTop() + Math.round(f * interpolator.getInterpolation((abs - childAt.getTop()) / f)));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
i4 = i;
|
|
boolean e = e(i4);
|
|
this.d = i - i4;
|
|
if (e) {
|
|
for (int i9 = 0; i9 < appBarLayout.getChildCount(); i9++) {
|
|
Sts sts2 = (Sts) appBarLayout.getChildAt(i9).getLayoutParams();
|
|
IeS ieS = sts2.d;
|
|
if (ieS != null && (sts2.c & 1) != 0) {
|
|
ieS.e(appBarLayout, appBarLayout.getChildAt(i9), c());
|
|
}
|
|
}
|
|
}
|
|
if (!e && appBarLayout.c) {
|
|
coordinatorLayout.b(appBarLayout);
|
|
}
|
|
appBarLayout.d(c());
|
|
a(coordinatorLayout, appBarLayout, i, i < c ? -1 : 1, false);
|
|
i6 = c - i;
|
|
}
|
|
}
|
|
a(coordinatorLayout, (CoordinatorLayout) appBarLayout);
|
|
return i6;
|
|
}
|
|
|
|
public BaseBehavior() {
|
|
}
|
|
|
|
public BaseBehavior(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
}
|
|
|
|
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
/* renamed from: c, reason: merged with bridge method [inline-methods] */
|
|
public void e(CoordinatorLayout coordinatorLayout, T t, View view, int i, int i2, int[] iArr, int i3) {
|
|
int i4;
|
|
int i5;
|
|
if (i2 != 0) {
|
|
if (i2 < 0) {
|
|
i4 = -t.i();
|
|
i5 = t.c() + i4;
|
|
} else {
|
|
i4 = -t.i();
|
|
i5 = 0;
|
|
}
|
|
int i6 = i4;
|
|
int i7 = i5;
|
|
if (i6 != i7) {
|
|
iArr[1] = e(coordinatorLayout, t, a() - i2, i6, i7);
|
|
}
|
|
}
|
|
if (t.e) {
|
|
t.b(t.a(view));
|
|
}
|
|
}
|
|
|
|
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
/* renamed from: c, reason: merged with bridge method [inline-methods] */
|
|
public void a(CoordinatorLayout coordinatorLayout, T t, View view, int i, int i2, int i3, int i4, int i5, int[] iArr) {
|
|
if (i4 < 0) {
|
|
iArr[1] = e(coordinatorLayout, t, a() - i4, -t.e(), 0);
|
|
}
|
|
if (i4 == 0) {
|
|
a(coordinatorLayout, (CoordinatorLayout) t);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
/* renamed from: c, reason: merged with bridge method [inline-methods] */
|
|
public void a(CoordinatorLayout coordinatorLayout, T t, View view, int i) {
|
|
if (this.i == 0 || i == 1) {
|
|
e(coordinatorLayout, (CoordinatorLayout) t);
|
|
if (t.e) {
|
|
t.b(t.a(view));
|
|
}
|
|
}
|
|
this.c = new WeakReference<>(view);
|
|
}
|
|
|
|
private void e(CoordinatorLayout coordinatorLayout, T t) {
|
|
WindowInsetsCompat windowInsetsCompat = t.a;
|
|
int i = 0;
|
|
int i2 = (windowInsetsCompat != null ? windowInsetsCompat.i() : 0) + t.getPaddingTop();
|
|
int c = (c() + this.d) - i2;
|
|
int childCount = t.getChildCount();
|
|
int i3 = 0;
|
|
while (true) {
|
|
if (i3 >= childCount) {
|
|
i3 = -1;
|
|
break;
|
|
}
|
|
View childAt = t.getChildAt(i3);
|
|
int top = childAt.getTop();
|
|
int bottom = childAt.getBottom();
|
|
Sts sts = (Sts) childAt.getLayoutParams();
|
|
if ((sts.c & 32) == 32) {
|
|
top -= ((ViewGroup.MarginLayoutParams) sts).topMargin;
|
|
bottom += ((ViewGroup.MarginLayoutParams) sts).bottomMargin;
|
|
}
|
|
int i4 = -c;
|
|
if (top <= i4 && bottom >= i4) {
|
|
break;
|
|
} else {
|
|
i3++;
|
|
}
|
|
}
|
|
if (i3 >= 0) {
|
|
View childAt2 = t.getChildAt(i3);
|
|
Sts sts2 = (Sts) childAt2.getLayoutParams();
|
|
int i5 = sts2.c;
|
|
if ((i5 & 17) == 17) {
|
|
int i6 = -childAt2.getTop();
|
|
int i7 = -childAt2.getBottom();
|
|
if (i3 == 0 && ViewCompat.l(t) && ViewCompat.l(childAt2)) {
|
|
WindowInsetsCompat windowInsetsCompat2 = t.a;
|
|
i6 -= windowInsetsCompat2 != null ? windowInsetsCompat2.i() : 0;
|
|
}
|
|
if ((i5 & 2) == 2) {
|
|
i7 += ViewCompat.o(childAt2);
|
|
} else if ((i5 & 5) == 5) {
|
|
int o2 = ViewCompat.o(childAt2) + i7;
|
|
if (c < o2) {
|
|
i6 = o2;
|
|
} else {
|
|
i7 = o2;
|
|
}
|
|
}
|
|
if ((i5 & 32) == 32) {
|
|
i6 += ((ViewGroup.MarginLayoutParams) sts2).topMargin;
|
|
i7 -= ((ViewGroup.MarginLayoutParams) sts2).bottomMargin;
|
|
}
|
|
if (c < (i7 + i6) / 2) {
|
|
i6 = i7;
|
|
}
|
|
int i8 = i6 + i2;
|
|
int i9 = -t.i();
|
|
if (i8 < i9) {
|
|
i = i9;
|
|
} else if (i8 <= 0) {
|
|
i = i8;
|
|
}
|
|
d(coordinatorLayout, t, i);
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
/* renamed from: e, reason: merged with bridge method [inline-methods] */
|
|
public boolean a(CoordinatorLayout coordinatorLayout, T t, int i, int i2, int i3, int i4) {
|
|
if (((ViewGroup.LayoutParams) ((CoordinatorLayout.RVV) t.getLayoutParams())).height == -2) {
|
|
coordinatorLayout.a(t, i, i2, View.MeasureSpec.makeMeasureSpec(0, 0), i4);
|
|
return true;
|
|
}
|
|
return super.a(coordinatorLayout, (CoordinatorLayout) t, i, i2, i3, i4);
|
|
}
|
|
|
|
@Override // o.JFA, androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
/* renamed from: e, reason: merged with bridge method [inline-methods] */
|
|
public boolean c(CoordinatorLayout coordinatorLayout, final T t, int i) {
|
|
int round;
|
|
boolean c = super.c(coordinatorLayout, t, i);
|
|
int i2 = t.f;
|
|
RVV rvv = this.e;
|
|
if (rvv == null || (i2 & 8) != 0) {
|
|
if (i2 != 0) {
|
|
boolean z = (i2 & 4) != 0;
|
|
if ((i2 & 2) != 0) {
|
|
int i3 = -t.i();
|
|
if (z) {
|
|
d(coordinatorLayout, t, i3);
|
|
} else {
|
|
e(coordinatorLayout, t, i3, PKIFailureInfo.systemUnavail, Integer.MAX_VALUE);
|
|
}
|
|
} else if ((i2 & 1) != 0) {
|
|
if (z) {
|
|
d(coordinatorLayout, t, 0);
|
|
} else {
|
|
e(coordinatorLayout, t, 0, PKIFailureInfo.systemUnavail, Integer.MAX_VALUE);
|
|
}
|
|
}
|
|
}
|
|
} else if (!rvv.j) {
|
|
if (!this.e.g) {
|
|
View childAt = t.getChildAt(this.e.e);
|
|
int i4 = -childAt.getBottom();
|
|
if (this.e.c) {
|
|
int o2 = ViewCompat.o(childAt);
|
|
WindowInsetsCompat windowInsetsCompat = t.a;
|
|
round = o2 + (windowInsetsCompat != null ? windowInsetsCompat.i() : 0);
|
|
} else {
|
|
round = Math.round(childAt.getHeight() * this.e.d);
|
|
}
|
|
e(coordinatorLayout, t, i4 + round, PKIFailureInfo.systemUnavail, Integer.MAX_VALUE);
|
|
} else {
|
|
e(coordinatorLayout, t, 0, PKIFailureInfo.systemUnavail, Integer.MAX_VALUE);
|
|
}
|
|
} else {
|
|
e(coordinatorLayout, t, -t.i(), PKIFailureInfo.systemUnavail, Integer.MAX_VALUE);
|
|
}
|
|
t.f = 0;
|
|
this.e = null;
|
|
int c2 = c();
|
|
int i5 = -t.i();
|
|
if (c2 < i5) {
|
|
c2 = i5;
|
|
} else if (c2 > 0) {
|
|
c2 = 0;
|
|
}
|
|
e(c2);
|
|
a(coordinatorLayout, t, c(), 0, true);
|
|
t.d(c());
|
|
a(coordinatorLayout, (CoordinatorLayout) t);
|
|
final View b = b(coordinatorLayout);
|
|
if (b != null) {
|
|
if (Build.VERSION.SDK_INT >= 28) {
|
|
b.addOnUnhandledKeyEventListener(new View.OnUnhandledKeyEventListener(this, b, t) { // from class: o.iVG
|
|
private View b;
|
|
private AppBarLayout.BaseBehavior c;
|
|
private AppBarLayout e;
|
|
|
|
@Override // android.view.View.OnUnhandledKeyEventListener
|
|
public final boolean onUnhandledKeyEvent(View view, KeyEvent keyEvent) {
|
|
AppBarLayout.BaseBehavior.HJ_(keyEvent, this.b, this.e);
|
|
return false;
|
|
}
|
|
|
|
{
|
|
this.c = this;
|
|
this.b = b;
|
|
this.e = t;
|
|
}
|
|
});
|
|
} else {
|
|
b.setOnKeyListener(new View.OnKeyListener(this, b, t) { // from class: o.GJV
|
|
private AppBarLayout a;
|
|
private AppBarLayout.BaseBehavior b;
|
|
private View d;
|
|
|
|
@Override // android.view.View.OnKeyListener
|
|
public final boolean onKey(View view, int i6, KeyEvent keyEvent) {
|
|
AppBarLayout.BaseBehavior.HJ_(keyEvent, this.d, this.a);
|
|
return false;
|
|
}
|
|
|
|
{
|
|
this.b = this;
|
|
this.d = b;
|
|
this.a = t;
|
|
}
|
|
});
|
|
}
|
|
}
|
|
return c;
|
|
}
|
|
|
|
public static void HJ_(KeyEvent keyEvent, View view, AppBarLayout appBarLayout) {
|
|
if (keyEvent.getAction() == 0 || keyEvent.getAction() == 1) {
|
|
int keyCode = keyEvent.getKeyCode();
|
|
if (keyCode == 19 || keyCode == 280 || keyCode == 92) {
|
|
if (view.getScrollY() < view.getMeasuredHeight() * 0.1d) {
|
|
appBarLayout.setExpanded(true);
|
|
}
|
|
} else if ((keyCode == 20 || keyCode == 281 || keyCode == 93) && view.getScrollY() > 0) {
|
|
appBarLayout.setExpanded(false);
|
|
}
|
|
}
|
|
}
|
|
|
|
private void a(CoordinatorLayout coordinatorLayout, T t) {
|
|
View view;
|
|
ViewCompat.b(coordinatorLayout, AccessibilityNodeInfoCompat.AccessibilityActionCompat.I.c());
|
|
ViewCompat.b(coordinatorLayout, AccessibilityNodeInfoCompat.AccessibilityActionCompat.C.c());
|
|
if (t.i() == 0) {
|
|
return;
|
|
}
|
|
int childCount = coordinatorLayout.getChildCount();
|
|
boolean z = false;
|
|
int i = 0;
|
|
while (true) {
|
|
if (i >= childCount) {
|
|
view = null;
|
|
break;
|
|
}
|
|
View childAt = coordinatorLayout.getChildAt(i);
|
|
if (((CoordinatorLayout.RVV) childAt.getLayoutParams()).h instanceof ScrollingViewBehavior) {
|
|
view = childAt;
|
|
break;
|
|
}
|
|
i++;
|
|
}
|
|
if (view == null) {
|
|
return;
|
|
}
|
|
int childCount2 = t.getChildCount();
|
|
for (int i2 = 0; i2 < childCount2; i2++) {
|
|
if (((Sts) t.getChildAt(i2).getLayoutParams()).c != 0) {
|
|
if (!ViewCompat.D(coordinatorLayout)) {
|
|
ViewCompat.e(coordinatorLayout, new yZt(this) { // from class: com.google.android.material.appbar.AppBarLayout.BaseBehavior.1
|
|
private BaseBehavior c;
|
|
|
|
{
|
|
this.c = this;
|
|
}
|
|
|
|
@Override // o.yZt
|
|
public final void onInitializeAccessibilityNodeInfo(View view2, AccessibilityNodeInfoCompat accessibilityNodeInfoCompat) {
|
|
super.onInitializeAccessibilityNodeInfo(view2, accessibilityNodeInfoCompat);
|
|
accessibilityNodeInfoCompat.n(this.c.b);
|
|
accessibilityNodeInfoCompat.e((CharSequence) ScrollView.class.getName());
|
|
}
|
|
});
|
|
}
|
|
boolean z2 = true;
|
|
if (c() + this.d != (-t.i())) {
|
|
ViewCompat.a(coordinatorLayout, AccessibilityNodeInfoCompat.AccessibilityActionCompat.I, null, new AccessibilityViewCommand(this, t, z) { // from class: com.google.android.material.appbar.AppBarLayout.BaseBehavior.3
|
|
private BaseBehavior a;
|
|
private boolean d;
|
|
private AppBarLayout e;
|
|
|
|
{
|
|
this.a = this;
|
|
this.e = t;
|
|
this.d = z;
|
|
}
|
|
|
|
@Override // androidx.core.view.accessibility.AccessibilityViewCommand
|
|
public final boolean d(View view2) {
|
|
this.e.setExpanded(this.d);
|
|
return true;
|
|
}
|
|
});
|
|
z = true;
|
|
}
|
|
if (c() + this.d != 0) {
|
|
if (view.canScrollVertically(-1)) {
|
|
int i3 = -t.c();
|
|
if (i3 != 0) {
|
|
ViewCompat.a(coordinatorLayout, AccessibilityNodeInfoCompat.AccessibilityActionCompat.C, null, new AccessibilityViewCommand(this, coordinatorLayout, t, view, i3) { // from class: com.google.android.material.appbar.AppBarLayout.BaseBehavior.4
|
|
private AppBarLayout a;
|
|
private BaseBehavior b;
|
|
private CoordinatorLayout c;
|
|
private int d;
|
|
private View e;
|
|
|
|
{
|
|
this.b = this;
|
|
this.c = coordinatorLayout;
|
|
this.a = t;
|
|
this.e = view;
|
|
this.d = i3;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
@Override // androidx.core.view.accessibility.AccessibilityViewCommand
|
|
public final boolean d(View view2) {
|
|
this.b.e(this.c, this.a, this.e, 0, this.d, new int[]{0, 0}, 1);
|
|
return true;
|
|
}
|
|
});
|
|
}
|
|
} else {
|
|
ViewCompat.a(coordinatorLayout, AccessibilityNodeInfoCompat.AccessibilityActionCompat.C, null, new AccessibilityViewCommand(this, t, z2) { // from class: com.google.android.material.appbar.AppBarLayout.BaseBehavior.3
|
|
private BaseBehavior a;
|
|
private boolean d;
|
|
private AppBarLayout e;
|
|
|
|
{
|
|
this.a = this;
|
|
this.e = t;
|
|
this.d = z2;
|
|
}
|
|
|
|
@Override // androidx.core.view.accessibility.AccessibilityViewCommand
|
|
public final boolean d(View view2) {
|
|
this.e.setExpanded(this.d);
|
|
return true;
|
|
}
|
|
});
|
|
}
|
|
this.b = z2;
|
|
return;
|
|
}
|
|
z2 = z;
|
|
this.b = z2;
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
private static View b(CoordinatorLayout coordinatorLayout) {
|
|
int childCount = coordinatorLayout.getChildCount();
|
|
for (int i = 0; i < childCount; i++) {
|
|
View childAt = coordinatorLayout.getChildAt(i);
|
|
if ((childAt instanceof sVs) || (childAt instanceof AbsListView) || (childAt instanceof ScrollView)) {
|
|
return childAt;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override // o.xVN
|
|
public final int a() {
|
|
return c() + this.d;
|
|
}
|
|
|
|
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
/* renamed from: HR_, reason: merged with bridge method [inline-methods] */
|
|
public Parcelable LH_(CoordinatorLayout coordinatorLayout, T t) {
|
|
Parcelable LH_ = super.LH_(coordinatorLayout, t);
|
|
RVV HO_ = HO_(LH_, t);
|
|
return HO_ != null ? HO_ : LH_;
|
|
}
|
|
|
|
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
/* renamed from: HQ_, reason: merged with bridge method [inline-methods] */
|
|
public void LG_(CoordinatorLayout coordinatorLayout, T t, Parcelable parcelable) {
|
|
if (parcelable instanceof RVV) {
|
|
RVV rvv = (RVV) parcelable;
|
|
this.e = rvv;
|
|
super.LG_(coordinatorLayout, t, rvv.b);
|
|
} else {
|
|
super.LG_(coordinatorLayout, t, parcelable);
|
|
this.e = null;
|
|
}
|
|
}
|
|
|
|
final RVV HO_(Parcelable parcelable, T t) {
|
|
int c = c();
|
|
int childCount = t.getChildCount();
|
|
for (int i = 0; i < childCount; i++) {
|
|
View childAt = t.getChildAt(i);
|
|
int bottom = childAt.getBottom() + c;
|
|
if (childAt.getTop() + c <= 0 && bottom >= 0) {
|
|
if (parcelable == null) {
|
|
parcelable = XgG.a;
|
|
}
|
|
RVV rvv = new RVV(parcelable);
|
|
rvv.g = c == 0;
|
|
rvv.j = !rvv.g && (-c) >= t.i();
|
|
rvv.e = i;
|
|
int o2 = ViewCompat.o(childAt);
|
|
WindowInsetsCompat windowInsetsCompat = t.a;
|
|
rvv.c = bottom == o2 + (windowInsetsCompat != null ? windowInsetsCompat.i() : 0);
|
|
rvv.d = bottom / childAt.getHeight();
|
|
return rvv;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: protected */
|
|
/* loaded from: classes2.dex */
|
|
public static class RVV extends XgG {
|
|
public static final Parcelable.Creator<RVV> CREATOR = new Parcelable.ClassLoaderCreator<RVV>() { // from class: com.google.android.material.appbar.AppBarLayout.BaseBehavior.RVV.2
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* synthetic */ Object createFromParcel(Parcel parcel) {
|
|
return new RVV(parcel, null);
|
|
}
|
|
|
|
@Override // android.os.Parcelable.ClassLoaderCreator
|
|
public final /* synthetic */ RVV createFromParcel(Parcel parcel, ClassLoader classLoader) {
|
|
return new RVV(parcel, classLoader);
|
|
}
|
|
|
|
@Override // android.os.Parcelable.Creator
|
|
public final /* bridge */ /* synthetic */ Object[] newArray(int i) {
|
|
return new RVV[i];
|
|
}
|
|
};
|
|
boolean c;
|
|
float d;
|
|
int e;
|
|
boolean g;
|
|
boolean j;
|
|
|
|
public RVV(Parcel parcel, ClassLoader classLoader) {
|
|
super(parcel, classLoader);
|
|
this.j = parcel.readByte() != 0;
|
|
this.g = parcel.readByte() != 0;
|
|
this.e = parcel.readInt();
|
|
this.d = parcel.readFloat();
|
|
this.c = parcel.readByte() != 0;
|
|
}
|
|
|
|
public RVV(Parcelable parcelable) {
|
|
super(parcelable);
|
|
}
|
|
|
|
@Override // o.XgG, android.os.Parcelable
|
|
public final void writeToParcel(Parcel parcel, int i) {
|
|
super.writeToParcel(parcel, i);
|
|
parcel.writeByte(this.j ? (byte) 1 : (byte) 0);
|
|
parcel.writeByte(this.g ? (byte) 1 : (byte) 0);
|
|
parcel.writeInt(this.e);
|
|
parcel.writeFloat(this.d);
|
|
parcel.writeByte(this.c ? (byte) 1 : (byte) 0);
|
|
}
|
|
}
|
|
|
|
private void d(CoordinatorLayout coordinatorLayout, T t, int i) {
|
|
int height;
|
|
int abs = Math.abs((c() + this.d) - i);
|
|
float abs2 = Math.abs(BitmapDescriptorFactory.HUE_RED);
|
|
if (abs2 > BitmapDescriptorFactory.HUE_RED) {
|
|
height = Math.round((abs / abs2) * 1000.0f) * 3;
|
|
} else {
|
|
height = (int) (((abs / t.getHeight()) + 1.0f) * 150.0f);
|
|
}
|
|
int c = c() + this.d;
|
|
if (c == i) {
|
|
ValueAnimator valueAnimator = this.j;
|
|
if (valueAnimator == null || !valueAnimator.isRunning()) {
|
|
return;
|
|
}
|
|
this.j.cancel();
|
|
return;
|
|
}
|
|
ValueAnimator valueAnimator2 = this.j;
|
|
if (valueAnimator2 == null) {
|
|
ValueAnimator valueAnimator3 = new ValueAnimator();
|
|
this.j = valueAnimator3;
|
|
valueAnimator3.setInterpolator(C6217cMa.a);
|
|
this.j.addUpdateListener(new ValueAnimator.AnimatorUpdateListener(this, coordinatorLayout, t) { // from class: com.google.android.material.appbar.AppBarLayout.BaseBehavior.2
|
|
private CoordinatorLayout b;
|
|
private BaseBehavior d;
|
|
private AppBarLayout e;
|
|
|
|
{
|
|
this.d = this;
|
|
this.b = coordinatorLayout;
|
|
this.e = t;
|
|
}
|
|
|
|
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
|
public final void onAnimationUpdate(ValueAnimator valueAnimator4) {
|
|
this.d.e(this.b, this.e, ((Integer) valueAnimator4.getAnimatedValue()).intValue(), PKIFailureInfo.systemUnavail, Integer.MAX_VALUE);
|
|
}
|
|
});
|
|
} else {
|
|
valueAnimator2.cancel();
|
|
}
|
|
this.j.setDuration(Math.min(height, 600));
|
|
this.j.setIntValues(c, i);
|
|
this.j.start();
|
|
}
|
|
|
|
/* JADX WARN: Code restructure failed: missing block: B:19:0x004a, code lost:
|
|
|
|
if (r8 >= (r9 - (r0 != null ? r0.i() : 0))) goto L34;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:20:0x0065, code lost:
|
|
|
|
r8 = true;
|
|
*/
|
|
/* JADX WARN: Code restructure failed: missing block: B:49:0x0062, code lost:
|
|
|
|
if (r8 < (r9 - (r0 != null ? r0.i() : 0))) goto L35;
|
|
*/
|
|
/* JADX WARN: Removed duplicated region for block: B:23:0x006c */
|
|
/* JADX WARN: Removed duplicated region for block: B:26:0x007a */
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
private static void a(androidx.coordinatorlayout.widget.CoordinatorLayout r6, T r7, int r8, int r9, boolean r10) {
|
|
/*
|
|
int r0 = java.lang.Math.abs(r8)
|
|
int r1 = r7.getChildCount()
|
|
r2 = 0
|
|
r3 = r2
|
|
La:
|
|
if (r3 >= r1) goto L20
|
|
android.view.View r4 = r7.getChildAt(r3)
|
|
int r5 = r4.getTop()
|
|
if (r0 < r5) goto L1d
|
|
int r5 = r4.getBottom()
|
|
if (r0 > r5) goto L1d
|
|
goto L21
|
|
L1d:
|
|
int r3 = r3 + 1
|
|
goto La
|
|
L20:
|
|
r4 = 0
|
|
L21:
|
|
if (r4 == 0) goto L67
|
|
android.view.ViewGroup$LayoutParams r0 = r4.getLayoutParams()
|
|
com.google.android.material.appbar.AppBarLayout$Sts r0 = (com.google.android.material.appbar.AppBarLayout.Sts) r0
|
|
int r0 = r0.c
|
|
r1 = r0 & 1
|
|
if (r1 == 0) goto L67
|
|
int r1 = androidx.core.view.ViewCompat.o(r4)
|
|
if (r9 <= 0) goto L4d
|
|
r9 = r0 & 12
|
|
if (r9 == 0) goto L4d
|
|
int r8 = -r8
|
|
int r9 = r4.getBottom()
|
|
int r9 = r9 - r1
|
|
androidx.core.view.WindowInsetsCompat r0 = r7.a
|
|
if (r0 == 0) goto L48
|
|
int r0 = r0.i()
|
|
goto L49
|
|
L48:
|
|
r0 = r2
|
|
L49:
|
|
int r9 = r9 - r0
|
|
if (r8 < r9) goto L67
|
|
goto L65
|
|
L4d:
|
|
r9 = r0 & 2
|
|
if (r9 == 0) goto L67
|
|
int r8 = -r8
|
|
int r9 = r4.getBottom()
|
|
int r9 = r9 - r1
|
|
androidx.core.view.WindowInsetsCompat r0 = r7.a
|
|
if (r0 == 0) goto L60
|
|
int r0 = r0.i()
|
|
goto L61
|
|
L60:
|
|
r0 = r2
|
|
L61:
|
|
int r9 = r9 - r0
|
|
if (r8 >= r9) goto L65
|
|
goto L67
|
|
L65:
|
|
r8 = 1
|
|
goto L68
|
|
L67:
|
|
r8 = r2
|
|
L68:
|
|
boolean r9 = r7.e
|
|
if (r9 == 0) goto L74
|
|
android.view.View r8 = b(r6)
|
|
boolean r8 = r7.a(r8)
|
|
L74:
|
|
boolean r8 = r7.b(r8)
|
|
if (r10 != 0) goto La2
|
|
if (r8 == 0) goto La5
|
|
java.util.List r6 = r6.e(r7)
|
|
int r8 = r6.size()
|
|
L84:
|
|
if (r2 >= r8) goto La5
|
|
java.lang.Object r9 = r6.get(r2)
|
|
android.view.View r9 = (android.view.View) r9
|
|
android.view.ViewGroup$LayoutParams r9 = r9.getLayoutParams()
|
|
androidx.coordinatorlayout.widget.CoordinatorLayout$RVV r9 = (androidx.coordinatorlayout.widget.CoordinatorLayout.RVV) r9
|
|
androidx.coordinatorlayout.widget.CoordinatorLayout$Sts r9 = r9.h
|
|
boolean r10 = r9 instanceof com.google.android.material.appbar.AppBarLayout.ScrollingViewBehavior
|
|
if (r10 == 0) goto L9f
|
|
com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior r9 = (com.google.android.material.appbar.AppBarLayout.ScrollingViewBehavior) r9
|
|
int r6 = r9.c
|
|
if (r6 == 0) goto La5
|
|
goto La2
|
|
L9f:
|
|
int r2 = r2 + 1
|
|
goto L84
|
|
La2:
|
|
r7.jumpDrawablesToCurrentState()
|
|
La5:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.appbar.AppBarLayout.BaseBehavior.a(androidx.coordinatorlayout.widget.CoordinatorLayout, com.google.android.material.appbar.AppBarLayout, int, int, boolean):void");
|
|
}
|
|
|
|
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
/* renamed from: a, reason: merged with bridge method [inline-methods] */
|
|
public boolean e(CoordinatorLayout coordinatorLayout, T t, View view, View view2, int i, int i2) {
|
|
ValueAnimator valueAnimator;
|
|
boolean z = (i & 2) != 0 && (t.e || (t.i() != 0 && coordinatorLayout.getHeight() - view.getHeight() <= t.getHeight()));
|
|
if (z && (valueAnimator = this.j) != null) {
|
|
valueAnimator.cancel();
|
|
}
|
|
this.c = null;
|
|
this.i = i2;
|
|
return z;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
public static class ScrollingViewBehavior extends FTl {
|
|
@Override // o.FTl, androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
public final /* bridge */ /* synthetic */ boolean a(CoordinatorLayout coordinatorLayout, View view, int i, int i2, int i3, int i4) {
|
|
return super.a(coordinatorLayout, view, i, i2, i3, i4);
|
|
}
|
|
|
|
@Override // o.JFA
|
|
public final /* bridge */ /* synthetic */ int c() {
|
|
return super.c();
|
|
}
|
|
|
|
@Override // o.FTl
|
|
public final /* synthetic */ View c(List list) {
|
|
return d((List<View>) list);
|
|
}
|
|
|
|
@Override // o.JFA, androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
public final /* bridge */ /* synthetic */ boolean c(CoordinatorLayout coordinatorLayout, View view, int i) {
|
|
return super.c(coordinatorLayout, view, i);
|
|
}
|
|
|
|
@Override // o.JFA
|
|
public final /* bridge */ /* synthetic */ boolean e(int i) {
|
|
return super.e(i);
|
|
}
|
|
|
|
public ScrollingViewBehavior() {
|
|
}
|
|
|
|
public ScrollingViewBehavior(Context context, AttributeSet attributeSet) {
|
|
super(context, attributeSet);
|
|
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, C17052tZT.jNh.ScrollingViewBehavior_Layout);
|
|
((FTl) this).c = obtainStyledAttributes.getDimensionPixelSize(C17052tZT.jNh.ScrollingViewBehavior_Layout_behavior_overlapTop, 0);
|
|
obtainStyledAttributes.recycle();
|
|
}
|
|
|
|
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
public final boolean e(View view, View view2) {
|
|
return view2 instanceof AppBarLayout;
|
|
}
|
|
|
|
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
public final void c(CoordinatorLayout coordinatorLayout, View view) {
|
|
if (view instanceof AppBarLayout) {
|
|
ViewCompat.b(coordinatorLayout, AccessibilityNodeInfoCompat.AccessibilityActionCompat.I.c());
|
|
ViewCompat.b(coordinatorLayout, AccessibilityNodeInfoCompat.AccessibilityActionCompat.C.c());
|
|
ViewCompat.e(coordinatorLayout, (yZt) null);
|
|
}
|
|
}
|
|
|
|
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
public final boolean HT_(CoordinatorLayout coordinatorLayout, View view, Rect rect, boolean z) {
|
|
AppBarLayout d = d(coordinatorLayout.c(view));
|
|
if (d != null) {
|
|
Rect rect2 = new Rect(rect);
|
|
rect2.offset(view.getLeft(), view.getTop());
|
|
Rect rect3 = this.b;
|
|
rect3.set(0, 0, coordinatorLayout.getWidth(), coordinatorLayout.getHeight());
|
|
if (!rect3.contains(rect2)) {
|
|
d.setExpanded(false, !z);
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
@Override // o.FTl
|
|
public final float b(View view) {
|
|
int i;
|
|
int i2;
|
|
if (view instanceof AppBarLayout) {
|
|
AppBarLayout appBarLayout = (AppBarLayout) view;
|
|
int i3 = appBarLayout.i();
|
|
int c = appBarLayout.c();
|
|
CoordinatorLayout.Sts sts = ((CoordinatorLayout.RVV) appBarLayout.getLayoutParams()).h;
|
|
if (sts instanceof BaseBehavior) {
|
|
BaseBehavior baseBehavior = (BaseBehavior) sts;
|
|
i = baseBehavior.c() + baseBehavior.d;
|
|
} else {
|
|
i = 0;
|
|
}
|
|
if ((c == 0 || i3 + i > c) && (i2 = i3 - c) != 0) {
|
|
return (i / i2) + 1.0f;
|
|
}
|
|
}
|
|
return BitmapDescriptorFactory.HUE_RED;
|
|
}
|
|
|
|
private static AppBarLayout d(List<View> list) {
|
|
int size = list.size();
|
|
for (int i = 0; i < size; i++) {
|
|
View view = list.get(i);
|
|
if (view instanceof AppBarLayout) {
|
|
return (AppBarLayout) view;
|
|
}
|
|
}
|
|
return null;
|
|
}
|
|
|
|
@Override // o.FTl
|
|
public final int c(View view) {
|
|
if (view instanceof AppBarLayout) {
|
|
return ((AppBarLayout) view).i();
|
|
}
|
|
return super.c(view);
|
|
}
|
|
|
|
@Override // androidx.coordinatorlayout.widget.CoordinatorLayout.Sts
|
|
public boolean e(CoordinatorLayout coordinatorLayout, View view, View view2) {
|
|
CoordinatorLayout.Sts sts = ((CoordinatorLayout.RVV) view2.getLayoutParams()).h;
|
|
if (sts instanceof BaseBehavior) {
|
|
int bottom = view2.getBottom();
|
|
int top = view.getTop();
|
|
int i = ((BaseBehavior) sts).d;
|
|
ViewCompat.d(view, (((bottom - top) + i) + b()) - d(view2));
|
|
}
|
|
if (!(view2 instanceof AppBarLayout)) {
|
|
return false;
|
|
}
|
|
AppBarLayout appBarLayout = (AppBarLayout) view2;
|
|
if (!appBarLayout.e) {
|
|
return false;
|
|
}
|
|
appBarLayout.b(appBarLayout.a(view));
|
|
return false;
|
|
}
|
|
}
|
|
|
|
/* loaded from: classes2.dex */
|
|
public static class HBt extends IeS {
|
|
private final Rect a = new Rect();
|
|
private final Rect e = new Rect();
|
|
|
|
@Override // com.google.android.material.appbar.AppBarLayout.IeS
|
|
public final void e(AppBarLayout appBarLayout, View view, float f) {
|
|
Rect rect = this.a;
|
|
view.getDrawingRect(rect);
|
|
appBarLayout.offsetDescendantRectToMyCoords(view, rect);
|
|
WindowInsetsCompat windowInsetsCompat = appBarLayout.a;
|
|
rect.offset(0, -(windowInsetsCompat != null ? windowInsetsCompat.i() : 0));
|
|
float abs = this.a.top - Math.abs(f);
|
|
float f2 = BitmapDescriptorFactory.HUE_RED;
|
|
if (abs <= BitmapDescriptorFactory.HUE_RED) {
|
|
float abs2 = Math.abs(abs / this.a.height());
|
|
if (abs2 >= BitmapDescriptorFactory.HUE_RED) {
|
|
f2 = abs2 > 1.0f ? 1.0f : abs2;
|
|
}
|
|
float f3 = 1.0f - f2;
|
|
float height = (-abs) - ((this.a.height() * 0.3f) * (1.0f - (f3 * f3)));
|
|
view.setTranslationY(height);
|
|
view.getDrawingRect(this.e);
|
|
this.e.offset(0, (int) (-height));
|
|
ViewCompat.sq_(view, this.e);
|
|
return;
|
|
}
|
|
ViewCompat.sq_(view, null);
|
|
view.setTranslationY(BitmapDescriptorFactory.HUE_RED);
|
|
}
|
|
}
|
|
|
|
@Override // android.widget.LinearLayout, android.view.ViewGroup
|
|
protected /* synthetic */ ViewGroup.LayoutParams generateDefaultLayoutParams() {
|
|
return new Sts();
|
|
}
|
|
|
|
@Override // android.widget.LinearLayout, android.view.ViewGroup
|
|
protected /* synthetic */ LinearLayout.LayoutParams generateDefaultLayoutParams() {
|
|
return new Sts();
|
|
}
|
|
|
|
@Override // android.widget.LinearLayout, android.view.ViewGroup
|
|
public /* synthetic */ ViewGroup.LayoutParams generateLayoutParams(AttributeSet attributeSet) {
|
|
return new Sts(getContext(), attributeSet);
|
|
}
|
|
|
|
@Override // android.widget.LinearLayout, android.view.ViewGroup
|
|
public /* synthetic */ LinearLayout.LayoutParams generateLayoutParams(AttributeSet attributeSet) {
|
|
return new Sts(getContext(), attributeSet);
|
|
}
|
|
|
|
public void setLiftableOverrideEnabled(boolean z) {
|
|
this.x = z;
|
|
}
|
|
|
|
public void setLiftOnScroll(boolean z) {
|
|
this.e = z;
|
|
}
|
|
}
|