Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.
This commit is contained in:
@@ -0,0 +1,196 @@
|
||||
package com.google.android.material.appbar;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Parcelable;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.VelocityTracker;
|
||||
import android.view.View;
|
||||
import android.view.ViewConfiguration;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import j2.AbstractC0403a;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class AppBarLayout$BaseBehavior<T> extends AbstractC0403a {
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public boolean f5511b;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public int f5513d;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public VelocityTracker f5515f;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public int f5512c = -1;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public int f5514e = -1;
|
||||
|
||||
public AppBarLayout$BaseBehavior() {
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean j(CoordinatorLayout coordinatorLayout, View view, MotionEvent motionEvent) {
|
||||
int findPointerIndex;
|
||||
if (this.f5514e < 0) {
|
||||
this.f5514e = ViewConfiguration.get(coordinatorLayout.getContext()).getScaledTouchSlop();
|
||||
}
|
||||
if (motionEvent.getActionMasked() == 2 && this.f5511b) {
|
||||
int i = this.f5512c;
|
||||
if (i != -1 && (findPointerIndex = motionEvent.findPointerIndex(i)) != -1) {
|
||||
int y3 = (int) motionEvent.getY(findPointerIndex);
|
||||
if (Math.abs(y3 - this.f5513d) > this.f5514e) {
|
||||
this.f5513d = y3;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (motionEvent.getActionMasked() != 0) {
|
||||
VelocityTracker velocityTracker = this.f5515f;
|
||||
if (velocityTracker != null) {
|
||||
velocityTracker.addMovement(motionEvent);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
this.f5512c = -1;
|
||||
motionEvent.getX();
|
||||
motionEvent.getY();
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
@Override // j2.AbstractC0403a, A.b
|
||||
public final boolean k(CoordinatorLayout coordinatorLayout, View view, int i) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean l(CoordinatorLayout coordinatorLayout, View view, int i, int i4, int i5) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final /* synthetic */ void n(CoordinatorLayout coordinatorLayout, View view, View view2, int i, int i4, int[] iArr, int i5) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final void o(CoordinatorLayout coordinatorLayout, View view, int i, int i4, int i5, int[] iArr) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final void q(View view, Parcelable parcelable) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final Parcelable r(View view) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean s(View view, int i, int i4) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final void t(View view, View view2, int i) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x005c */
|
||||
/* JADX WARN: Removed duplicated region for block: B:19:0x0063 A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:21:0x0064 A[RETURN] */
|
||||
@Override // A.b
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final boolean u(android.view.View r6, android.view.MotionEvent r7) {
|
||||
/*
|
||||
r5 = this;
|
||||
int r0 = r7.getActionMasked()
|
||||
r1 = -1
|
||||
r2 = 1
|
||||
r3 = 0
|
||||
if (r0 == r2) goto L46
|
||||
r4 = 2
|
||||
if (r0 == r4) goto L2d
|
||||
r6 = 3
|
||||
if (r0 == r6) goto L4a
|
||||
r6 = 6
|
||||
if (r0 == r6) goto L13
|
||||
goto L58
|
||||
L13:
|
||||
int r6 = r7.getActionIndex()
|
||||
if (r6 != 0) goto L1b
|
||||
r6 = r2
|
||||
goto L1c
|
||||
L1b:
|
||||
r6 = r3
|
||||
L1c:
|
||||
int r0 = r7.getPointerId(r6)
|
||||
r5.f5512c = r0
|
||||
float r6 = r7.getY(r6)
|
||||
r0 = 1056964608(0x3f000000, float:0.5)
|
||||
float r6 = r6 + r0
|
||||
int r6 = (int) r6
|
||||
r5.f5513d = r6
|
||||
goto L58
|
||||
L2d:
|
||||
int r0 = r5.f5512c
|
||||
int r0 = r7.findPointerIndex(r0)
|
||||
if (r0 != r1) goto L36
|
||||
goto L63
|
||||
L36:
|
||||
float r7 = r7.getY(r0)
|
||||
int r7 = (int) r7
|
||||
r5.f5513d = r7
|
||||
r6.getClass()
|
||||
java.lang.ClassCastException r5 = new java.lang.ClassCastException
|
||||
r5.<init>()
|
||||
throw r5
|
||||
L46:
|
||||
android.view.VelocityTracker r0 = r5.f5515f
|
||||
if (r0 != 0) goto L65
|
||||
L4a:
|
||||
r5.f5511b = r3
|
||||
r5.f5512c = r1
|
||||
android.view.VelocityTracker r6 = r5.f5515f
|
||||
if (r6 == 0) goto L58
|
||||
r6.recycle()
|
||||
r6 = 0
|
||||
r5.f5515f = r6
|
||||
L58:
|
||||
android.view.VelocityTracker r6 = r5.f5515f
|
||||
if (r6 == 0) goto L5f
|
||||
r6.addMovement(r7)
|
||||
L5f:
|
||||
boolean r5 = r5.f5511b
|
||||
if (r5 != 0) goto L64
|
||||
L63:
|
||||
return r3
|
||||
L64:
|
||||
return r2
|
||||
L65:
|
||||
r0.addMovement(r7)
|
||||
android.view.VelocityTracker r7 = r5.f5515f
|
||||
r0 = 1000(0x3e8, float:1.401E-42)
|
||||
r7.computeCurrentVelocity(r0)
|
||||
android.view.VelocityTracker r7 = r5.f5515f
|
||||
int r5 = r5.f5512c
|
||||
r7.getYVelocity(r5)
|
||||
r6.getClass()
|
||||
java.lang.ClassCastException r5 = new java.lang.ClassCastException
|
||||
r5.<init>()
|
||||
throw r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.appbar.AppBarLayout$BaseBehavior.u(android.view.View, android.view.MotionEvent):boolean");
|
||||
}
|
||||
|
||||
public AppBarLayout$BaseBehavior(Context context, AttributeSet attributeSet) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.google.android.material.appbar;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class AppBarLayout$Behavior extends AppBarLayout$BaseBehavior<Object> {
|
||||
public AppBarLayout$Behavior() {
|
||||
}
|
||||
|
||||
public AppBarLayout$Behavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package com.google.android.material.appbar;
|
||||
|
||||
import A.b;
|
||||
import A.e;
|
||||
import O.X;
|
||||
import a.AbstractC0106b;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import h2.AbstractC0379a;
|
||||
import j2.AbstractC0403a;
|
||||
import java.util.ArrayList;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class AppBarLayout$ScrollingViewBehavior extends AbstractC0403a {
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final int f5516b;
|
||||
|
||||
public AppBarLayout$ScrollingViewBehavior() {
|
||||
new Rect();
|
||||
new Rect();
|
||||
}
|
||||
|
||||
public static void w(ArrayList arrayList) {
|
||||
int size = arrayList.size();
|
||||
for (int i = 0; i < size; i++) {
|
||||
}
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final void f(View view) {
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public boolean h(CoordinatorLayout coordinatorLayout, View view, View view2) {
|
||||
b bVar = ((e) view2.getLayoutParams()).f9a;
|
||||
if (bVar instanceof AppBarLayout$BaseBehavior) {
|
||||
int bottom = view2.getBottom() - view.getTop();
|
||||
((AppBarLayout$BaseBehavior) bVar).getClass();
|
||||
int i = this.f5516b;
|
||||
int d4 = bottom - (i == 0 ? 0 : AbstractC0106b.d((int) (BitmapDescriptorFactory.HUE_RED * i), 0, i));
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
view.offsetTopAndBottom(d4);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean l(CoordinatorLayout coordinatorLayout, View view, int i, int i4, int i5) {
|
||||
int i6 = view.getLayoutParams().height;
|
||||
if (i6 != -1 && i6 != -2) {
|
||||
return false;
|
||||
}
|
||||
w(coordinatorLayout.j(view));
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final void p(CoordinatorLayout coordinatorLayout, View view) {
|
||||
w(coordinatorLayout.j(view));
|
||||
}
|
||||
|
||||
@Override // j2.AbstractC0403a
|
||||
public final void v(CoordinatorLayout coordinatorLayout, View view, int i) {
|
||||
w(coordinatorLayout.j(view));
|
||||
coordinatorLayout.q(view, i);
|
||||
}
|
||||
|
||||
public AppBarLayout$ScrollingViewBehavior(Context context, AttributeSet attributeSet) {
|
||||
new Rect();
|
||||
new Rect();
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC0379a.f6776y);
|
||||
this.f5516b = obtainStyledAttributes.getDimensionPixelSize(0, 0);
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,244 @@
|
||||
package com.google.android.material.appbar;
|
||||
|
||||
import A.i;
|
||||
import E2.g;
|
||||
import K2.a;
|
||||
import O.L;
|
||||
import O.X;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Pair;
|
||||
import android.view.Menu;
|
||||
import android.view.View;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
import androidx.appcompat.widget.Toolbar;
|
||||
import com.adif.elcanomovil.R;
|
||||
import h2.AbstractC0379a;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.WeakHashMap;
|
||||
import m3.d;
|
||||
import m3.l;
|
||||
import x2.m;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class MaterialToolbar extends Toolbar {
|
||||
|
||||
/* renamed from: c0, reason: collision with root package name */
|
||||
public static final ImageView.ScaleType[] f5517c0 = {ImageView.ScaleType.MATRIX, ImageView.ScaleType.FIT_XY, ImageView.ScaleType.FIT_START, ImageView.ScaleType.FIT_CENTER, ImageView.ScaleType.FIT_END, ImageView.ScaleType.CENTER, ImageView.ScaleType.CENTER_CROP, ImageView.ScaleType.CENTER_INSIDE};
|
||||
|
||||
/* renamed from: U, reason: collision with root package name */
|
||||
public Integer f5518U;
|
||||
|
||||
/* renamed from: V, reason: collision with root package name */
|
||||
public boolean f5519V;
|
||||
|
||||
/* renamed from: W, reason: collision with root package name */
|
||||
public boolean f5520W;
|
||||
|
||||
/* renamed from: a0, reason: collision with root package name */
|
||||
public ImageView.ScaleType f5521a0;
|
||||
|
||||
/* renamed from: b0, reason: collision with root package name */
|
||||
public Boolean f5522b0;
|
||||
|
||||
public MaterialToolbar(Context context, AttributeSet attributeSet) {
|
||||
super(a.a(context, attributeSet, R.attr.toolbarStyle, 2132018386), attributeSet, 0);
|
||||
Context context2 = getContext();
|
||||
TypedArray h = m.h(context2, attributeSet, AbstractC0379a.f6772u, R.attr.toolbarStyle, 2132018386, new int[0]);
|
||||
if (h.hasValue(2)) {
|
||||
setNavigationIconTint(h.getColor(2, -1));
|
||||
}
|
||||
this.f5519V = h.getBoolean(4, false);
|
||||
this.f5520W = h.getBoolean(3, false);
|
||||
int i = h.getInt(1, -1);
|
||||
if (i >= 0) {
|
||||
ImageView.ScaleType[] scaleTypeArr = f5517c0;
|
||||
if (i < scaleTypeArr.length) {
|
||||
this.f5521a0 = scaleTypeArr[i];
|
||||
}
|
||||
}
|
||||
if (h.hasValue(0)) {
|
||||
this.f5522b0 = Boolean.valueOf(h.getBoolean(0, false));
|
||||
}
|
||||
h.recycle();
|
||||
Drawable background = getBackground();
|
||||
ColorStateList valueOf = background == null ? ColorStateList.valueOf(0) : l.p(background);
|
||||
if (valueOf != null) {
|
||||
g gVar = new g();
|
||||
gVar.j(valueOf);
|
||||
gVar.h(context2);
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
gVar.i(L.i(this));
|
||||
setBackground(gVar);
|
||||
}
|
||||
}
|
||||
|
||||
public ImageView.ScaleType getLogoScaleType() {
|
||||
return this.f5521a0;
|
||||
}
|
||||
|
||||
public Integer getNavigationIconTint() {
|
||||
return this.f5518U;
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.Toolbar
|
||||
public final void m(int i) {
|
||||
Menu menu = getMenu();
|
||||
boolean z3 = menu instanceof l.m;
|
||||
if (z3) {
|
||||
((l.m) menu).w();
|
||||
}
|
||||
super.m(i);
|
||||
if (z3) {
|
||||
((l.m) menu).v();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.Toolbar, android.view.ViewGroup, android.view.View
|
||||
public final void onAttachedToWindow() {
|
||||
super.onAttachedToWindow();
|
||||
Drawable background = getBackground();
|
||||
if (background instanceof g) {
|
||||
d.H(this, (g) background);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.Toolbar, android.view.ViewGroup, android.view.View
|
||||
public final void onLayout(boolean z3, int i, int i4, int i5, int i6) {
|
||||
ImageView imageView;
|
||||
Drawable drawable;
|
||||
super.onLayout(z3, i, i4, i5, i6);
|
||||
int i7 = 0;
|
||||
ImageView imageView2 = null;
|
||||
if (this.f5519V || this.f5520W) {
|
||||
ArrayList f2 = m.f(this, getTitle());
|
||||
boolean isEmpty = f2.isEmpty();
|
||||
i iVar = m.f8967c;
|
||||
TextView textView = isEmpty ? null : (TextView) Collections.min(f2, iVar);
|
||||
ArrayList f4 = m.f(this, getSubtitle());
|
||||
TextView textView2 = f4.isEmpty() ? null : (TextView) Collections.max(f4, iVar);
|
||||
if (textView != null || textView2 != null) {
|
||||
int measuredWidth = getMeasuredWidth();
|
||||
int i8 = measuredWidth / 2;
|
||||
int paddingLeft = getPaddingLeft();
|
||||
int paddingRight = measuredWidth - getPaddingRight();
|
||||
for (int i9 = 0; i9 < getChildCount(); i9++) {
|
||||
View childAt = getChildAt(i9);
|
||||
if (childAt.getVisibility() != 8 && childAt != textView && childAt != textView2) {
|
||||
if (childAt.getRight() < i8 && childAt.getRight() > paddingLeft) {
|
||||
paddingLeft = childAt.getRight();
|
||||
}
|
||||
if (childAt.getLeft() > i8 && childAt.getLeft() < paddingRight) {
|
||||
paddingRight = childAt.getLeft();
|
||||
}
|
||||
}
|
||||
}
|
||||
Pair pair = new Pair(Integer.valueOf(paddingLeft), Integer.valueOf(paddingRight));
|
||||
if (this.f5519V && textView != null) {
|
||||
x(textView, pair);
|
||||
}
|
||||
if (this.f5520W && textView2 != null) {
|
||||
x(textView2, pair);
|
||||
}
|
||||
}
|
||||
}
|
||||
Drawable logo = getLogo();
|
||||
if (logo != null) {
|
||||
while (true) {
|
||||
if (i7 >= getChildCount()) {
|
||||
break;
|
||||
}
|
||||
View childAt2 = getChildAt(i7);
|
||||
if ((childAt2 instanceof ImageView) && (drawable = (imageView = (ImageView) childAt2).getDrawable()) != null && drawable.getConstantState() != null && drawable.getConstantState().equals(logo.getConstantState())) {
|
||||
imageView2 = imageView;
|
||||
break;
|
||||
}
|
||||
i7++;
|
||||
}
|
||||
}
|
||||
if (imageView2 != null) {
|
||||
Boolean bool = this.f5522b0;
|
||||
if (bool != null) {
|
||||
imageView2.setAdjustViewBounds(bool.booleanValue());
|
||||
}
|
||||
ImageView.ScaleType scaleType = this.f5521a0;
|
||||
if (scaleType != null) {
|
||||
imageView2.setScaleType(scaleType);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setElevation(float f2) {
|
||||
super.setElevation(f2);
|
||||
Drawable background = getBackground();
|
||||
if (background instanceof g) {
|
||||
((g) background).i(f2);
|
||||
}
|
||||
}
|
||||
|
||||
public void setLogoAdjustViewBounds(boolean z3) {
|
||||
Boolean bool = this.f5522b0;
|
||||
if (bool == null || bool.booleanValue() != z3) {
|
||||
this.f5522b0 = Boolean.valueOf(z3);
|
||||
requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
public void setLogoScaleType(ImageView.ScaleType scaleType) {
|
||||
if (this.f5521a0 != scaleType) {
|
||||
this.f5521a0 = scaleType;
|
||||
requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.Toolbar
|
||||
public void setNavigationIcon(Drawable drawable) {
|
||||
if (drawable != null && this.f5518U != null) {
|
||||
drawable = drawable.mutate();
|
||||
H.a.g(drawable, this.f5518U.intValue());
|
||||
}
|
||||
super.setNavigationIcon(drawable);
|
||||
}
|
||||
|
||||
public void setNavigationIconTint(int i) {
|
||||
this.f5518U = Integer.valueOf(i);
|
||||
Drawable navigationIcon = getNavigationIcon();
|
||||
if (navigationIcon != null) {
|
||||
setNavigationIcon(navigationIcon);
|
||||
}
|
||||
}
|
||||
|
||||
public void setSubtitleCentered(boolean z3) {
|
||||
if (this.f5520W != z3) {
|
||||
this.f5520W = z3;
|
||||
requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
public void setTitleCentered(boolean z3) {
|
||||
if (this.f5519V != z3) {
|
||||
this.f5519V = z3;
|
||||
requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
public final void x(TextView textView, Pair pair) {
|
||||
int measuredWidth = getMeasuredWidth();
|
||||
int measuredWidth2 = textView.getMeasuredWidth();
|
||||
int i = (measuredWidth / 2) - (measuredWidth2 / 2);
|
||||
int i4 = measuredWidth2 + i;
|
||||
int max = Math.max(Math.max(((Integer) pair.first).intValue() - i, 0), Math.max(i4 - ((Integer) pair.second).intValue(), 0));
|
||||
if (max > 0) {
|
||||
i += max;
|
||||
i4 -= max;
|
||||
textView.measure(View.MeasureSpec.makeMeasureSpec(i4 - i, 1073741824), textView.getMeasuredHeightAndState());
|
||||
}
|
||||
textView.layout(i, textView.getTop(), i4, textView.getBottom());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,100 @@
|
||||
package com.google.android.material.behavior;
|
||||
|
||||
import A.b;
|
||||
import B0.q;
|
||||
import C.w;
|
||||
import a.AbstractC0106b;
|
||||
import android.animation.TimeInterpolator;
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.ViewPropertyAnimator;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import com.adif.elcanomovil.R;
|
||||
import i2.AbstractC0396a;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashSet;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class HideBottomViewOnScrollBehavior<V extends View> extends b {
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public int f5524b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public int f5525c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public TimeInterpolator f5526d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public TimeInterpolator f5527e;
|
||||
public ViewPropertyAnimator h;
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final LinkedHashSet f5523a = new LinkedHashSet();
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public int f5528f = 0;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public int f5529g = 2;
|
||||
|
||||
public HideBottomViewOnScrollBehavior() {
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public boolean k(CoordinatorLayout coordinatorLayout, View view, int i) {
|
||||
this.f5528f = view.getMeasuredHeight() + ((ViewGroup.MarginLayoutParams) view.getLayoutParams()).bottomMargin;
|
||||
this.f5524b = AbstractC0106b.E(view.getContext(), R.attr.motionDurationLong2, 225);
|
||||
this.f5525c = AbstractC0106b.E(view.getContext(), R.attr.motionDurationMedium4, 175);
|
||||
this.f5526d = AbstractC0106b.F(view.getContext(), R.attr.motionEasingEmphasizedInterpolator, AbstractC0396a.f6818d);
|
||||
this.f5527e = AbstractC0106b.F(view.getContext(), R.attr.motionEasingEmphasizedInterpolator, AbstractC0396a.f6817c);
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final void o(CoordinatorLayout coordinatorLayout, View view, int i, int i4, int i5, int[] iArr) {
|
||||
LinkedHashSet linkedHashSet = this.f5523a;
|
||||
if (i > 0) {
|
||||
if (this.f5529g == 1) {
|
||||
return;
|
||||
}
|
||||
ViewPropertyAnimator viewPropertyAnimator = this.h;
|
||||
if (viewPropertyAnimator != null) {
|
||||
viewPropertyAnimator.cancel();
|
||||
view.clearAnimation();
|
||||
}
|
||||
this.f5529g = 1;
|
||||
Iterator it = linkedHashSet.iterator();
|
||||
if (it.hasNext()) {
|
||||
throw w.g(it);
|
||||
}
|
||||
this.h = view.animate().translationY(this.f5528f).setInterpolator(this.f5527e).setDuration(this.f5525c).setListener(new q(this, 5));
|
||||
return;
|
||||
}
|
||||
if (i >= 0 || this.f5529g == 2) {
|
||||
return;
|
||||
}
|
||||
ViewPropertyAnimator viewPropertyAnimator2 = this.h;
|
||||
if (viewPropertyAnimator2 != null) {
|
||||
viewPropertyAnimator2.cancel();
|
||||
view.clearAnimation();
|
||||
}
|
||||
this.f5529g = 2;
|
||||
Iterator it2 = linkedHashSet.iterator();
|
||||
if (it2.hasNext()) {
|
||||
throw w.g(it2);
|
||||
}
|
||||
this.h = view.animate().translationY(0).setInterpolator(this.f5526d).setDuration(this.f5524b).setListener(new q(this, 5));
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public boolean s(View view, int i, int i4) {
|
||||
return i == 2;
|
||||
}
|
||||
|
||||
public HideBottomViewOnScrollBehavior(Context context, AttributeSet attributeSet) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,89 @@
|
||||
package com.google.android.material.behavior;
|
||||
|
||||
import A.b;
|
||||
import G2.f;
|
||||
import O.X;
|
||||
import X.d;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import java.util.WeakHashMap;
|
||||
import l2.C0437a;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class SwipeDismissBehavior<V extends View> extends b {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public d f5530a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public f f5531b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public boolean f5532c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public boolean f5533d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public int f5534e = 2;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public float f5535f = BitmapDescriptorFactory.HUE_RED;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public float f5536g = 0.5f;
|
||||
public final C0437a h = new C0437a(this);
|
||||
|
||||
@Override // A.b
|
||||
public boolean j(CoordinatorLayout coordinatorLayout, View view, MotionEvent motionEvent) {
|
||||
boolean z3 = this.f5532c;
|
||||
int actionMasked = motionEvent.getActionMasked();
|
||||
if (actionMasked == 0) {
|
||||
z3 = coordinatorLayout.o(view, (int) motionEvent.getX(), (int) motionEvent.getY());
|
||||
this.f5532c = z3;
|
||||
} else if (actionMasked == 1 || actionMasked == 3) {
|
||||
this.f5532c = false;
|
||||
}
|
||||
if (z3) {
|
||||
if (this.f5530a == null) {
|
||||
this.f5530a = new d(coordinatorLayout.getContext(), coordinatorLayout, this.h);
|
||||
}
|
||||
if (!this.f5533d && this.f5530a.p(motionEvent)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean k(CoordinatorLayout coordinatorLayout, View view, int i) {
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
if (view.getImportantForAccessibility() == 0) {
|
||||
view.setImportantForAccessibility(1);
|
||||
X.h(view, 1048576);
|
||||
X.e(view, 0);
|
||||
if (v(view)) {
|
||||
X.i(view, P.f.f1333j, new h3.d(this, 4));
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean u(View view, MotionEvent motionEvent) {
|
||||
if (this.f5530a == null) {
|
||||
return false;
|
||||
}
|
||||
if (this.f5533d && motionEvent.getActionMasked() == 3) {
|
||||
return true;
|
||||
}
|
||||
this.f5530a.j(motionEvent);
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean v(View view) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.google.android.material.bottomappbar;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import com.google.android.material.behavior.HideBottomViewOnScrollBehavior;
|
||||
import m2.ViewOnLayoutChangeListenerC0506a;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class BottomAppBar$Behavior extends HideBottomViewOnScrollBehavior<Object> {
|
||||
public BottomAppBar$Behavior() {
|
||||
new ViewOnLayoutChangeListenerC0506a(this, 0);
|
||||
new Rect();
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.behavior.HideBottomViewOnScrollBehavior, A.b
|
||||
public final boolean k(CoordinatorLayout coordinatorLayout, View view, int i) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.behavior.HideBottomViewOnScrollBehavior, A.b
|
||||
public final boolean s(View view, int i, int i4) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
public BottomAppBar$Behavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
new ViewOnLayoutChangeListenerC0506a(this, 0);
|
||||
new Rect();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.google.android.material.bottomnavigation;
|
||||
|
||||
import R0.h;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import com.adif.elcanomovil.R;
|
||||
import f0.C0338b;
|
||||
import h2.AbstractC0379a;
|
||||
import n2.b;
|
||||
import n2.c;
|
||||
import n2.d;
|
||||
import x2.m;
|
||||
import z2.AbstractC0681k;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class BottomNavigationView extends AbstractC0681k {
|
||||
public BottomNavigationView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
h i = m.i(getContext(), attributeSet, AbstractC0379a.f6756b, R.attr.bottomNavigationStyle, 2132018084, new int[0]);
|
||||
TypedArray typedArray = (TypedArray) i.f1414b;
|
||||
setItemHorizontalTranslationEnabled(typedArray.getBoolean(2, true));
|
||||
if (typedArray.hasValue(0)) {
|
||||
setMinimumHeight(typedArray.getDimensionPixelSize(0, 0));
|
||||
}
|
||||
typedArray.getBoolean(1, true);
|
||||
i.n();
|
||||
m.d(this, new C0338b(8));
|
||||
}
|
||||
|
||||
@Override // z2.AbstractC0681k
|
||||
public int getMaxItemCount() {
|
||||
return 5;
|
||||
}
|
||||
|
||||
@Override // android.widget.FrameLayout, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
int suggestedMinimumHeight = getSuggestedMinimumHeight();
|
||||
if (View.MeasureSpec.getMode(i4) != 1073741824 && suggestedMinimumHeight > 0) {
|
||||
i4 = View.MeasureSpec.makeMeasureSpec(Math.min(View.MeasureSpec.getSize(i4), getPaddingBottom() + getPaddingTop() + suggestedMinimumHeight), 1073741824);
|
||||
}
|
||||
super.onMeasure(i, i4);
|
||||
}
|
||||
|
||||
public void setItemHorizontalTranslationEnabled(boolean z3) {
|
||||
b bVar = (b) getMenuView();
|
||||
if (bVar.f7865L != z3) {
|
||||
bVar.setItemHorizontalTranslationEnabled(z3);
|
||||
getPresenter().h(false);
|
||||
}
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setOnNavigationItemReselectedListener(c cVar) {
|
||||
setOnItemReselectedListener(cVar);
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public void setOnNavigationItemSelectedListener(d dVar) {
|
||||
setOnItemSelectedListener(dVar);
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,795 @@
|
||||
package com.google.android.material.button;
|
||||
|
||||
import C.w;
|
||||
import D.h;
|
||||
import E2.j;
|
||||
import E2.k;
|
||||
import E2.u;
|
||||
import K2.a;
|
||||
import O.X;
|
||||
import a.AbstractC0105a;
|
||||
import a.AbstractC0106b;
|
||||
import android.R;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.RippleDrawable;
|
||||
import android.os.Parcelable;
|
||||
import android.text.Layout;
|
||||
import android.text.TextPaint;
|
||||
import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.accessibility.AccessibilityEvent;
|
||||
import android.view.accessibility.AccessibilityNodeInfo;
|
||||
import android.widget.Button;
|
||||
import android.widget.Checkable;
|
||||
import android.widget.CompoundButton;
|
||||
import androidx.appcompat.widget.AppCompatButton;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import h2.AbstractC0379a;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.WeakHashMap;
|
||||
import m3.d;
|
||||
import p2.InterfaceC0552a;
|
||||
import p2.b;
|
||||
import p2.c;
|
||||
import x2.m;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class MaterialButton extends AppCompatButton implements Checkable, u {
|
||||
|
||||
/* renamed from: r, reason: collision with root package name */
|
||||
public static final int[] f5589r = {R.attr.state_checkable};
|
||||
|
||||
/* renamed from: s, reason: collision with root package name */
|
||||
public static final int[] f5590s = {R.attr.state_checked};
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final c f5591d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final LinkedHashSet f5592e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public InterfaceC0552a f5593f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public PorterDuff.Mode f5594g;
|
||||
public ColorStateList h;
|
||||
public Drawable i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public String f5595j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public int f5596k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public int f5597l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public int f5598m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public int f5599n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public boolean f5600o;
|
||||
public boolean p;
|
||||
|
||||
/* renamed from: q, reason: collision with root package name */
|
||||
public int f5601q;
|
||||
|
||||
public MaterialButton(Context context, AttributeSet attributeSet) {
|
||||
super(a.a(context, attributeSet, com.adif.elcanomovil.R.attr.materialButtonStyle, 2132018286), attributeSet, com.adif.elcanomovil.R.attr.materialButtonStyle);
|
||||
this.f5592e = new LinkedHashSet();
|
||||
this.f5600o = false;
|
||||
this.p = false;
|
||||
Context context2 = getContext();
|
||||
TypedArray h = m.h(context2, attributeSet, AbstractC0379a.f6764l, com.adif.elcanomovil.R.attr.materialButtonStyle, 2132018286, new int[0]);
|
||||
this.f5599n = h.getDimensionPixelSize(12, 0);
|
||||
int i = h.getInt(15, -1);
|
||||
PorterDuff.Mode mode = PorterDuff.Mode.SRC_IN;
|
||||
this.f5594g = m.j(i, mode);
|
||||
this.h = AbstractC0105a.w(getContext(), h, 14);
|
||||
this.i = AbstractC0105a.z(getContext(), h, 10);
|
||||
this.f5601q = h.getInteger(11, 1);
|
||||
this.f5596k = h.getDimensionPixelSize(13, 0);
|
||||
c cVar = new c(this, k.b(context2, attributeSet, com.adif.elcanomovil.R.attr.materialButtonStyle, 2132018286).a());
|
||||
this.f5591d = cVar;
|
||||
cVar.f8124c = h.getDimensionPixelOffset(1, 0);
|
||||
cVar.f8125d = h.getDimensionPixelOffset(2, 0);
|
||||
cVar.f8126e = h.getDimensionPixelOffset(3, 0);
|
||||
cVar.f8127f = h.getDimensionPixelOffset(4, 0);
|
||||
if (h.hasValue(8)) {
|
||||
int dimensionPixelSize = h.getDimensionPixelSize(8, -1);
|
||||
cVar.f8128g = dimensionPixelSize;
|
||||
float f2 = dimensionPixelSize;
|
||||
j e4 = cVar.f8123b.e();
|
||||
e4.f422e = new E2.a(f2);
|
||||
e4.f423f = new E2.a(f2);
|
||||
e4.f424g = new E2.a(f2);
|
||||
e4.h = new E2.a(f2);
|
||||
cVar.c(e4.a());
|
||||
cVar.p = true;
|
||||
}
|
||||
cVar.h = h.getDimensionPixelSize(20, 0);
|
||||
cVar.i = m.j(h.getInt(7, -1), mode);
|
||||
cVar.f8129j = AbstractC0105a.w(getContext(), h, 6);
|
||||
cVar.f8130k = AbstractC0105a.w(getContext(), h, 19);
|
||||
cVar.f8131l = AbstractC0105a.w(getContext(), h, 16);
|
||||
cVar.f8135q = h.getBoolean(5, false);
|
||||
cVar.f8138t = h.getDimensionPixelSize(9, 0);
|
||||
cVar.f8136r = h.getBoolean(21, true);
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
int paddingStart = getPaddingStart();
|
||||
int paddingTop = getPaddingTop();
|
||||
int paddingEnd = getPaddingEnd();
|
||||
int paddingBottom = getPaddingBottom();
|
||||
if (h.hasValue(0)) {
|
||||
cVar.f8134o = true;
|
||||
setSupportBackgroundTintList(cVar.f8129j);
|
||||
setSupportBackgroundTintMode(cVar.i);
|
||||
} else {
|
||||
cVar.e();
|
||||
}
|
||||
setPaddingRelative(paddingStart + cVar.f8124c, paddingTop + cVar.f8126e, paddingEnd + cVar.f8125d, paddingBottom + cVar.f8127f);
|
||||
h.recycle();
|
||||
setCompoundDrawablePadding(this.f5599n);
|
||||
c(this.i != null);
|
||||
}
|
||||
|
||||
private Layout.Alignment getActualTextAlignment() {
|
||||
int textAlignment = getTextAlignment();
|
||||
return textAlignment != 1 ? (textAlignment == 6 || textAlignment == 3) ? Layout.Alignment.ALIGN_OPPOSITE : textAlignment != 4 ? Layout.Alignment.ALIGN_NORMAL : Layout.Alignment.ALIGN_CENTER : getGravityTextAlignment();
|
||||
}
|
||||
|
||||
private Layout.Alignment getGravityTextAlignment() {
|
||||
int gravity = getGravity() & 8388615;
|
||||
return gravity != 1 ? (gravity == 5 || gravity == 8388613) ? Layout.Alignment.ALIGN_OPPOSITE : Layout.Alignment.ALIGN_NORMAL : Layout.Alignment.ALIGN_CENTER;
|
||||
}
|
||||
|
||||
private int getTextHeight() {
|
||||
if (getLineCount() > 1) {
|
||||
return getLayout().getHeight();
|
||||
}
|
||||
TextPaint paint = getPaint();
|
||||
String charSequence = getText().toString();
|
||||
if (getTransformationMethod() != null) {
|
||||
charSequence = getTransformationMethod().getTransformation(charSequence, this).toString();
|
||||
}
|
||||
Rect rect = new Rect();
|
||||
paint.getTextBounds(charSequence, 0, charSequence.length(), rect);
|
||||
return Math.min(rect.height(), getLayout().getHeight());
|
||||
}
|
||||
|
||||
private int getTextLayoutWidth() {
|
||||
int lineCount = getLineCount();
|
||||
float f2 = BitmapDescriptorFactory.HUE_RED;
|
||||
for (int i = 0; i < lineCount; i++) {
|
||||
f2 = Math.max(f2, getLayout().getLineWidth(i));
|
||||
}
|
||||
return (int) Math.ceil(f2);
|
||||
}
|
||||
|
||||
public final boolean a() {
|
||||
c cVar = this.f5591d;
|
||||
return (cVar == null || cVar.f8134o) ? false : true;
|
||||
}
|
||||
|
||||
public final void b() {
|
||||
int i = this.f5601q;
|
||||
boolean z3 = true;
|
||||
if (i != 1 && i != 2) {
|
||||
z3 = false;
|
||||
}
|
||||
if (z3) {
|
||||
setCompoundDrawablesRelative(this.i, null, null, null);
|
||||
return;
|
||||
}
|
||||
if (i == 3 || i == 4) {
|
||||
setCompoundDrawablesRelative(null, null, this.i, null);
|
||||
} else if (i == 16 || i == 32) {
|
||||
setCompoundDrawablesRelative(null, this.i, null, null);
|
||||
}
|
||||
}
|
||||
|
||||
public final void c(boolean z3) {
|
||||
Drawable drawable = this.i;
|
||||
if (drawable != null) {
|
||||
Drawable mutate = drawable.mutate();
|
||||
this.i = mutate;
|
||||
H.a.h(mutate, this.h);
|
||||
PorterDuff.Mode mode = this.f5594g;
|
||||
if (mode != null) {
|
||||
H.a.i(this.i, mode);
|
||||
}
|
||||
int i = this.f5596k;
|
||||
if (i == 0) {
|
||||
i = this.i.getIntrinsicWidth();
|
||||
}
|
||||
int i4 = this.f5596k;
|
||||
if (i4 == 0) {
|
||||
i4 = this.i.getIntrinsicHeight();
|
||||
}
|
||||
Drawable drawable2 = this.i;
|
||||
int i5 = this.f5597l;
|
||||
int i6 = this.f5598m;
|
||||
drawable2.setBounds(i5, i6, i + i5, i4 + i6);
|
||||
this.i.setVisible(true, z3);
|
||||
}
|
||||
if (z3) {
|
||||
b();
|
||||
return;
|
||||
}
|
||||
Drawable[] compoundDrawablesRelative = getCompoundDrawablesRelative();
|
||||
Drawable drawable3 = compoundDrawablesRelative[0];
|
||||
Drawable drawable4 = compoundDrawablesRelative[1];
|
||||
Drawable drawable5 = compoundDrawablesRelative[2];
|
||||
int i7 = this.f5601q;
|
||||
if (((i7 == 1 || i7 == 2) && drawable3 != this.i) || (((i7 == 3 || i7 == 4) && drawable5 != this.i) || ((i7 == 16 || i7 == 32) && drawable4 != this.i))) {
|
||||
b();
|
||||
}
|
||||
}
|
||||
|
||||
public final void d(int i, int i4) {
|
||||
if (this.i == null || getLayout() == null) {
|
||||
return;
|
||||
}
|
||||
int i5 = this.f5601q;
|
||||
if (!(i5 == 1 || i5 == 2) && i5 != 3 && i5 != 4) {
|
||||
if (i5 == 16 || i5 == 32) {
|
||||
this.f5597l = 0;
|
||||
if (i5 == 16) {
|
||||
this.f5598m = 0;
|
||||
c(false);
|
||||
return;
|
||||
}
|
||||
int i6 = this.f5596k;
|
||||
if (i6 == 0) {
|
||||
i6 = this.i.getIntrinsicHeight();
|
||||
}
|
||||
int max = Math.max(0, (((((i4 - getTextHeight()) - getPaddingTop()) - i6) - this.f5599n) - getPaddingBottom()) / 2);
|
||||
if (this.f5598m != max) {
|
||||
this.f5598m = max;
|
||||
c(false);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
this.f5598m = 0;
|
||||
Layout.Alignment actualTextAlignment = getActualTextAlignment();
|
||||
int i7 = this.f5601q;
|
||||
if (i7 == 1 || i7 == 3 || ((i7 == 2 && actualTextAlignment == Layout.Alignment.ALIGN_NORMAL) || (i7 == 4 && actualTextAlignment == Layout.Alignment.ALIGN_OPPOSITE))) {
|
||||
this.f5597l = 0;
|
||||
c(false);
|
||||
return;
|
||||
}
|
||||
int i8 = this.f5596k;
|
||||
if (i8 == 0) {
|
||||
i8 = this.i.getIntrinsicWidth();
|
||||
}
|
||||
int textLayoutWidth = i - getTextLayoutWidth();
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
int paddingEnd = (((textLayoutWidth - getPaddingEnd()) - i8) - this.f5599n) - getPaddingStart();
|
||||
if (actualTextAlignment == Layout.Alignment.ALIGN_CENTER) {
|
||||
paddingEnd /= 2;
|
||||
}
|
||||
if ((getLayoutDirection() == 1) != (this.f5601q == 4)) {
|
||||
paddingEnd = -paddingEnd;
|
||||
}
|
||||
if (this.f5597l != paddingEnd) {
|
||||
this.f5597l = paddingEnd;
|
||||
c(false);
|
||||
}
|
||||
}
|
||||
|
||||
public String getA11yClassName() {
|
||||
if (!TextUtils.isEmpty(this.f5595j)) {
|
||||
return this.f5595j;
|
||||
}
|
||||
c cVar = this.f5591d;
|
||||
return ((cVar == null || !cVar.f8135q) ? Button.class : CompoundButton.class).getName();
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public ColorStateList getBackgroundTintList() {
|
||||
return getSupportBackgroundTintList();
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public PorterDuff.Mode getBackgroundTintMode() {
|
||||
return getSupportBackgroundTintMode();
|
||||
}
|
||||
|
||||
public int getCornerRadius() {
|
||||
if (a()) {
|
||||
return this.f5591d.f8128g;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
public Drawable getIcon() {
|
||||
return this.i;
|
||||
}
|
||||
|
||||
public int getIconGravity() {
|
||||
return this.f5601q;
|
||||
}
|
||||
|
||||
public int getIconPadding() {
|
||||
return this.f5599n;
|
||||
}
|
||||
|
||||
public int getIconSize() {
|
||||
return this.f5596k;
|
||||
}
|
||||
|
||||
public ColorStateList getIconTint() {
|
||||
return this.h;
|
||||
}
|
||||
|
||||
public PorterDuff.Mode getIconTintMode() {
|
||||
return this.f5594g;
|
||||
}
|
||||
|
||||
public int getInsetBottom() {
|
||||
return this.f5591d.f8127f;
|
||||
}
|
||||
|
||||
public int getInsetTop() {
|
||||
return this.f5591d.f8126e;
|
||||
}
|
||||
|
||||
public ColorStateList getRippleColor() {
|
||||
if (a()) {
|
||||
return this.f5591d.f8131l;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public k getShapeAppearanceModel() {
|
||||
if (a()) {
|
||||
return this.f5591d.f8123b;
|
||||
}
|
||||
throw new IllegalStateException("Attempted to get ShapeAppearanceModel from a MaterialButton which has an overwritten background.");
|
||||
}
|
||||
|
||||
public ColorStateList getStrokeColor() {
|
||||
if (a()) {
|
||||
return this.f5591d.f8130k;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getStrokeWidth() {
|
||||
if (a()) {
|
||||
return this.f5591d.h;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton
|
||||
public ColorStateList getSupportBackgroundTintList() {
|
||||
return a() ? this.f5591d.f8129j : super.getSupportBackgroundTintList();
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton
|
||||
public PorterDuff.Mode getSupportBackgroundTintMode() {
|
||||
return a() ? this.f5591d.i : super.getSupportBackgroundTintMode();
|
||||
}
|
||||
|
||||
@Override // android.widget.Checkable
|
||||
public final boolean isChecked() {
|
||||
return this.f5600o;
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public final void onAttachedToWindow() {
|
||||
super.onAttachedToWindow();
|
||||
if (a()) {
|
||||
d.H(this, this.f5591d.b(false));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public final int[] onCreateDrawableState(int i) {
|
||||
int[] onCreateDrawableState = super.onCreateDrawableState(i + 2);
|
||||
c cVar = this.f5591d;
|
||||
if (cVar != null && cVar.f8135q) {
|
||||
View.mergeDrawableStates(onCreateDrawableState, f5589r);
|
||||
}
|
||||
if (this.f5600o) {
|
||||
View.mergeDrawableStates(onCreateDrawableState, f5590s);
|
||||
}
|
||||
return onCreateDrawableState;
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton, android.view.View
|
||||
public final void onInitializeAccessibilityEvent(AccessibilityEvent accessibilityEvent) {
|
||||
super.onInitializeAccessibilityEvent(accessibilityEvent);
|
||||
accessibilityEvent.setClassName(getA11yClassName());
|
||||
accessibilityEvent.setChecked(this.f5600o);
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton, android.view.View
|
||||
public final void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo accessibilityNodeInfo) {
|
||||
super.onInitializeAccessibilityNodeInfo(accessibilityNodeInfo);
|
||||
accessibilityNodeInfo.setClassName(getA11yClassName());
|
||||
c cVar = this.f5591d;
|
||||
accessibilityNodeInfo.setCheckable(cVar != null && cVar.f8135q);
|
||||
accessibilityNodeInfo.setChecked(this.f5600o);
|
||||
accessibilityNodeInfo.setClickable(isClickable());
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton, android.widget.TextView, android.view.View
|
||||
public final void onLayout(boolean z3, int i, int i4, int i5, int i6) {
|
||||
super.onLayout(z3, i, i4, i5, i6);
|
||||
d(getMeasuredWidth(), getMeasuredHeight());
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public final void onRestoreInstanceState(Parcelable parcelable) {
|
||||
if (!(parcelable instanceof b)) {
|
||||
super.onRestoreInstanceState(parcelable);
|
||||
return;
|
||||
}
|
||||
b bVar = (b) parcelable;
|
||||
super.onRestoreInstanceState(bVar.f1880a);
|
||||
setChecked(bVar.f8121c);
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r1v0, types: [android.os.Parcelable, p2.b, W.b] */
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public final Parcelable onSaveInstanceState() {
|
||||
?? bVar = new W.b(super.onSaveInstanceState());
|
||||
bVar.f8121c = this.f5600o;
|
||||
return bVar;
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton, android.widget.TextView
|
||||
public final void onTextChanged(CharSequence charSequence, int i, int i4, int i5) {
|
||||
super.onTextChanged(charSequence, i, i4, i5);
|
||||
d(getMeasuredWidth(), getMeasuredHeight());
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final boolean performClick() {
|
||||
if (this.f5591d.f8136r) {
|
||||
toggle();
|
||||
}
|
||||
return super.performClick();
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void refreshDrawableState() {
|
||||
super.refreshDrawableState();
|
||||
if (this.i != null) {
|
||||
if (this.i.setState(getDrawableState())) {
|
||||
invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setA11yClassName(String str) {
|
||||
this.f5595j = str;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackground(Drawable drawable) {
|
||||
setBackgroundDrawable(drawable);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundColor(int i) {
|
||||
if (!a()) {
|
||||
super.setBackgroundColor(i);
|
||||
return;
|
||||
}
|
||||
c cVar = this.f5591d;
|
||||
if (cVar.b(false) != null) {
|
||||
cVar.b(false).setTint(i);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton, android.view.View
|
||||
public void setBackgroundDrawable(Drawable drawable) {
|
||||
if (!a()) {
|
||||
super.setBackgroundDrawable(drawable);
|
||||
return;
|
||||
}
|
||||
if (drawable == getBackground()) {
|
||||
getBackground().setState(drawable.getState());
|
||||
return;
|
||||
}
|
||||
Log.w("MaterialButton", "MaterialButton manages its own background to control elevation, shape, color and states. Consider using backgroundTint, shapeAppearance and other attributes where available. A custom background will ignore these attributes and you should consider handling interaction states such as pressed, focused and disabled");
|
||||
c cVar = this.f5591d;
|
||||
cVar.f8134o = true;
|
||||
ColorStateList colorStateList = cVar.f8129j;
|
||||
MaterialButton materialButton = cVar.f8122a;
|
||||
materialButton.setSupportBackgroundTintList(colorStateList);
|
||||
materialButton.setSupportBackgroundTintMode(cVar.i);
|
||||
super.setBackgroundDrawable(drawable);
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton, android.view.View
|
||||
public void setBackgroundResource(int i) {
|
||||
setBackgroundDrawable(i != 0 ? AbstractC0106b.m(getContext(), i) : null);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundTintList(ColorStateList colorStateList) {
|
||||
setSupportBackgroundTintList(colorStateList);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundTintMode(PorterDuff.Mode mode) {
|
||||
setSupportBackgroundTintMode(mode);
|
||||
}
|
||||
|
||||
public void setCheckable(boolean z3) {
|
||||
if (a()) {
|
||||
this.f5591d.f8135q = z3;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.Checkable
|
||||
public void setChecked(boolean z3) {
|
||||
c cVar = this.f5591d;
|
||||
if (cVar == null || !cVar.f8135q || !isEnabled() || this.f5600o == z3) {
|
||||
return;
|
||||
}
|
||||
this.f5600o = z3;
|
||||
refreshDrawableState();
|
||||
if (getParent() instanceof MaterialButtonToggleGroup) {
|
||||
MaterialButtonToggleGroup materialButtonToggleGroup = (MaterialButtonToggleGroup) getParent();
|
||||
boolean z4 = this.f5600o;
|
||||
if (!materialButtonToggleGroup.f5608f) {
|
||||
materialButtonToggleGroup.b(getId(), z4);
|
||||
}
|
||||
}
|
||||
if (this.p) {
|
||||
return;
|
||||
}
|
||||
this.p = true;
|
||||
Iterator it = this.f5592e.iterator();
|
||||
if (it.hasNext()) {
|
||||
throw w.g(it);
|
||||
}
|
||||
this.p = false;
|
||||
}
|
||||
|
||||
public void setCornerRadius(int i) {
|
||||
if (a()) {
|
||||
c cVar = this.f5591d;
|
||||
if (cVar.p && cVar.f8128g == i) {
|
||||
return;
|
||||
}
|
||||
cVar.f8128g = i;
|
||||
cVar.p = true;
|
||||
float f2 = i;
|
||||
j e4 = cVar.f8123b.e();
|
||||
e4.f422e = new E2.a(f2);
|
||||
e4.f423f = new E2.a(f2);
|
||||
e4.f424g = new E2.a(f2);
|
||||
e4.h = new E2.a(f2);
|
||||
cVar.c(e4.a());
|
||||
}
|
||||
}
|
||||
|
||||
public void setCornerRadiusResource(int i) {
|
||||
if (a()) {
|
||||
setCornerRadius(getResources().getDimensionPixelSize(i));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setElevation(float f2) {
|
||||
super.setElevation(f2);
|
||||
if (a()) {
|
||||
this.f5591d.b(false).i(f2);
|
||||
}
|
||||
}
|
||||
|
||||
public void setIcon(Drawable drawable) {
|
||||
if (this.i != drawable) {
|
||||
this.i = drawable;
|
||||
c(true);
|
||||
d(getMeasuredWidth(), getMeasuredHeight());
|
||||
}
|
||||
}
|
||||
|
||||
public void setIconGravity(int i) {
|
||||
if (this.f5601q != i) {
|
||||
this.f5601q = i;
|
||||
d(getMeasuredWidth(), getMeasuredHeight());
|
||||
}
|
||||
}
|
||||
|
||||
public void setIconPadding(int i) {
|
||||
if (this.f5599n != i) {
|
||||
this.f5599n = i;
|
||||
setCompoundDrawablePadding(i);
|
||||
}
|
||||
}
|
||||
|
||||
public void setIconResource(int i) {
|
||||
setIcon(i != 0 ? AbstractC0106b.m(getContext(), i) : null);
|
||||
}
|
||||
|
||||
public void setIconSize(int i) {
|
||||
if (i < 0) {
|
||||
throw new IllegalArgumentException("iconSize cannot be less than 0");
|
||||
}
|
||||
if (this.f5596k != i) {
|
||||
this.f5596k = i;
|
||||
c(true);
|
||||
}
|
||||
}
|
||||
|
||||
public void setIconTint(ColorStateList colorStateList) {
|
||||
if (this.h != colorStateList) {
|
||||
this.h = colorStateList;
|
||||
c(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void setIconTintMode(PorterDuff.Mode mode) {
|
||||
if (this.f5594g != mode) {
|
||||
this.f5594g = mode;
|
||||
c(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void setIconTintResource(int i) {
|
||||
setIconTint(h.getColorStateList(getContext(), i));
|
||||
}
|
||||
|
||||
public void setInsetBottom(int i) {
|
||||
c cVar = this.f5591d;
|
||||
cVar.d(cVar.f8126e, i);
|
||||
}
|
||||
|
||||
public void setInsetTop(int i) {
|
||||
c cVar = this.f5591d;
|
||||
cVar.d(i, cVar.f8127f);
|
||||
}
|
||||
|
||||
public void setInternalBackground(Drawable drawable) {
|
||||
super.setBackgroundDrawable(drawable);
|
||||
}
|
||||
|
||||
public void setOnPressedChangeListenerInternal(InterfaceC0552a interfaceC0552a) {
|
||||
this.f5593f = interfaceC0552a;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setPressed(boolean z3) {
|
||||
InterfaceC0552a interfaceC0552a = this.f5593f;
|
||||
if (interfaceC0552a != null) {
|
||||
((MaterialButtonToggleGroup) ((h3.d) interfaceC0552a).f6791b).invalidate();
|
||||
}
|
||||
super.setPressed(z3);
|
||||
}
|
||||
|
||||
public void setRippleColor(ColorStateList colorStateList) {
|
||||
if (a()) {
|
||||
c cVar = this.f5591d;
|
||||
if (cVar.f8131l != colorStateList) {
|
||||
cVar.f8131l = colorStateList;
|
||||
MaterialButton materialButton = cVar.f8122a;
|
||||
if (materialButton.getBackground() instanceof RippleDrawable) {
|
||||
((RippleDrawable) materialButton.getBackground()).setColor(C2.a.c(colorStateList));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setRippleColorResource(int i) {
|
||||
if (a()) {
|
||||
setRippleColor(h.getColorStateList(getContext(), i));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // E2.u
|
||||
public void setShapeAppearanceModel(k kVar) {
|
||||
if (!a()) {
|
||||
throw new IllegalStateException("Attempted to set ShapeAppearanceModel on a MaterialButton which has an overwritten background.");
|
||||
}
|
||||
this.f5591d.c(kVar);
|
||||
}
|
||||
|
||||
public void setShouldDrawSurfaceColorStroke(boolean z3) {
|
||||
if (a()) {
|
||||
c cVar = this.f5591d;
|
||||
cVar.f8133n = z3;
|
||||
cVar.f();
|
||||
}
|
||||
}
|
||||
|
||||
public void setStrokeColor(ColorStateList colorStateList) {
|
||||
if (a()) {
|
||||
c cVar = this.f5591d;
|
||||
if (cVar.f8130k != colorStateList) {
|
||||
cVar.f8130k = colorStateList;
|
||||
cVar.f();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setStrokeColorResource(int i) {
|
||||
if (a()) {
|
||||
setStrokeColor(h.getColorStateList(getContext(), i));
|
||||
}
|
||||
}
|
||||
|
||||
public void setStrokeWidth(int i) {
|
||||
if (a()) {
|
||||
c cVar = this.f5591d;
|
||||
if (cVar.h != i) {
|
||||
cVar.h = i;
|
||||
cVar.f();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setStrokeWidthResource(int i) {
|
||||
if (a()) {
|
||||
setStrokeWidth(getResources().getDimensionPixelSize(i));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton
|
||||
public void setSupportBackgroundTintList(ColorStateList colorStateList) {
|
||||
if (!a()) {
|
||||
super.setSupportBackgroundTintList(colorStateList);
|
||||
return;
|
||||
}
|
||||
c cVar = this.f5591d;
|
||||
if (cVar.f8129j != colorStateList) {
|
||||
cVar.f8129j = colorStateList;
|
||||
if (cVar.b(false) != null) {
|
||||
H.a.h(cVar.b(false), cVar.f8129j);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatButton
|
||||
public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
|
||||
if (!a()) {
|
||||
super.setSupportBackgroundTintMode(mode);
|
||||
return;
|
||||
}
|
||||
c cVar = this.f5591d;
|
||||
if (cVar.i != mode) {
|
||||
cVar.i = mode;
|
||||
if (cVar.b(false) == null || cVar.i == null) {
|
||||
return;
|
||||
}
|
||||
H.a.i(cVar.b(false), cVar.i);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setTextAlignment(int i) {
|
||||
super.setTextAlignment(i);
|
||||
d(getMeasuredWidth(), getMeasuredHeight());
|
||||
}
|
||||
|
||||
public void setToggleCheckedStateOnClick(boolean z3) {
|
||||
this.f5591d.f8136r = z3;
|
||||
}
|
||||
|
||||
@Override // android.widget.Checkable
|
||||
public final void toggle() {
|
||||
setChecked(!this.f5600o);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,372 @@
|
||||
package com.google.android.material.button;
|
||||
|
||||
import E2.j;
|
||||
import E2.k;
|
||||
import F0.g;
|
||||
import K2.a;
|
||||
import O.X;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Canvas;
|
||||
import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.accessibility.AccessibilityNodeInfo;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.RadioButton;
|
||||
import android.widget.ToggleButton;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import com.google.android.material.timepicker.f;
|
||||
import h2.AbstractC0379a;
|
||||
import h3.d;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.TreeMap;
|
||||
import java.util.WeakHashMap;
|
||||
import p2.e;
|
||||
import x2.m;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class MaterialButtonToggleGroup extends LinearLayout {
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public static final /* synthetic */ int f5602k = 0;
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final ArrayList f5603a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final d f5604b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final LinkedHashSet f5605c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final p2.d f5606d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public Integer[] f5607e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public boolean f5608f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public boolean f5609g;
|
||||
public boolean h;
|
||||
public final int i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public HashSet f5610j;
|
||||
|
||||
public MaterialButtonToggleGroup(Context context, AttributeSet attributeSet) {
|
||||
super(a.a(context, attributeSet, R.attr.materialButtonToggleGroupStyle, 2132018318), attributeSet, R.attr.materialButtonToggleGroupStyle);
|
||||
this.f5603a = new ArrayList();
|
||||
this.f5604b = new d(this, 8);
|
||||
this.f5605c = new LinkedHashSet();
|
||||
this.f5606d = new p2.d(this);
|
||||
this.f5608f = false;
|
||||
this.f5610j = new HashSet();
|
||||
TypedArray h = m.h(getContext(), attributeSet, AbstractC0379a.f6765m, R.attr.materialButtonToggleGroupStyle, 2132018318, new int[0]);
|
||||
setSingleSelection(h.getBoolean(3, false));
|
||||
this.i = h.getResourceId(1, -1);
|
||||
this.h = h.getBoolean(2, false);
|
||||
setChildrenDrawingOrderEnabled(true);
|
||||
setEnabled(h.getBoolean(0, true));
|
||||
h.recycle();
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
setImportantForAccessibility(1);
|
||||
}
|
||||
|
||||
private int getFirstVisibleChildIndex() {
|
||||
int childCount = getChildCount();
|
||||
for (int i = 0; i < childCount; i++) {
|
||||
if (c(i)) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
private int getLastVisibleChildIndex() {
|
||||
for (int childCount = getChildCount() - 1; childCount >= 0; childCount--) {
|
||||
if (c(childCount)) {
|
||||
return childCount;
|
||||
}
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
private int getVisibleButtonCount() {
|
||||
int i = 0;
|
||||
for (int i4 = 0; i4 < getChildCount(); i4++) {
|
||||
if ((getChildAt(i4) instanceof MaterialButton) && c(i4)) {
|
||||
i++;
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
private void setGeneratedIdIfNeeded(MaterialButton materialButton) {
|
||||
if (materialButton.getId() == -1) {
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
materialButton.setId(View.generateViewId());
|
||||
}
|
||||
}
|
||||
|
||||
private void setupButtonChild(MaterialButton materialButton) {
|
||||
materialButton.setMaxLines(1);
|
||||
materialButton.setEllipsize(TextUtils.TruncateAt.END);
|
||||
materialButton.setCheckable(true);
|
||||
materialButton.setOnPressedChangeListenerInternal(this.f5604b);
|
||||
materialButton.setShouldDrawSurfaceColorStroke(true);
|
||||
}
|
||||
|
||||
public final void a() {
|
||||
int firstVisibleChildIndex = getFirstVisibleChildIndex();
|
||||
if (firstVisibleChildIndex == -1) {
|
||||
return;
|
||||
}
|
||||
for (int i = firstVisibleChildIndex + 1; i < getChildCount(); i++) {
|
||||
MaterialButton materialButton = (MaterialButton) getChildAt(i);
|
||||
int min = Math.min(materialButton.getStrokeWidth(), ((MaterialButton) getChildAt(i - 1)).getStrokeWidth());
|
||||
ViewGroup.LayoutParams layoutParams = materialButton.getLayoutParams();
|
||||
LinearLayout.LayoutParams layoutParams2 = layoutParams instanceof LinearLayout.LayoutParams ? (LinearLayout.LayoutParams) layoutParams : new LinearLayout.LayoutParams(layoutParams.width, layoutParams.height);
|
||||
if (getOrientation() == 0) {
|
||||
layoutParams2.setMarginEnd(0);
|
||||
layoutParams2.setMarginStart(-min);
|
||||
layoutParams2.topMargin = 0;
|
||||
} else {
|
||||
layoutParams2.bottomMargin = 0;
|
||||
layoutParams2.topMargin = -min;
|
||||
layoutParams2.setMarginStart(0);
|
||||
}
|
||||
materialButton.setLayoutParams(layoutParams2);
|
||||
}
|
||||
if (getChildCount() == 0 || firstVisibleChildIndex == -1) {
|
||||
return;
|
||||
}
|
||||
LinearLayout.LayoutParams layoutParams3 = (LinearLayout.LayoutParams) ((MaterialButton) getChildAt(firstVisibleChildIndex)).getLayoutParams();
|
||||
if (getOrientation() == 1) {
|
||||
layoutParams3.topMargin = 0;
|
||||
layoutParams3.bottomMargin = 0;
|
||||
} else {
|
||||
layoutParams3.setMarginEnd(0);
|
||||
layoutParams3.setMarginStart(0);
|
||||
layoutParams3.leftMargin = 0;
|
||||
layoutParams3.rightMargin = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public final void addView(View view, int i, ViewGroup.LayoutParams layoutParams) {
|
||||
if (!(view instanceof MaterialButton)) {
|
||||
Log.e("MButtonToggleGroup", "Child views must be of type MaterialButton.");
|
||||
return;
|
||||
}
|
||||
super.addView(view, i, layoutParams);
|
||||
MaterialButton materialButton = (MaterialButton) view;
|
||||
setGeneratedIdIfNeeded(materialButton);
|
||||
setupButtonChild(materialButton);
|
||||
b(materialButton.getId(), materialButton.f5600o);
|
||||
k shapeAppearanceModel = materialButton.getShapeAppearanceModel();
|
||||
this.f5603a.add(new e(shapeAppearanceModel.f432e, shapeAppearanceModel.h, shapeAppearanceModel.f433f, shapeAppearanceModel.f434g));
|
||||
materialButton.setEnabled(isEnabled());
|
||||
X.j(materialButton, new g(this, 4));
|
||||
}
|
||||
|
||||
public final void b(int i, boolean z3) {
|
||||
if (i == -1) {
|
||||
Log.e("MButtonToggleGroup", "Button ID is not valid: " + i);
|
||||
return;
|
||||
}
|
||||
HashSet hashSet = new HashSet(this.f5610j);
|
||||
if (z3 && !hashSet.contains(Integer.valueOf(i))) {
|
||||
if (this.f5609g && !hashSet.isEmpty()) {
|
||||
hashSet.clear();
|
||||
}
|
||||
hashSet.add(Integer.valueOf(i));
|
||||
} else {
|
||||
if (z3 || !hashSet.contains(Integer.valueOf(i))) {
|
||||
return;
|
||||
}
|
||||
if (!this.h || hashSet.size() > 1) {
|
||||
hashSet.remove(Integer.valueOf(i));
|
||||
}
|
||||
}
|
||||
d(hashSet);
|
||||
}
|
||||
|
||||
public final boolean c(int i) {
|
||||
return getChildAt(i).getVisibility() != 8;
|
||||
}
|
||||
|
||||
public final void d(Set set) {
|
||||
HashSet hashSet = this.f5610j;
|
||||
this.f5610j = new HashSet(set);
|
||||
for (int i = 0; i < getChildCount(); i++) {
|
||||
int id = ((MaterialButton) getChildAt(i)).getId();
|
||||
boolean contains = set.contains(Integer.valueOf(id));
|
||||
View findViewById = findViewById(id);
|
||||
if (findViewById instanceof MaterialButton) {
|
||||
this.f5608f = true;
|
||||
((MaterialButton) findViewById).setChecked(contains);
|
||||
this.f5608f = false;
|
||||
}
|
||||
if (hashSet.contains(Integer.valueOf(id)) != set.contains(Integer.valueOf(id))) {
|
||||
set.contains(Integer.valueOf(id));
|
||||
Iterator it = this.f5605c.iterator();
|
||||
while (it.hasNext()) {
|
||||
((f) it.next()).a();
|
||||
}
|
||||
}
|
||||
}
|
||||
invalidate();
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final void dispatchDraw(Canvas canvas) {
|
||||
TreeMap treeMap = new TreeMap(this.f5606d);
|
||||
int childCount = getChildCount();
|
||||
for (int i = 0; i < childCount; i++) {
|
||||
treeMap.put((MaterialButton) getChildAt(i), Integer.valueOf(i));
|
||||
}
|
||||
this.f5607e = (Integer[]) treeMap.values().toArray(new Integer[0]);
|
||||
super.dispatchDraw(canvas);
|
||||
}
|
||||
|
||||
public final void e() {
|
||||
e eVar;
|
||||
int childCount = getChildCount();
|
||||
int firstVisibleChildIndex = getFirstVisibleChildIndex();
|
||||
int lastVisibleChildIndex = getLastVisibleChildIndex();
|
||||
for (int i = 0; i < childCount; i++) {
|
||||
MaterialButton materialButton = (MaterialButton) getChildAt(i);
|
||||
if (materialButton.getVisibility() != 8) {
|
||||
j e4 = materialButton.getShapeAppearanceModel().e();
|
||||
e eVar2 = (e) this.f5603a.get(i);
|
||||
if (firstVisibleChildIndex != lastVisibleChildIndex) {
|
||||
boolean z3 = getOrientation() == 0;
|
||||
E2.a aVar = e.f8140e;
|
||||
if (i == firstVisibleChildIndex) {
|
||||
eVar = z3 ? m.g(this) ? new e(aVar, aVar, eVar2.f8142b, eVar2.f8143c) : new e(eVar2.f8141a, eVar2.f8144d, aVar, aVar) : new e(eVar2.f8141a, aVar, eVar2.f8142b, aVar);
|
||||
} else if (i == lastVisibleChildIndex) {
|
||||
eVar = z3 ? m.g(this) ? new e(eVar2.f8141a, eVar2.f8144d, aVar, aVar) : new e(aVar, aVar, eVar2.f8142b, eVar2.f8143c) : new e(aVar, eVar2.f8144d, aVar, eVar2.f8143c);
|
||||
} else {
|
||||
eVar2 = null;
|
||||
}
|
||||
eVar2 = eVar;
|
||||
}
|
||||
if (eVar2 == null) {
|
||||
e4.f422e = new E2.a(BitmapDescriptorFactory.HUE_RED);
|
||||
e4.f423f = new E2.a(BitmapDescriptorFactory.HUE_RED);
|
||||
e4.f424g = new E2.a(BitmapDescriptorFactory.HUE_RED);
|
||||
e4.h = new E2.a(BitmapDescriptorFactory.HUE_RED);
|
||||
} else {
|
||||
e4.f422e = eVar2.f8141a;
|
||||
e4.h = eVar2.f8144d;
|
||||
e4.f423f = eVar2.f8142b;
|
||||
e4.f424g = eVar2.f8143c;
|
||||
}
|
||||
materialButton.setShapeAppearanceModel(e4.a());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int getCheckedButtonId() {
|
||||
if (!this.f5609g || this.f5610j.isEmpty()) {
|
||||
return -1;
|
||||
}
|
||||
return ((Integer) this.f5610j.iterator().next()).intValue();
|
||||
}
|
||||
|
||||
public List<Integer> getCheckedButtonIds() {
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (int i = 0; i < getChildCount(); i++) {
|
||||
int id = ((MaterialButton) getChildAt(i)).getId();
|
||||
if (this.f5610j.contains(Integer.valueOf(id))) {
|
||||
arrayList.add(Integer.valueOf(id));
|
||||
}
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public final int getChildDrawingOrder(int i, int i4) {
|
||||
Integer[] numArr = this.f5607e;
|
||||
if (numArr != null && i4 < numArr.length) {
|
||||
return numArr[i4].intValue();
|
||||
}
|
||||
Log.w("MButtonToggleGroup", "Child order wasn't updated");
|
||||
return i4;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onFinishInflate() {
|
||||
super.onFinishInflate();
|
||||
int i = this.i;
|
||||
if (i != -1) {
|
||||
d(Collections.singleton(Integer.valueOf(i)));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo accessibilityNodeInfo) {
|
||||
super.onInitializeAccessibilityNodeInfo(accessibilityNodeInfo);
|
||||
accessibilityNodeInfo.setCollectionInfo((AccessibilityNodeInfo.CollectionInfo) A.a.s(1, getVisibleButtonCount(), this.f5609g ? 1 : 2).f7b);
|
||||
}
|
||||
|
||||
@Override // android.widget.LinearLayout, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
e();
|
||||
a();
|
||||
super.onMeasure(i, i4);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public final void onViewRemoved(View view) {
|
||||
super.onViewRemoved(view);
|
||||
if (view instanceof MaterialButton) {
|
||||
((MaterialButton) view).setOnPressedChangeListenerInternal(null);
|
||||
}
|
||||
int indexOfChild = indexOfChild(view);
|
||||
if (indexOfChild >= 0) {
|
||||
this.f5603a.remove(indexOfChild);
|
||||
}
|
||||
e();
|
||||
a();
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setEnabled(boolean z3) {
|
||||
super.setEnabled(z3);
|
||||
for (int i = 0; i < getChildCount(); i++) {
|
||||
((MaterialButton) getChildAt(i)).setEnabled(z3);
|
||||
}
|
||||
}
|
||||
|
||||
public void setSelectionRequired(boolean z3) {
|
||||
this.h = z3;
|
||||
}
|
||||
|
||||
public void setSingleSelection(boolean z3) {
|
||||
if (this.f5609g != z3) {
|
||||
this.f5609g = z3;
|
||||
d(new HashSet());
|
||||
}
|
||||
for (int i = 0; i < getChildCount(); i++) {
|
||||
((MaterialButton) getChildAt(i)).setA11yClassName((this.f5609g ? RadioButton.class : ToggleButton.class).getName());
|
||||
}
|
||||
}
|
||||
|
||||
public void setSingleSelection(int i) {
|
||||
setSingleSelection(getResources().getBoolean(i));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,416 @@
|
||||
package com.google.android.material.carousel;
|
||||
|
||||
import F2.f;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.PointF;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.accessibility.AccessibilityEvent;
|
||||
import androidx.recyclerview.widget.AbstractC0238q0;
|
||||
import androidx.recyclerview.widget.C0210c0;
|
||||
import androidx.recyclerview.widget.C0239r0;
|
||||
import androidx.recyclerview.widget.D0;
|
||||
import androidx.recyclerview.widget.E0;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.recyclerview.widget.y0;
|
||||
import c0.C0277c;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import com.google.android.material.carousel.CarouselLayoutManager;
|
||||
import h2.AbstractC0379a;
|
||||
import kotlin.jvm.internal.LongCompanionObject;
|
||||
import q2.AbstractC0562d;
|
||||
import q2.C0560b;
|
||||
import q2.C0561c;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class CarouselLayoutManager extends AbstractC0238q0 implements D0 {
|
||||
public final C0277c p;
|
||||
|
||||
/* renamed from: q, reason: collision with root package name */
|
||||
public AbstractC0562d f5611q;
|
||||
|
||||
/* renamed from: r, reason: collision with root package name */
|
||||
public final View.OnLayoutChangeListener f5612r;
|
||||
|
||||
public CarouselLayoutManager() {
|
||||
C0277c c0277c = new C0277c();
|
||||
new C0560b();
|
||||
this.f5612r = new View.OnLayoutChangeListener() { // from class: q2.a
|
||||
@Override // android.view.View.OnLayoutChangeListener
|
||||
public final void onLayoutChange(View view, int i, int i4, int i5, int i6, int i7, int i8, int i9, int i10) {
|
||||
CarouselLayoutManager carouselLayoutManager = CarouselLayoutManager.this;
|
||||
if (i == i7 && i4 == i8 && i5 == i9 && i6 == i10) {
|
||||
return;
|
||||
}
|
||||
view.post(new f(carouselLayoutManager, 11));
|
||||
}
|
||||
};
|
||||
this.p = c0277c;
|
||||
t0();
|
||||
K0(0);
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final void F0(RecyclerView recyclerView, int i) {
|
||||
C0210c0 c0210c0 = new C0210c0(this, recyclerView.getContext(), 1);
|
||||
c0210c0.f3768a = i;
|
||||
G0(c0210c0);
|
||||
}
|
||||
|
||||
public final boolean I0() {
|
||||
return this.f5611q.f8189a == 0;
|
||||
}
|
||||
|
||||
public final boolean J0() {
|
||||
return I0() && G() == 1;
|
||||
}
|
||||
|
||||
public final void K0(int i) {
|
||||
C0561c c0561c;
|
||||
if (i != 0 && i != 1) {
|
||||
throw new IllegalArgumentException(a.l(i, "invalid orientation:"));
|
||||
}
|
||||
c(null);
|
||||
AbstractC0562d abstractC0562d = this.f5611q;
|
||||
if (abstractC0562d == null || i != abstractC0562d.f8189a) {
|
||||
if (i == 0) {
|
||||
c0561c = new C0561c(this, 1);
|
||||
} else {
|
||||
if (i != 1) {
|
||||
throw new IllegalArgumentException("invalid orientation");
|
||||
}
|
||||
c0561c = new C0561c(this, 0);
|
||||
}
|
||||
this.f5611q = c0561c;
|
||||
t0();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final boolean P() {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final void V(RecyclerView recyclerView) {
|
||||
C0277c c0277c = this.p;
|
||||
Context context = recyclerView.getContext();
|
||||
float f2 = c0277c.f4206a;
|
||||
if (f2 <= BitmapDescriptorFactory.HUE_RED) {
|
||||
f2 = context.getResources().getDimension(R.dimen.m3_carousel_small_item_size_min);
|
||||
}
|
||||
c0277c.f4206a = f2;
|
||||
float f4 = c0277c.f4207b;
|
||||
if (f4 <= BitmapDescriptorFactory.HUE_RED) {
|
||||
f4 = context.getResources().getDimension(R.dimen.m3_carousel_small_item_size_max);
|
||||
}
|
||||
c0277c.f4207b = f4;
|
||||
t0();
|
||||
recyclerView.addOnLayoutChangeListener(this.f5612r);
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final void W(RecyclerView recyclerView) {
|
||||
recyclerView.removeOnLayoutChangeListener(this.f5612r);
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:50:0x003a, code lost:
|
||||
|
||||
if (r6 == 1) goto L20;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:53:0x0044, code lost:
|
||||
|
||||
if (J0() != false) goto L24;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:54:0x0048, code lost:
|
||||
|
||||
if (r6 == 1) goto L24;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:57:0x0051, code lost:
|
||||
|
||||
if (J0() != false) goto L20;
|
||||
*/
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:0x0057 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:49:? A[RETURN, SYNTHETIC] */
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final android.view.View X(android.view.View r4, int r5, androidx.recyclerview.widget.y0 r6, androidx.recyclerview.widget.E0 r7) {
|
||||
/*
|
||||
r3 = this;
|
||||
int r6 = r3.v()
|
||||
if (r6 != 0) goto L8
|
||||
goto L96
|
||||
L8:
|
||||
q2.d r6 = r3.f5611q
|
||||
int r6 = r6.f8189a
|
||||
r7 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r0 = -1
|
||||
r1 = 1
|
||||
if (r5 == r1) goto L46
|
||||
r2 = 2
|
||||
if (r5 == r2) goto L3c
|
||||
r2 = 17
|
||||
if (r5 == r2) goto L4b
|
||||
r2 = 33
|
||||
if (r5 == r2) goto L48
|
||||
r2 = 66
|
||||
if (r5 == r2) goto L3e
|
||||
r2 = 130(0x82, float:1.82E-43)
|
||||
if (r5 == r2) goto L3a
|
||||
java.lang.StringBuilder r6 = new java.lang.StringBuilder
|
||||
java.lang.String r2 = "Unknown focus request:"
|
||||
r6.<init>(r2)
|
||||
r6.append(r5)
|
||||
java.lang.String r5 = r6.toString()
|
||||
java.lang.String r6 = "CarouselLayoutManager"
|
||||
android.util.Log.d(r6, r5)
|
||||
L38:
|
||||
r5 = r7
|
||||
goto L54
|
||||
L3a:
|
||||
if (r6 != r1) goto L38
|
||||
L3c:
|
||||
r5 = r1
|
||||
goto L54
|
||||
L3e:
|
||||
if (r6 != 0) goto L38
|
||||
boolean r5 = r3.J0()
|
||||
if (r5 == 0) goto L3c
|
||||
L46:
|
||||
r5 = r0
|
||||
goto L54
|
||||
L48:
|
||||
if (r6 != r1) goto L38
|
||||
goto L46
|
||||
L4b:
|
||||
if (r6 != 0) goto L38
|
||||
boolean r5 = r3.J0()
|
||||
if (r5 == 0) goto L46
|
||||
goto L3c
|
||||
L54:
|
||||
if (r5 != r7) goto L57
|
||||
goto L96
|
||||
L57:
|
||||
r6 = 0
|
||||
if (r5 != r0) goto L8b
|
||||
int r4 = androidx.recyclerview.widget.AbstractC0238q0.L(r4)
|
||||
if (r4 != 0) goto L61
|
||||
goto L96
|
||||
L61:
|
||||
android.view.View r4 = r3.u(r6)
|
||||
int r4 = androidx.recyclerview.widget.AbstractC0238q0.L(r4)
|
||||
int r4 = r4 - r1
|
||||
if (r4 < 0) goto L7a
|
||||
int r5 = r3.F()
|
||||
if (r4 < r5) goto L73
|
||||
goto L7a
|
||||
L73:
|
||||
q2.d r3 = r3.f5611q
|
||||
r3.e()
|
||||
r3 = 0
|
||||
throw r3
|
||||
L7a:
|
||||
boolean r4 = r3.J0()
|
||||
if (r4 == 0) goto L86
|
||||
int r4 = r3.v()
|
||||
int r6 = r4 + (-1)
|
||||
L86:
|
||||
android.view.View r3 = r3.u(r6)
|
||||
return r3
|
||||
L8b:
|
||||
int r4 = androidx.recyclerview.widget.AbstractC0238q0.L(r4)
|
||||
int r5 = r3.F()
|
||||
int r5 = r5 - r1
|
||||
if (r4 != r5) goto L98
|
||||
L96:
|
||||
r3 = 0
|
||||
return r3
|
||||
L98:
|
||||
int r4 = r3.v()
|
||||
int r4 = r4 - r1
|
||||
android.view.View r4 = r3.u(r4)
|
||||
int r4 = androidx.recyclerview.widget.AbstractC0238q0.L(r4)
|
||||
int r4 = r4 + r1
|
||||
if (r4 < 0) goto Lb6
|
||||
int r5 = r3.F()
|
||||
if (r4 < r5) goto Laf
|
||||
goto Lb6
|
||||
Laf:
|
||||
q2.d r3 = r3.f5611q
|
||||
r3.e()
|
||||
r3 = 0
|
||||
throw r3
|
||||
Lb6:
|
||||
boolean r4 = r3.J0()
|
||||
if (r4 == 0) goto Lbd
|
||||
goto Lc3
|
||||
Lbd:
|
||||
int r4 = r3.v()
|
||||
int r6 = r4 + (-1)
|
||||
Lc3:
|
||||
android.view.View r3 = r3.u(r6)
|
||||
return r3
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.carousel.CarouselLayoutManager.X(android.view.View, int, androidx.recyclerview.widget.y0, androidx.recyclerview.widget.E0):android.view.View");
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final void Y(AccessibilityEvent accessibilityEvent) {
|
||||
super.Y(accessibilityEvent);
|
||||
if (v() > 0) {
|
||||
accessibilityEvent.setFromIndex(AbstractC0238q0.L(u(0)));
|
||||
accessibilityEvent.setToIndex(AbstractC0238q0.L(u(v() - 1)));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.D0
|
||||
public final PointF a(int i) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final void c0(int i, int i4) {
|
||||
F();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final boolean d() {
|
||||
return I0();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final boolean e() {
|
||||
return !I0();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final void f0(int i, int i4) {
|
||||
F();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final void h0(y0 y0Var, E0 e02) {
|
||||
if (e02.b() > 0) {
|
||||
if ((I0() ? this.f3894n : this.f3895o) > BitmapDescriptorFactory.HUE_RED) {
|
||||
J0();
|
||||
View view = y0Var.k(0, LongCompanionObject.MAX_VALUE).itemView;
|
||||
throw new IllegalStateException("All children of a RecyclerView using CarouselLayoutManager must use MaskableFrameLayout as their root ViewGroup.");
|
||||
}
|
||||
}
|
||||
n0(y0Var);
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final void i0(E0 e02) {
|
||||
if (v() == 0) {
|
||||
return;
|
||||
}
|
||||
AbstractC0238q0.L(u(0));
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final int j(E0 e02) {
|
||||
v();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final int k(E0 e02) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final int l(E0 e02) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final int m(E0 e02) {
|
||||
v();
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final int n(E0 e02) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final int o(E0 e02) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final C0239r0 r() {
|
||||
return new C0239r0(-2, -2);
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final boolean s0(RecyclerView recyclerView, View view, Rect rect, boolean z3, boolean z4) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final int u0(int i, y0 y0Var, E0 e02) {
|
||||
if (!I0() || v() == 0 || i == 0) {
|
||||
return 0;
|
||||
}
|
||||
View view = y0Var.k(0, LongCompanionObject.MAX_VALUE).itemView;
|
||||
throw new IllegalStateException("All children of a RecyclerView using CarouselLayoutManager must use MaskableFrameLayout as their root ViewGroup.");
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final void v0(int i) {
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final int w0(int i, y0 y0Var, E0 e02) {
|
||||
if (!e() || v() == 0 || i == 0) {
|
||||
return 0;
|
||||
}
|
||||
View view = y0Var.k(0, LongCompanionObject.MAX_VALUE).itemView;
|
||||
throw new IllegalStateException("All children of a RecyclerView using CarouselLayoutManager must use MaskableFrameLayout as their root ViewGroup.");
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final void z(Rect rect, View view) {
|
||||
RecyclerView.O(rect, view);
|
||||
rect.centerY();
|
||||
if (I0()) {
|
||||
rect.centerX();
|
||||
}
|
||||
throw null;
|
||||
}
|
||||
|
||||
@SuppressLint({"UnknownNullness"})
|
||||
public CarouselLayoutManager(Context context, AttributeSet attributeSet, int i, int i4) {
|
||||
new C0560b();
|
||||
this.f5612r = new View.OnLayoutChangeListener() { // from class: q2.a
|
||||
@Override // android.view.View.OnLayoutChangeListener
|
||||
public final void onLayoutChange(View view, int i5, int i42, int i52, int i6, int i7, int i8, int i9, int i10) {
|
||||
CarouselLayoutManager carouselLayoutManager = CarouselLayoutManager.this;
|
||||
if (i5 == i7 && i42 == i8 && i52 == i9 && i6 == i10) {
|
||||
return;
|
||||
}
|
||||
view.post(new f(carouselLayoutManager, 11));
|
||||
}
|
||||
};
|
||||
this.p = new C0277c();
|
||||
t0();
|
||||
if (attributeSet != null) {
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC0379a.f6758d);
|
||||
obtainStyledAttributes.getInt(0, 0);
|
||||
t0();
|
||||
K0(obtainStyledAttributes.getInt(0, 0));
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
}
|
||||
}
|
||||
1871
apk_decompiled/sources/com/google/android/material/chip/Chip.java
Normal file
1871
apk_decompiled/sources/com/google/android/material/chip/Chip.java
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,122 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import O.X;
|
||||
import android.R;
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
import android.widget.GridView;
|
||||
import android.widget.ListAdapter;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
final class MaterialCalendarGridView extends GridView {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final boolean f5631a;
|
||||
|
||||
public MaterialCalendarGridView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet, 0);
|
||||
w.c(null);
|
||||
if (m.i(getContext(), R.attr.windowFullscreen)) {
|
||||
setNextFocusLeftId(com.adif.elcanomovil.R.id.cancel_button);
|
||||
setNextFocusRightId(com.adif.elcanomovil.R.id.confirm_button);
|
||||
}
|
||||
this.f5631a = m.i(getContext(), com.adif.elcanomovil.R.attr.nestedScrollable);
|
||||
X.j(this, new U.h(3));
|
||||
}
|
||||
|
||||
public final p a() {
|
||||
return (p) super.getAdapter();
|
||||
}
|
||||
|
||||
@Override // android.widget.GridView, android.widget.AdapterView
|
||||
public final ListAdapter getAdapter() {
|
||||
return (p) super.getAdapter();
|
||||
}
|
||||
|
||||
@Override // android.widget.AbsListView, android.view.ViewGroup, android.view.View
|
||||
public final void onAttachedToWindow() {
|
||||
super.onAttachedToWindow();
|
||||
((p) super.getAdapter()).notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onDraw(Canvas canvas) {
|
||||
super.onDraw(canvas);
|
||||
p pVar = (p) super.getAdapter();
|
||||
pVar.getClass();
|
||||
int max = Math.max(pVar.a(), getFirstVisiblePosition());
|
||||
int min = Math.min(pVar.c(), getLastVisiblePosition());
|
||||
pVar.getItem(max);
|
||||
pVar.getItem(min);
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // android.widget.GridView, android.widget.AbsListView, android.view.View
|
||||
public final void onFocusChanged(boolean z3, int i, Rect rect) {
|
||||
if (!z3) {
|
||||
super.onFocusChanged(false, i, rect);
|
||||
return;
|
||||
}
|
||||
if (i == 33) {
|
||||
setSelection(((p) super.getAdapter()).c());
|
||||
} else if (i == 130) {
|
||||
setSelection(((p) super.getAdapter()).a());
|
||||
} else {
|
||||
super.onFocusChanged(true, i, rect);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.GridView, android.widget.AbsListView, android.view.View, android.view.KeyEvent.Callback
|
||||
public final boolean onKeyDown(int i, KeyEvent keyEvent) {
|
||||
if (!super.onKeyDown(i, keyEvent)) {
|
||||
return false;
|
||||
}
|
||||
if (getSelectedItemPosition() == -1 || getSelectedItemPosition() >= ((p) super.getAdapter()).a()) {
|
||||
return true;
|
||||
}
|
||||
if (19 != i) {
|
||||
return false;
|
||||
}
|
||||
setSelection(((p) super.getAdapter()).a());
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // android.widget.GridView, android.widget.AbsListView, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
if (!this.f5631a) {
|
||||
super.onMeasure(i, i4);
|
||||
return;
|
||||
}
|
||||
super.onMeasure(i, View.MeasureSpec.makeMeasureSpec(16777215, IntCompanionObject.MIN_VALUE));
|
||||
getLayoutParams().height = getMeasuredHeight();
|
||||
}
|
||||
|
||||
@Override // android.widget.GridView, android.widget.AdapterView
|
||||
public final void setSelection(int i) {
|
||||
if (i < ((p) super.getAdapter()).a()) {
|
||||
super.setSelection(((p) super.getAdapter()).a());
|
||||
} else {
|
||||
super.setSelection(i);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.GridView, android.widget.AdapterView
|
||||
/* renamed from: getAdapter, reason: avoid collision after fix types in other method */
|
||||
public final ListAdapter getAdapter2() {
|
||||
return (p) super.getAdapter();
|
||||
}
|
||||
|
||||
@Override // android.widget.AdapterView
|
||||
public final void setAdapter(ListAdapter listAdapter) {
|
||||
if (listAdapter instanceof p) {
|
||||
super.setAdapter(listAdapter);
|
||||
return;
|
||||
}
|
||||
throw new IllegalArgumentException(String.format("%1$s must have its Adapter set to a %2$s", MaterialCalendarGridView.class.getCanonicalName(), p.class.getCanonicalName()));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import java.util.Calendar;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class a {
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public static final /* synthetic */ int f5632b = 0;
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public Long f5633a;
|
||||
|
||||
static {
|
||||
o a2 = o.a(1900, 0);
|
||||
Calendar c4 = w.c(null);
|
||||
c4.setTimeInMillis(a2.f5698f);
|
||||
w.a(c4).getTimeInMillis();
|
||||
o a4 = o.a(2100, 11);
|
||||
Calendar c5 = w.c(null);
|
||||
c5.setTimeInMillis(a4.f5698f);
|
||||
w.a(c5).getTimeInMillis();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import java.util.Arrays;
|
||||
import java.util.Objects;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class b implements Parcelable {
|
||||
public static final Parcelable.Creator<b> CREATOR = new D0.a(8);
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final o f5634a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final o f5635b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final d f5636c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final o f5637d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final int f5638e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final int f5639f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final int f5640g;
|
||||
|
||||
public b(o oVar, o oVar2, d dVar, o oVar3, int i) {
|
||||
Objects.requireNonNull(oVar, "start cannot be null");
|
||||
Objects.requireNonNull(oVar2, "end cannot be null");
|
||||
Objects.requireNonNull(dVar, "validator cannot be null");
|
||||
this.f5634a = oVar;
|
||||
this.f5635b = oVar2;
|
||||
this.f5637d = oVar3;
|
||||
this.f5638e = i;
|
||||
this.f5636c = dVar;
|
||||
if (oVar3 != null && oVar.f5693a.compareTo(oVar3.f5693a) > 0) {
|
||||
throw new IllegalArgumentException("start Month cannot be after current Month");
|
||||
}
|
||||
if (oVar3 != null && oVar3.f5693a.compareTo(oVar2.f5693a) > 0) {
|
||||
throw new IllegalArgumentException("current Month cannot be after end Month");
|
||||
}
|
||||
if (i < 0 || i > w.c(null).getMaximum(7)) {
|
||||
throw new IllegalArgumentException("firstDayOfWeek is not valid");
|
||||
}
|
||||
this.f5640g = oVar.d(oVar2) + 1;
|
||||
this.f5639f = (oVar2.f5695c - oVar.f5695c) + 1;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof b)) {
|
||||
return false;
|
||||
}
|
||||
b bVar = (b) obj;
|
||||
return this.f5634a.equals(bVar.f5634a) && this.f5635b.equals(bVar.f5635b) && Objects.equals(this.f5637d, bVar.f5637d) && this.f5638e == bVar.f5638e && this.f5636c.equals(bVar.f5636c);
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
return Arrays.hashCode(new Object[]{this.f5634a, this.f5635b, this.f5637d, Integer.valueOf(this.f5638e), this.f5636c});
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
parcel.writeParcelable(this.f5634a, 0);
|
||||
parcel.writeParcelable(this.f5635b, 0);
|
||||
parcel.writeParcelable(this.f5637d, 0);
|
||||
parcel.writeParcelable(this.f5636c, 0);
|
||||
parcel.writeInt(this.f5638e);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import a.AbstractC0105a;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Paint;
|
||||
import com.adif.elcanomovil.R;
|
||||
import h2.AbstractC0379a;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class c {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final E2.e f5641a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final E2.e f5642b;
|
||||
|
||||
public c(Context context) {
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(m3.l.V(context, R.attr.materialCalendarStyle, k.class.getCanonicalName()).data, AbstractC0379a.f6766n);
|
||||
E2.e.g(context, obtainStyledAttributes.getResourceId(4, 0));
|
||||
E2.e.g(context, obtainStyledAttributes.getResourceId(2, 0));
|
||||
E2.e.g(context, obtainStyledAttributes.getResourceId(3, 0));
|
||||
E2.e.g(context, obtainStyledAttributes.getResourceId(5, 0));
|
||||
ColorStateList w3 = AbstractC0105a.w(context, obtainStyledAttributes, 7);
|
||||
this.f5641a = E2.e.g(context, obtainStyledAttributes.getResourceId(9, 0));
|
||||
E2.e.g(context, obtainStyledAttributes.getResourceId(8, 0));
|
||||
this.f5642b = E2.e.g(context, obtainStyledAttributes.getResourceId(10, 0));
|
||||
new Paint().setColor(w3.getDefaultColor());
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import java.util.Arrays;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class d implements Parcelable {
|
||||
public static final Parcelable.Creator<d> CREATOR = new D0.a(9);
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final long f5643a;
|
||||
|
||||
public d(long j4) {
|
||||
this.f5643a = j4;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
return (obj instanceof d) && this.f5643a == ((d) obj).f5643a;
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
return Arrays.hashCode(new Object[]{Long.valueOf(this.f5643a)});
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
parcel.writeLong(this.f5643a);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.BaseAdapter;
|
||||
import android.widget.TextView;
|
||||
import com.adif.elcanomovil.R;
|
||||
import java.util.Calendar;
|
||||
import java.util.Locale;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class e extends BaseAdapter {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final Calendar f5644a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final int f5645b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final int f5646c;
|
||||
|
||||
public e() {
|
||||
Calendar c4 = w.c(null);
|
||||
this.f5644a = c4;
|
||||
this.f5645b = c4.getMaximum(7);
|
||||
this.f5646c = c4.getFirstDayOfWeek();
|
||||
}
|
||||
|
||||
@Override // android.widget.Adapter
|
||||
public final int getCount() {
|
||||
return this.f5645b;
|
||||
}
|
||||
|
||||
@Override // android.widget.Adapter
|
||||
public final Object getItem(int i) {
|
||||
int i4 = this.f5645b;
|
||||
if (i >= i4) {
|
||||
return null;
|
||||
}
|
||||
int i5 = i + this.f5646c;
|
||||
if (i5 > i4) {
|
||||
i5 -= i4;
|
||||
}
|
||||
return Integer.valueOf(i5);
|
||||
}
|
||||
|
||||
@Override // android.widget.Adapter
|
||||
public final long getItemId(int i) {
|
||||
return 0L;
|
||||
}
|
||||
|
||||
@Override // android.widget.Adapter
|
||||
public final View getView(int i, View view, ViewGroup viewGroup) {
|
||||
TextView textView = (TextView) view;
|
||||
if (view == null) {
|
||||
textView = (TextView) LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.mtrl_calendar_day_of_week, viewGroup, false);
|
||||
}
|
||||
int i4 = i + this.f5646c;
|
||||
int i5 = this.f5645b;
|
||||
if (i4 > i5) {
|
||||
i4 -= i5;
|
||||
}
|
||||
Calendar calendar = this.f5644a;
|
||||
calendar.set(7, i4);
|
||||
textView.setText(calendar.getDisplayName(7, 4, textView.getResources().getConfiguration().locale));
|
||||
textView.setContentDescription(String.format(viewGroup.getContext().getString(R.string.mtrl_picker_day_of_week_column_header), calendar.getDisplayName(7, 2, Locale.getDefault())));
|
||||
return textView;
|
||||
}
|
||||
|
||||
public e(int i) {
|
||||
Calendar c4 = w.c(null);
|
||||
this.f5644a = c4;
|
||||
this.f5645b = c4.getMaximum(7);
|
||||
this.f5646c = i;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import android.view.View;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import java.util.Calendar;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class f implements View.OnClickListener {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f5647a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ s f5648b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ k f5649c;
|
||||
|
||||
public /* synthetic */ f(k kVar, s sVar, int i) {
|
||||
this.f5647a = i;
|
||||
this.f5649c = kVar;
|
||||
this.f5648b = sVar;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
switch (this.f5647a) {
|
||||
case 0:
|
||||
k kVar = this.f5649c;
|
||||
int T02 = ((LinearLayoutManager) kVar.h.getLayoutManager()).T0() - 1;
|
||||
if (T02 >= 0) {
|
||||
Calendar a2 = w.a(this.f5648b.f5709a.f5634a.f5693a);
|
||||
a2.add(2, T02);
|
||||
kVar.f(new o(a2));
|
||||
return;
|
||||
}
|
||||
return;
|
||||
default:
|
||||
k kVar2 = this.f5649c;
|
||||
int S02 = ((LinearLayoutManager) kVar2.h.getLayoutManager()).S0() + 1;
|
||||
if (S02 < kVar2.h.getAdapter().getItemCount()) {
|
||||
Calendar a4 = w.a(this.f5648b.f5709a.f5634a.f5693a);
|
||||
a4.add(2, S02);
|
||||
kVar2.f(new o(a4));
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import androidx.recyclerview.widget.E0;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.recyclerview.widget.X;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class g extends LinearLayoutManager {
|
||||
|
||||
/* renamed from: E, reason: collision with root package name */
|
||||
public final /* synthetic */ int f5650E;
|
||||
|
||||
/* renamed from: F, reason: collision with root package name */
|
||||
public final /* synthetic */ k f5651F;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public g(k kVar, int i, int i4) {
|
||||
super(i);
|
||||
this.f5651F = kVar;
|
||||
this.f5650E = i4;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.LinearLayoutManager, androidx.recyclerview.widget.AbstractC0238q0
|
||||
public final void F0(RecyclerView recyclerView, int i) {
|
||||
X x3 = new X(recyclerView.getContext());
|
||||
x3.f3768a = i;
|
||||
G0(x3);
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.LinearLayoutManager
|
||||
public final void I0(E0 e02, int[] iArr) {
|
||||
int i = this.f5650E;
|
||||
k kVar = this.f5651F;
|
||||
if (i == 0) {
|
||||
iArr[0] = kVar.h.getWidth();
|
||||
iArr[1] = kVar.h.getWidth();
|
||||
} else {
|
||||
iArr[0] = kVar.h.getHeight();
|
||||
iArr[1] = kVar.h.getHeight();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import android.graphics.Canvas;
|
||||
import androidx.recyclerview.widget.AbstractC0232n0;
|
||||
import androidx.recyclerview.widget.E0;
|
||||
import androidx.recyclerview.widget.GridLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class h extends AbstractC0232n0 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ k f5652a;
|
||||
|
||||
public h(k kVar) {
|
||||
this.f5652a = kVar;
|
||||
w.c(null);
|
||||
w.c(null);
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0232n0
|
||||
public final void onDraw(Canvas canvas, RecyclerView recyclerView, E0 e02) {
|
||||
if ((recyclerView.getAdapter() instanceof y) && (recyclerView.getLayoutManager() instanceof GridLayoutManager)) {
|
||||
this.f5652a.getClass();
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import android.icu.text.DateFormat;
|
||||
import android.icu.text.DisplayContext;
|
||||
import android.icu.util.TimeZone;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import androidx.recyclerview.widget.v0;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class i extends v0 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ s f5653a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ MaterialButton f5654b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final /* synthetic */ k f5655c;
|
||||
|
||||
public i(k kVar, s sVar, MaterialButton materialButton) {
|
||||
this.f5655c = kVar;
|
||||
this.f5653a = sVar;
|
||||
this.f5654b = materialButton;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.v0
|
||||
public final void onScrollStateChanged(RecyclerView recyclerView, int i) {
|
||||
if (i == 0) {
|
||||
recyclerView.announceForAccessibility(this.f5654b.getText());
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.v0
|
||||
public final void onScrolled(RecyclerView recyclerView, int i, int i4) {
|
||||
k kVar = this.f5655c;
|
||||
int S02 = i < 0 ? ((LinearLayoutManager) kVar.h.getLayoutManager()).S0() : ((LinearLayoutManager) kVar.h.getLayoutManager()).T0();
|
||||
b bVar = this.f5653a.f5709a;
|
||||
Calendar a2 = w.a(bVar.f5634a.f5693a);
|
||||
a2.add(2, S02);
|
||||
kVar.f5660d = new o(a2);
|
||||
Calendar a4 = w.a(bVar.f5634a.f5693a);
|
||||
a4.add(2, S02);
|
||||
a4.set(5, 1);
|
||||
Calendar a5 = w.a(a4);
|
||||
a5.get(2);
|
||||
a5.get(1);
|
||||
a5.getMaximum(7);
|
||||
a5.getActualMaximum(5);
|
||||
a5.getTimeInMillis();
|
||||
long timeInMillis = a5.getTimeInMillis();
|
||||
Locale locale = Locale.getDefault();
|
||||
AtomicReference atomicReference = w.f5713a;
|
||||
DateFormat instanceForSkeleton = DateFormat.getInstanceForSkeleton("yMMMM", locale);
|
||||
instanceForSkeleton.setTimeZone(TimeZone.getTimeZone("UTC"));
|
||||
instanceForSkeleton.setContext(DisplayContext.CAPITALIZATION_FOR_STANDALONE);
|
||||
this.f5654b.setText(instanceForSkeleton.format(new Date(timeInMillis)));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,91 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import android.R;
|
||||
import android.content.res.TypedArray;
|
||||
import android.os.Message;
|
||||
import android.view.View;
|
||||
import androidx.appcompat.widget.Toolbar;
|
||||
import g.C0360g;
|
||||
import k.AbstractC0405b;
|
||||
import m.Q0;
|
||||
import z2.AbstractC0673c;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class j implements View.OnClickListener {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ int f5656a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ Object f5657b;
|
||||
|
||||
public /* synthetic */ j(Object obj, int i) {
|
||||
this.f5656a = i;
|
||||
this.f5657b = obj;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
Message message;
|
||||
Message message2;
|
||||
Message message3;
|
||||
switch (this.f5656a) {
|
||||
case 0:
|
||||
k kVar = (k) this.f5657b;
|
||||
int i = kVar.f5661e;
|
||||
if (i == 2) {
|
||||
kVar.g(1);
|
||||
return;
|
||||
} else {
|
||||
if (i == 1) {
|
||||
kVar.g(2);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
case 1:
|
||||
C0360g c0360g = (C0360g) this.f5657b;
|
||||
Message obtain = (view != c0360g.i || (message3 = c0360g.f6632k) == null) ? (view != c0360g.f6633l || (message2 = c0360g.f6635n) == null) ? (view != c0360g.f6636o || (message = c0360g.f6637q) == null) ? null : Message.obtain(message) : Message.obtain(message2) : Message.obtain(message3);
|
||||
if (obtain != null) {
|
||||
obtain.sendToTarget();
|
||||
}
|
||||
c0360g.f6622E.obtainMessage(1, c0360g.f6625b).sendToTarget();
|
||||
return;
|
||||
case 2:
|
||||
((AbstractC0405b) this.f5657b).a();
|
||||
return;
|
||||
case 3:
|
||||
Q0 q02 = ((Toolbar) this.f5657b).f2472M;
|
||||
l.o oVar = q02 == null ? null : q02.f7604b;
|
||||
if (oVar != null) {
|
||||
oVar.collapseActionView();
|
||||
return;
|
||||
}
|
||||
return;
|
||||
case 4:
|
||||
o2.e eVar = (o2.e) this.f5657b;
|
||||
if (eVar.f8094j && eVar.isShowing()) {
|
||||
if (!eVar.f8096l) {
|
||||
TypedArray obtainStyledAttributes = eVar.getContext().obtainStyledAttributes(new int[]{R.attr.windowCloseOnTouchOutside});
|
||||
eVar.f8095k = obtainStyledAttributes.getBoolean(0, true);
|
||||
obtainStyledAttributes.recycle();
|
||||
eVar.f8096l = true;
|
||||
}
|
||||
if (eVar.f8095k) {
|
||||
eVar.cancel();
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
return;
|
||||
default:
|
||||
l.o itemData = ((AbstractC0673c) view).getItemData();
|
||||
n2.b bVar = (n2.b) this.f5657b;
|
||||
if (bVar.f9058E.q(itemData, bVar.f9057D, 0)) {
|
||||
return;
|
||||
}
|
||||
itemData.setChecked(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import O.X;
|
||||
import android.R;
|
||||
import android.content.res.Resources;
|
||||
import android.os.Bundle;
|
||||
import android.view.ContextThemeWrapper;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.GridView;
|
||||
import android.widget.ListAdapter;
|
||||
import androidx.recyclerview.widget.C0212d0;
|
||||
import androidx.recyclerview.widget.GridLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class k<S> extends t {
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public int f5658b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public b f5659c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public o f5660d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public int f5661e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public c f5662f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public RecyclerView f5663g;
|
||||
public RecyclerView h;
|
||||
public View i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public View f5664j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public View f5665k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public View f5666l;
|
||||
|
||||
public final void f(o oVar) {
|
||||
s sVar = (s) this.h.getAdapter();
|
||||
int d4 = sVar.f5709a.f5634a.d(oVar);
|
||||
int d5 = d4 - sVar.f5709a.f5634a.d(this.f5660d);
|
||||
boolean z3 = Math.abs(d5) > 3;
|
||||
boolean z4 = d5 > 0;
|
||||
this.f5660d = oVar;
|
||||
if (z3 && z4) {
|
||||
this.h.j0(d4 - 3);
|
||||
this.h.post(new H0.p(d4, 2, this));
|
||||
} else if (!z3) {
|
||||
this.h.post(new H0.p(d4, 2, this));
|
||||
} else {
|
||||
this.h.j0(d4 + 3);
|
||||
this.h.post(new H0.p(d4, 2, this));
|
||||
}
|
||||
}
|
||||
|
||||
public final void g(int i) {
|
||||
this.f5661e = i;
|
||||
if (i == 2) {
|
||||
this.f5663g.getLayoutManager().v0(this.f5660d.f5695c - ((y) this.f5663g.getAdapter()).f5715a.f5659c.f5634a.f5695c);
|
||||
this.f5665k.setVisibility(0);
|
||||
this.f5666l.setVisibility(8);
|
||||
this.i.setVisibility(8);
|
||||
this.f5664j.setVisibility(8);
|
||||
return;
|
||||
}
|
||||
if (i == 1) {
|
||||
this.f5665k.setVisibility(8);
|
||||
this.f5666l.setVisibility(0);
|
||||
this.i.setVisibility(0);
|
||||
this.f5664j.setVisibility(0);
|
||||
f(this.f5660d);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public final void onCreate(Bundle bundle) {
|
||||
super.onCreate(bundle);
|
||||
if (bundle == null) {
|
||||
bundle = getArguments();
|
||||
}
|
||||
this.f5658b = bundle.getInt("THEME_RES_ID_KEY");
|
||||
if (bundle.getParcelable("GRID_SELECTOR_KEY") != null) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
this.f5659c = (b) bundle.getParcelable("CALENDAR_CONSTRAINTS_KEY");
|
||||
if (bundle.getParcelable("DAY_VIEW_DECORATOR_KEY") != null) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
this.f5660d = (o) bundle.getParcelable("CURRENT_MONTH_KEY");
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||||
int i;
|
||||
int i4;
|
||||
ContextThemeWrapper contextThemeWrapper = new ContextThemeWrapper(getContext(), this.f5658b);
|
||||
this.f5662f = new c(contextThemeWrapper);
|
||||
LayoutInflater cloneInContext = layoutInflater.cloneInContext(contextThemeWrapper);
|
||||
o oVar = this.f5659c.f5634a;
|
||||
if (m.i(contextThemeWrapper, R.attr.windowFullscreen)) {
|
||||
i = com.adif.elcanomovil.R.layout.mtrl_calendar_vertical;
|
||||
i4 = 1;
|
||||
} else {
|
||||
i = com.adif.elcanomovil.R.layout.mtrl_calendar_horizontal;
|
||||
i4 = 0;
|
||||
}
|
||||
View inflate = cloneInContext.inflate(i, viewGroup, false);
|
||||
Resources resources = requireContext().getResources();
|
||||
int dimensionPixelOffset = resources.getDimensionPixelOffset(com.adif.elcanomovil.R.dimen.mtrl_calendar_navigation_bottom_padding) + resources.getDimensionPixelOffset(com.adif.elcanomovil.R.dimen.mtrl_calendar_navigation_top_padding) + resources.getDimensionPixelSize(com.adif.elcanomovil.R.dimen.mtrl_calendar_navigation_height);
|
||||
int dimensionPixelSize = resources.getDimensionPixelSize(com.adif.elcanomovil.R.dimen.mtrl_calendar_days_of_week_height);
|
||||
int i5 = p.f5700d;
|
||||
inflate.setMinimumHeight(dimensionPixelOffset + dimensionPixelSize + (resources.getDimensionPixelOffset(com.adif.elcanomovil.R.dimen.mtrl_calendar_month_vertical_padding) * (i5 - 1)) + (resources.getDimensionPixelSize(com.adif.elcanomovil.R.dimen.mtrl_calendar_day_height) * i5) + resources.getDimensionPixelOffset(com.adif.elcanomovil.R.dimen.mtrl_calendar_bottom_padding));
|
||||
GridView gridView = (GridView) inflate.findViewById(com.adif.elcanomovil.R.id.mtrl_calendar_days_of_week);
|
||||
X.j(gridView, new U.h(1));
|
||||
int i6 = this.f5659c.f5638e;
|
||||
gridView.setAdapter((ListAdapter) (i6 > 0 ? new e(i6) : new e()));
|
||||
gridView.setNumColumns(oVar.f5696d);
|
||||
gridView.setEnabled(false);
|
||||
this.h = (RecyclerView) inflate.findViewById(com.adif.elcanomovil.R.id.mtrl_calendar_months);
|
||||
getContext();
|
||||
this.h.setLayoutManager(new g(this, i4, i4));
|
||||
this.h.setTag("MONTHS_VIEW_GROUP_TAG");
|
||||
s sVar = new s(contextThemeWrapper, this.f5659c, new A.a(this, 24));
|
||||
this.h.setAdapter(sVar);
|
||||
int integer = contextThemeWrapper.getResources().getInteger(com.adif.elcanomovil.R.integer.mtrl_calendar_year_selector_span);
|
||||
RecyclerView recyclerView = (RecyclerView) inflate.findViewById(com.adif.elcanomovil.R.id.mtrl_calendar_year_selector_frame);
|
||||
this.f5663g = recyclerView;
|
||||
if (recyclerView != null) {
|
||||
recyclerView.setHasFixedSize(true);
|
||||
this.f5663g.setLayoutManager(new GridLayoutManager(integer));
|
||||
this.f5663g.setAdapter(new y(this));
|
||||
this.f5663g.i(new h(this));
|
||||
}
|
||||
if (inflate.findViewById(com.adif.elcanomovil.R.id.month_navigation_fragment_toggle) != null) {
|
||||
MaterialButton materialButton = (MaterialButton) inflate.findViewById(com.adif.elcanomovil.R.id.month_navigation_fragment_toggle);
|
||||
materialButton.setTag("SELECTOR_TOGGLE_TAG");
|
||||
X.j(materialButton, new F0.g(this, 2));
|
||||
View findViewById = inflate.findViewById(com.adif.elcanomovil.R.id.month_navigation_previous);
|
||||
this.i = findViewById;
|
||||
findViewById.setTag("NAVIGATION_PREV_TAG");
|
||||
View findViewById2 = inflate.findViewById(com.adif.elcanomovil.R.id.month_navigation_next);
|
||||
this.f5664j = findViewById2;
|
||||
findViewById2.setTag("NAVIGATION_NEXT_TAG");
|
||||
this.f5665k = inflate.findViewById(com.adif.elcanomovil.R.id.mtrl_calendar_year_selector_frame);
|
||||
this.f5666l = inflate.findViewById(com.adif.elcanomovil.R.id.mtrl_calendar_day_selector_frame);
|
||||
g(1);
|
||||
materialButton.setText(this.f5660d.c());
|
||||
this.h.k(new i(this, sVar, materialButton));
|
||||
materialButton.setOnClickListener(new j(this, 0));
|
||||
this.f5664j.setOnClickListener(new f(this, sVar, 1));
|
||||
this.i.setOnClickListener(new f(this, sVar, 0));
|
||||
}
|
||||
if (!m.i(contextThemeWrapper, R.attr.windowFullscreen)) {
|
||||
new C0212d0().a(this.h);
|
||||
}
|
||||
this.h.j0(sVar.f5709a.f5634a.d(this.f5660d));
|
||||
X.j(this.h, new U.h(2));
|
||||
return inflate;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public final void onSaveInstanceState(Bundle bundle) {
|
||||
super.onSaveInstanceState(bundle);
|
||||
bundle.putInt("THEME_RES_ID_KEY", this.f5658b);
|
||||
bundle.putParcelable("GRID_SELECTOR_KEY", null);
|
||||
bundle.putParcelable("CALENDAR_CONSTRAINTS_KEY", this.f5659c);
|
||||
bundle.putParcelable("DAY_VIEW_DECORATOR_KEY", null);
|
||||
bundle.putParcelable("CURRENT_MONTH_KEY", this.f5660d);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import O.D0;
|
||||
import O.InterfaceC0080v;
|
||||
import android.view.View;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class l implements InterfaceC0080v {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final Object f5667a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public int f5668b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public int f5669c;
|
||||
|
||||
public l(View view) {
|
||||
this.f5667a = view;
|
||||
}
|
||||
|
||||
@Override // O.InterfaceC0080v
|
||||
public D0 g(View view, D0 d02) {
|
||||
int i = d02.f1207a.f(7).f559b;
|
||||
View view2 = (View) this.f5667a;
|
||||
int i4 = this.f5668b;
|
||||
if (i4 >= 0) {
|
||||
view2.getLayoutParams().height = i4 + i;
|
||||
view2.setLayoutParams(view2.getLayoutParams());
|
||||
}
|
||||
view2.setPadding(view2.getPaddingLeft(), this.f5669c + i, view2.getPaddingRight(), view2.getPaddingBottom());
|
||||
return d02;
|
||||
}
|
||||
|
||||
public l() {
|
||||
this.f5667a = new l[256];
|
||||
this.f5668b = 0;
|
||||
this.f5669c = 0;
|
||||
}
|
||||
|
||||
public l(int i, int i4) {
|
||||
this.f5667a = null;
|
||||
this.f5668b = i;
|
||||
int i5 = i4 & 7;
|
||||
this.f5669c = i5 == 0 ? 8 : i5;
|
||||
}
|
||||
|
||||
public l(View view, int i, int i4) {
|
||||
this.f5668b = i;
|
||||
this.f5667a = view;
|
||||
this.f5669c = i4;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,400 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import O.E0;
|
||||
import O.F0;
|
||||
import O.L;
|
||||
import O.X;
|
||||
import a.AbstractC0105a;
|
||||
import a.AbstractC0106b;
|
||||
import android.app.Dialog;
|
||||
import android.content.Context;
|
||||
import android.content.DialogInterface;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.InsetDrawable;
|
||||
import android.graphics.drawable.StateListDrawable;
|
||||
import android.os.Build;
|
||||
import android.os.Bundle;
|
||||
import android.text.TextUtils;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.Window;
|
||||
import android.view.WindowInsetsController;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.fragment.app.DialogInterfaceOnCancelListenerC0174y;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.google.android.material.internal.CheckableImageButton;
|
||||
import h2.AbstractC0379a;
|
||||
import java.util.Calendar;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.WeakHashMap;
|
||||
import u2.ViewOnTouchListenerC0634a;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class m<S> extends DialogInterfaceOnCancelListenerC0174y {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final LinkedHashSet f5670a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final LinkedHashSet f5671b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public int f5672c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public t f5673d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public b f5674e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public k f5675f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public int f5676g;
|
||||
public CharSequence h;
|
||||
public boolean i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public int f5677j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public int f5678k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public CharSequence f5679l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public int f5680m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public CharSequence f5681n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public int f5682o;
|
||||
public CharSequence p;
|
||||
|
||||
/* renamed from: q, reason: collision with root package name */
|
||||
public int f5683q;
|
||||
|
||||
/* renamed from: r, reason: collision with root package name */
|
||||
public CharSequence f5684r;
|
||||
|
||||
/* renamed from: s, reason: collision with root package name */
|
||||
public TextView f5685s;
|
||||
|
||||
/* renamed from: t, reason: collision with root package name */
|
||||
public CheckableImageButton f5686t;
|
||||
|
||||
/* renamed from: u, reason: collision with root package name */
|
||||
public E2.g f5687u;
|
||||
|
||||
/* renamed from: v, reason: collision with root package name */
|
||||
public boolean f5688v;
|
||||
|
||||
/* renamed from: w, reason: collision with root package name */
|
||||
public CharSequence f5689w;
|
||||
|
||||
/* renamed from: x, reason: collision with root package name */
|
||||
public CharSequence f5690x;
|
||||
|
||||
public m() {
|
||||
new LinkedHashSet();
|
||||
new LinkedHashSet();
|
||||
this.f5670a = new LinkedHashSet();
|
||||
this.f5671b = new LinkedHashSet();
|
||||
}
|
||||
|
||||
public static int h(Context context) {
|
||||
Resources resources = context.getResources();
|
||||
int dimensionPixelOffset = resources.getDimensionPixelOffset(R.dimen.mtrl_calendar_content_padding);
|
||||
Calendar b4 = w.b();
|
||||
b4.set(5, 1);
|
||||
Calendar a2 = w.a(b4);
|
||||
a2.get(2);
|
||||
a2.get(1);
|
||||
int maximum = a2.getMaximum(7);
|
||||
a2.getActualMaximum(5);
|
||||
a2.getTimeInMillis();
|
||||
int dimensionPixelSize = resources.getDimensionPixelSize(R.dimen.mtrl_calendar_day_width) * maximum;
|
||||
return ((maximum - 1) * resources.getDimensionPixelOffset(R.dimen.mtrl_calendar_month_horizontal_padding)) + dimensionPixelSize + (dimensionPixelOffset * 2);
|
||||
}
|
||||
|
||||
public static boolean i(Context context, int i) {
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(m3.l.V(context, R.attr.materialCalendarStyle, k.class.getCanonicalName()).data, new int[]{i});
|
||||
boolean z3 = obtainStyledAttributes.getBoolean(0, false);
|
||||
obtainStyledAttributes.recycle();
|
||||
return z3;
|
||||
}
|
||||
|
||||
public final void g() {
|
||||
if (getArguments().getParcelable("DATE_SELECTOR_KEY") != null) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.DialogInterfaceOnCancelListenerC0174y, android.content.DialogInterface.OnCancelListener
|
||||
public final void onCancel(DialogInterface dialogInterface) {
|
||||
Iterator it = this.f5670a.iterator();
|
||||
while (it.hasNext()) {
|
||||
((DialogInterface.OnCancelListener) it.next()).onCancel(dialogInterface);
|
||||
}
|
||||
super.onCancel(dialogInterface);
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.DialogInterfaceOnCancelListenerC0174y, androidx.fragment.app.K
|
||||
public final void onCreate(Bundle bundle) {
|
||||
super.onCreate(bundle);
|
||||
if (bundle == null) {
|
||||
bundle = getArguments();
|
||||
}
|
||||
this.f5672c = bundle.getInt("OVERRIDE_THEME_RES_ID");
|
||||
if (bundle.getParcelable("DATE_SELECTOR_KEY") != null) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
this.f5674e = (b) bundle.getParcelable("CALENDAR_CONSTRAINTS_KEY");
|
||||
if (bundle.getParcelable("DAY_VIEW_DECORATOR_KEY") != null) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
this.f5676g = bundle.getInt("TITLE_TEXT_RES_ID_KEY");
|
||||
this.h = bundle.getCharSequence("TITLE_TEXT_KEY");
|
||||
this.f5677j = bundle.getInt("INPUT_MODE_KEY");
|
||||
this.f5678k = bundle.getInt("POSITIVE_BUTTON_TEXT_RES_ID_KEY");
|
||||
this.f5679l = bundle.getCharSequence("POSITIVE_BUTTON_TEXT_KEY");
|
||||
this.f5680m = bundle.getInt("POSITIVE_BUTTON_CONTENT_DESCRIPTION_RES_ID_KEY");
|
||||
this.f5681n = bundle.getCharSequence("POSITIVE_BUTTON_CONTENT_DESCRIPTION_KEY");
|
||||
this.f5682o = bundle.getInt("NEGATIVE_BUTTON_TEXT_RES_ID_KEY");
|
||||
this.p = bundle.getCharSequence("NEGATIVE_BUTTON_TEXT_KEY");
|
||||
this.f5683q = bundle.getInt("NEGATIVE_BUTTON_CONTENT_DESCRIPTION_RES_ID_KEY");
|
||||
this.f5684r = bundle.getCharSequence("NEGATIVE_BUTTON_CONTENT_DESCRIPTION_KEY");
|
||||
CharSequence charSequence = this.h;
|
||||
if (charSequence == null) {
|
||||
charSequence = requireContext().getResources().getText(this.f5676g);
|
||||
}
|
||||
this.f5689w = charSequence;
|
||||
if (charSequence != null) {
|
||||
CharSequence[] split = TextUtils.split(String.valueOf(charSequence), "\n");
|
||||
if (split.length > 1) {
|
||||
charSequence = split[0];
|
||||
}
|
||||
} else {
|
||||
charSequence = null;
|
||||
}
|
||||
this.f5690x = charSequence;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.DialogInterfaceOnCancelListenerC0174y
|
||||
public final Dialog onCreateDialog(Bundle bundle) {
|
||||
Context requireContext = requireContext();
|
||||
requireContext();
|
||||
int i = this.f5672c;
|
||||
if (i == 0) {
|
||||
g();
|
||||
throw null;
|
||||
}
|
||||
Dialog dialog = new Dialog(requireContext, i);
|
||||
Context context = dialog.getContext();
|
||||
this.i = i(context, android.R.attr.windowFullscreen);
|
||||
this.f5687u = new E2.g(context, null, R.attr.materialCalendarStyle, 2132018319);
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(null, AbstractC0379a.f6766n, R.attr.materialCalendarStyle, 2132018319);
|
||||
int color = obtainStyledAttributes.getColor(1, 0);
|
||||
obtainStyledAttributes.recycle();
|
||||
this.f5687u.h(context);
|
||||
this.f5687u.j(ColorStateList.valueOf(color));
|
||||
E2.g gVar = this.f5687u;
|
||||
View decorView = dialog.getWindow().getDecorView();
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
gVar.i(L.i(decorView));
|
||||
return dialog;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||||
View inflate = layoutInflater.inflate(this.i ? R.layout.mtrl_picker_fullscreen : R.layout.mtrl_picker_dialog, viewGroup);
|
||||
Context context = inflate.getContext();
|
||||
if (this.i) {
|
||||
inflate.findViewById(R.id.mtrl_calendar_frame).setLayoutParams(new LinearLayout.LayoutParams(h(context), -2));
|
||||
} else {
|
||||
inflate.findViewById(R.id.mtrl_calendar_main_pane).setLayoutParams(new LinearLayout.LayoutParams(h(context), -1));
|
||||
}
|
||||
TextView textView = (TextView) inflate.findViewById(R.id.mtrl_picker_header_selection_text);
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
textView.setAccessibilityLiveRegion(1);
|
||||
this.f5686t = (CheckableImageButton) inflate.findViewById(R.id.mtrl_picker_header_toggle);
|
||||
this.f5685s = (TextView) inflate.findViewById(R.id.mtrl_picker_title_text);
|
||||
this.f5686t.setTag("TOGGLE_BUTTON_TAG");
|
||||
CheckableImageButton checkableImageButton = this.f5686t;
|
||||
StateListDrawable stateListDrawable = new StateListDrawable();
|
||||
stateListDrawable.addState(new int[]{android.R.attr.state_checked}, AbstractC0106b.m(context, R.drawable.material_ic_calendar_black_24dp));
|
||||
stateListDrawable.addState(new int[0], AbstractC0106b.m(context, R.drawable.material_ic_edit_black_24dp));
|
||||
checkableImageButton.setImageDrawable(stateListDrawable);
|
||||
this.f5686t.setChecked(this.f5677j != 0);
|
||||
X.j(this.f5686t, null);
|
||||
CheckableImageButton checkableImageButton2 = this.f5686t;
|
||||
this.f5686t.setContentDescription(this.f5677j == 1 ? checkableImageButton2.getContext().getString(R.string.mtrl_picker_toggle_to_calendar_input_mode) : checkableImageButton2.getContext().getString(R.string.mtrl_picker_toggle_to_text_input_mode));
|
||||
this.f5686t.setOnClickListener(new D1.a(this, 19));
|
||||
g();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.DialogInterfaceOnCancelListenerC0174y, android.content.DialogInterface.OnDismissListener
|
||||
public final void onDismiss(DialogInterface dialogInterface) {
|
||||
Iterator it = this.f5671b.iterator();
|
||||
while (it.hasNext()) {
|
||||
((DialogInterface.OnDismissListener) it.next()).onDismiss(dialogInterface);
|
||||
}
|
||||
ViewGroup viewGroup = (ViewGroup) getView();
|
||||
if (viewGroup != null) {
|
||||
viewGroup.removeAllViews();
|
||||
}
|
||||
super.onDismiss(dialogInterface);
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r2v2, types: [java.lang.Object, com.google.android.material.datepicker.a] */
|
||||
@Override // androidx.fragment.app.DialogInterfaceOnCancelListenerC0174y, androidx.fragment.app.K
|
||||
public final void onSaveInstanceState(Bundle bundle) {
|
||||
super.onSaveInstanceState(bundle);
|
||||
bundle.putInt("OVERRIDE_THEME_RES_ID", this.f5672c);
|
||||
bundle.putParcelable("DATE_SELECTOR_KEY", null);
|
||||
b bVar = this.f5674e;
|
||||
?? obj = new Object();
|
||||
int i = a.f5632b;
|
||||
int i4 = a.f5632b;
|
||||
long j4 = bVar.f5634a.f5698f;
|
||||
long j5 = bVar.f5635b.f5698f;
|
||||
obj.f5633a = Long.valueOf(bVar.f5637d.f5698f);
|
||||
k kVar = this.f5675f;
|
||||
o oVar = kVar == null ? null : kVar.f5660d;
|
||||
if (oVar != null) {
|
||||
obj.f5633a = Long.valueOf(oVar.f5698f);
|
||||
}
|
||||
Bundle bundle2 = new Bundle();
|
||||
bundle2.putParcelable("DEEP_COPY_VALIDATOR_KEY", bVar.f5636c);
|
||||
o b4 = o.b(j4);
|
||||
o b5 = o.b(j5);
|
||||
d dVar = (d) bundle2.getParcelable("DEEP_COPY_VALIDATOR_KEY");
|
||||
Long l4 = obj.f5633a;
|
||||
bundle.putParcelable("CALENDAR_CONSTRAINTS_KEY", new b(b4, b5, dVar, l4 == null ? null : o.b(l4.longValue()), bVar.f5638e));
|
||||
bundle.putParcelable("DAY_VIEW_DECORATOR_KEY", null);
|
||||
bundle.putInt("TITLE_TEXT_RES_ID_KEY", this.f5676g);
|
||||
bundle.putCharSequence("TITLE_TEXT_KEY", this.h);
|
||||
bundle.putInt("INPUT_MODE_KEY", this.f5677j);
|
||||
bundle.putInt("POSITIVE_BUTTON_TEXT_RES_ID_KEY", this.f5678k);
|
||||
bundle.putCharSequence("POSITIVE_BUTTON_TEXT_KEY", this.f5679l);
|
||||
bundle.putInt("POSITIVE_BUTTON_CONTENT_DESCRIPTION_RES_ID_KEY", this.f5680m);
|
||||
bundle.putCharSequence("POSITIVE_BUTTON_CONTENT_DESCRIPTION_KEY", this.f5681n);
|
||||
bundle.putInt("NEGATIVE_BUTTON_TEXT_RES_ID_KEY", this.f5682o);
|
||||
bundle.putCharSequence("NEGATIVE_BUTTON_TEXT_KEY", this.p);
|
||||
bundle.putInt("NEGATIVE_BUTTON_CONTENT_DESCRIPTION_RES_ID_KEY", this.f5683q);
|
||||
bundle.putCharSequence("NEGATIVE_BUTTON_CONTENT_DESCRIPTION_KEY", this.f5684r);
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // androidx.fragment.app.DialogInterfaceOnCancelListenerC0174y, androidx.fragment.app.K
|
||||
public final void onStart() {
|
||||
E0 e02;
|
||||
E0 e03;
|
||||
WindowInsetsController insetsController;
|
||||
WindowInsetsController insetsController2;
|
||||
super.onStart();
|
||||
Window window = requireDialog().getWindow();
|
||||
if (this.i) {
|
||||
window.setLayout(-1, -1);
|
||||
window.setBackgroundDrawable(this.f5687u);
|
||||
if (!this.f5688v) {
|
||||
View findViewById = requireView().findViewById(R.id.fullscreen_header);
|
||||
ColorStateList p = m3.l.p(findViewById.getBackground());
|
||||
Integer valueOf = p != null ? Integer.valueOf(p.getDefaultColor()) : null;
|
||||
boolean z3 = valueOf == null || valueOf.intValue() == 0;
|
||||
int s4 = m3.d.s(window.getContext(), android.R.attr.colorBackground, -16777216);
|
||||
if (z3) {
|
||||
valueOf = Integer.valueOf(s4);
|
||||
}
|
||||
AbstractC0105a.O(window, false);
|
||||
window.getContext();
|
||||
window.getContext();
|
||||
window.setStatusBarColor(0);
|
||||
window.setNavigationBarColor(0);
|
||||
boolean z4 = m3.d.x(0) || m3.d.x(valueOf.intValue());
|
||||
E2.e eVar = new E2.e(window.getDecorView(), 5);
|
||||
if (Build.VERSION.SDK_INT >= 30) {
|
||||
insetsController2 = window.getInsetsController();
|
||||
F0 f02 = new F0(insetsController2, eVar);
|
||||
f02.f1215b = window;
|
||||
e02 = f02;
|
||||
} else {
|
||||
e02 = new E0(window, eVar);
|
||||
}
|
||||
e02.F(z4);
|
||||
boolean z5 = m3.d.x(0) || m3.d.x(s4);
|
||||
E2.e eVar2 = new E2.e(window.getDecorView(), 5);
|
||||
if (Build.VERSION.SDK_INT >= 30) {
|
||||
insetsController = window.getInsetsController();
|
||||
F0 f03 = new F0(insetsController, eVar2);
|
||||
f03.f1215b = window;
|
||||
e03 = f03;
|
||||
} else {
|
||||
e03 = new E0(window, eVar2);
|
||||
}
|
||||
e03.E(z5);
|
||||
l lVar = new l(findViewById, findViewById.getLayoutParams().height, findViewById.getPaddingTop());
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
L.u(findViewById, lVar);
|
||||
this.f5688v = true;
|
||||
}
|
||||
} else {
|
||||
window.setLayout(-2, -2);
|
||||
int dimensionPixelOffset = getResources().getDimensionPixelOffset(R.dimen.mtrl_calendar_dialog_background_inset);
|
||||
Rect rect = new Rect(dimensionPixelOffset, dimensionPixelOffset, dimensionPixelOffset, dimensionPixelOffset);
|
||||
window.setBackgroundDrawable(new InsetDrawable((Drawable) this.f5687u, dimensionPixelOffset, dimensionPixelOffset, dimensionPixelOffset, dimensionPixelOffset));
|
||||
window.getDecorView().setOnTouchListener(new ViewOnTouchListenerC0634a(requireDialog(), rect));
|
||||
}
|
||||
requireContext();
|
||||
int i = this.f5672c;
|
||||
if (i == 0) {
|
||||
g();
|
||||
throw null;
|
||||
}
|
||||
g();
|
||||
b bVar = this.f5674e;
|
||||
k kVar = new k();
|
||||
Bundle bundle = new Bundle();
|
||||
bundle.putInt("THEME_RES_ID_KEY", i);
|
||||
bundle.putParcelable("GRID_SELECTOR_KEY", null);
|
||||
bundle.putParcelable("CALENDAR_CONSTRAINTS_KEY", bVar);
|
||||
bundle.putParcelable("DAY_VIEW_DECORATOR_KEY", null);
|
||||
bundle.putParcelable("CURRENT_MONTH_KEY", bVar.f5637d);
|
||||
kVar.setArguments(bundle);
|
||||
this.f5675f = kVar;
|
||||
t tVar = kVar;
|
||||
if (this.f5677j == 1) {
|
||||
g();
|
||||
b bVar2 = this.f5674e;
|
||||
t nVar = new n();
|
||||
Bundle bundle2 = new Bundle();
|
||||
bundle2.putInt("THEME_RES_ID_KEY", i);
|
||||
bundle2.putParcelable("DATE_SELECTOR_KEY", null);
|
||||
bundle2.putParcelable("CALENDAR_CONSTRAINTS_KEY", bVar2);
|
||||
nVar.setArguments(bundle2);
|
||||
tVar = nVar;
|
||||
}
|
||||
this.f5673d = tVar;
|
||||
this.f5685s.setText((this.f5677j == 1 && getResources().getConfiguration().orientation == 2) ? this.f5690x : this.f5689w);
|
||||
g();
|
||||
getContext();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.DialogInterfaceOnCancelListenerC0174y, androidx.fragment.app.K
|
||||
public final void onStop() {
|
||||
this.f5673d.f5712a.clear();
|
||||
super.onStop();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.view.ContextThemeWrapper;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class n<S> extends t {
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public int f5691b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public b f5692c;
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public final void onCreate(Bundle bundle) {
|
||||
super.onCreate(bundle);
|
||||
if (bundle == null) {
|
||||
bundle = getArguments();
|
||||
}
|
||||
this.f5691b = bundle.getInt("THEME_RES_ID_KEY");
|
||||
if (bundle.getParcelable("DATE_SELECTOR_KEY") != null) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
this.f5692c = (b) bundle.getParcelable("CALENDAR_CONSTRAINTS_KEY");
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public final View onCreateView(LayoutInflater layoutInflater, ViewGroup viewGroup, Bundle bundle) {
|
||||
layoutInflater.cloneInContext(new ContextThemeWrapper(getContext(), this.f5691b));
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // androidx.fragment.app.K
|
||||
public final void onSaveInstanceState(Bundle bundle) {
|
||||
super.onSaveInstanceState(bundle);
|
||||
bundle.putInt("THEME_RES_ID_KEY", this.f5691b);
|
||||
bundle.putParcelable("DATE_SELECTOR_KEY", null);
|
||||
bundle.putParcelable("CALENDAR_CONSTRAINTS_KEY", this.f5692c);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import android.icu.text.DateFormat;
|
||||
import android.icu.text.DisplayContext;
|
||||
import android.icu.util.TimeZone;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
import java.util.Arrays;
|
||||
import java.util.Calendar;
|
||||
import java.util.Date;
|
||||
import java.util.GregorianCalendar;
|
||||
import java.util.Locale;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class o implements Comparable, Parcelable {
|
||||
public static final Parcelable.Creator<o> CREATOR = new D0.a(10);
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final Calendar f5693a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final int f5694b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final int f5695c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final int f5696d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final int f5697e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final long f5698f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public String f5699g;
|
||||
|
||||
public o(Calendar calendar) {
|
||||
calendar.set(5, 1);
|
||||
Calendar a2 = w.a(calendar);
|
||||
this.f5693a = a2;
|
||||
this.f5694b = a2.get(2);
|
||||
this.f5695c = a2.get(1);
|
||||
this.f5696d = a2.getMaximum(7);
|
||||
this.f5697e = a2.getActualMaximum(5);
|
||||
this.f5698f = a2.getTimeInMillis();
|
||||
}
|
||||
|
||||
public static o a(int i, int i4) {
|
||||
Calendar c4 = w.c(null);
|
||||
c4.set(1, i);
|
||||
c4.set(2, i4);
|
||||
return new o(c4);
|
||||
}
|
||||
|
||||
public static o b(long j4) {
|
||||
Calendar c4 = w.c(null);
|
||||
c4.setTimeInMillis(j4);
|
||||
return new o(c4);
|
||||
}
|
||||
|
||||
public final String c() {
|
||||
if (this.f5699g == null) {
|
||||
long timeInMillis = this.f5693a.getTimeInMillis();
|
||||
Locale locale = Locale.getDefault();
|
||||
AtomicReference atomicReference = w.f5713a;
|
||||
DateFormat instanceForSkeleton = DateFormat.getInstanceForSkeleton("yMMMM", locale);
|
||||
instanceForSkeleton.setTimeZone(TimeZone.getTimeZone("UTC"));
|
||||
instanceForSkeleton.setContext(DisplayContext.CAPITALIZATION_FOR_STANDALONE);
|
||||
this.f5699g = instanceForSkeleton.format(new Date(timeInMillis));
|
||||
}
|
||||
return this.f5699g;
|
||||
}
|
||||
|
||||
@Override // java.lang.Comparable
|
||||
public final int compareTo(Object obj) {
|
||||
return this.f5693a.compareTo(((o) obj).f5693a);
|
||||
}
|
||||
|
||||
public final int d(o oVar) {
|
||||
if (!(this.f5693a instanceof GregorianCalendar)) {
|
||||
throw new IllegalArgumentException("Only Gregorian calendars are supported.");
|
||||
}
|
||||
return (oVar.f5694b - this.f5694b) + ((oVar.f5695c - this.f5695c) * 12);
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
public final boolean equals(Object obj) {
|
||||
if (this == obj) {
|
||||
return true;
|
||||
}
|
||||
if (!(obj instanceof o)) {
|
||||
return false;
|
||||
}
|
||||
o oVar = (o) obj;
|
||||
return this.f5694b == oVar.f5694b && this.f5695c == oVar.f5695c;
|
||||
}
|
||||
|
||||
public final int hashCode() {
|
||||
return Arrays.hashCode(new Object[]{Integer.valueOf(this.f5694b), Integer.valueOf(this.f5695c)});
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
parcel.writeInt(this.f5695c);
|
||||
parcel.writeInt(this.f5694b);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,114 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.BaseAdapter;
|
||||
import android.widget.TextView;
|
||||
import com.adif.elcanomovil.R;
|
||||
import java.util.Calendar;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class p extends BaseAdapter {
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public static final int f5700d = w.c(null).getMaximum(4);
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public static final int f5701e = (w.c(null).getMaximum(7) + w.c(null).getMaximum(5)) - 1;
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final o f5702a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public c f5703b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final b f5704c;
|
||||
|
||||
public p(o oVar, b bVar) {
|
||||
this.f5702a = oVar;
|
||||
this.f5704c = bVar;
|
||||
throw null;
|
||||
}
|
||||
|
||||
public final int a() {
|
||||
int i = this.f5704c.f5638e;
|
||||
o oVar = this.f5702a;
|
||||
Calendar calendar = oVar.f5693a;
|
||||
int i4 = calendar.get(7);
|
||||
if (i <= 0) {
|
||||
i = calendar.getFirstDayOfWeek();
|
||||
}
|
||||
int i5 = i4 - i;
|
||||
return i5 < 0 ? i5 + oVar.f5696d : i5;
|
||||
}
|
||||
|
||||
@Override // android.widget.Adapter
|
||||
/* renamed from: b, reason: merged with bridge method [inline-methods] */
|
||||
public final Long getItem(int i) {
|
||||
if (i < a() || i > c()) {
|
||||
return null;
|
||||
}
|
||||
int a2 = (i - a()) + 1;
|
||||
Calendar a4 = w.a(this.f5702a.f5693a);
|
||||
a4.set(5, a2);
|
||||
return Long.valueOf(a4.getTimeInMillis());
|
||||
}
|
||||
|
||||
public final int c() {
|
||||
return (a() + this.f5702a.f5697e) - 1;
|
||||
}
|
||||
|
||||
@Override // android.widget.Adapter
|
||||
public final int getCount() {
|
||||
return f5701e;
|
||||
}
|
||||
|
||||
@Override // android.widget.Adapter
|
||||
public final long getItemId(int i) {
|
||||
return i / this.f5702a.f5696d;
|
||||
}
|
||||
|
||||
@Override // android.widget.Adapter
|
||||
public final View getView(int i, View view, ViewGroup viewGroup) {
|
||||
Context context = viewGroup.getContext();
|
||||
if (this.f5703b == null) {
|
||||
this.f5703b = new c(context);
|
||||
}
|
||||
TextView textView = (TextView) view;
|
||||
if (view == null) {
|
||||
textView = (TextView) LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.mtrl_calendar_day, viewGroup, false);
|
||||
}
|
||||
int a2 = i - a();
|
||||
if (a2 >= 0) {
|
||||
o oVar = this.f5702a;
|
||||
if (a2 < oVar.f5697e) {
|
||||
textView.setTag(oVar);
|
||||
textView.setText(String.format(textView.getResources().getConfiguration().locale, "%d", Integer.valueOf(a2 + 1)));
|
||||
textView.setVisibility(0);
|
||||
textView.setEnabled(true);
|
||||
if (getItem(i) == null || textView == null) {
|
||||
return textView;
|
||||
}
|
||||
textView.getContext();
|
||||
w.b().getTimeInMillis();
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
textView.setVisibility(8);
|
||||
textView.setEnabled(false);
|
||||
if (getItem(i) == null) {
|
||||
textView.getContext();
|
||||
w.b().getTimeInMillis();
|
||||
throw null;
|
||||
}
|
||||
return textView;
|
||||
}
|
||||
|
||||
@Override // android.widget.BaseAdapter, android.widget.Adapter
|
||||
public final boolean hasStableIds() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import android.view.View;
|
||||
import android.widget.AdapterView;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class q implements AdapterView.OnItemClickListener {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ MaterialCalendarGridView f5705a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ s f5706b;
|
||||
|
||||
public q(s sVar, MaterialCalendarGridView materialCalendarGridView) {
|
||||
this.f5706b = sVar;
|
||||
this.f5705a = materialCalendarGridView;
|
||||
}
|
||||
|
||||
@Override // android.widget.AdapterView.OnItemClickListener
|
||||
public final void onItemClick(AdapterView adapterView, View view, int i, long j4) {
|
||||
MaterialCalendarGridView materialCalendarGridView = this.f5705a;
|
||||
p a2 = materialCalendarGridView.a();
|
||||
if (i < a2.a() || i > a2.c()) {
|
||||
return;
|
||||
}
|
||||
if (materialCalendarGridView.a().getItem(i).longValue() >= ((k) this.f5706b.f5710b.f7b).f5659c.f5636c.f5643a) {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import O.G;
|
||||
import O.X;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.R;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class r extends I0 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final TextView f5707a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final MaterialCalendarGridView f5708b;
|
||||
|
||||
public r(LinearLayout linearLayout, boolean z3) {
|
||||
super(linearLayout);
|
||||
TextView textView = (TextView) linearLayout.findViewById(R.id.month_title);
|
||||
this.f5707a = textView;
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
new G(R.id.tag_accessibility_heading, Boolean.class, 0, 28, 2).d(textView, Boolean.TRUE);
|
||||
this.f5708b = (MaterialCalendarGridView) linearLayout.findViewById(R.id.month_grid);
|
||||
if (z3) {
|
||||
return;
|
||||
}
|
||||
textView.setVisibility(8);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,86 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import android.view.ContextThemeWrapper;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.LinearLayout;
|
||||
import androidx.recyclerview.widget.AbstractC0220h0;
|
||||
import androidx.recyclerview.widget.C0239r0;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.R;
|
||||
import java.util.Calendar;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class s extends AbstractC0220h0 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final b f5709a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final A.a f5710b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final int f5711c;
|
||||
|
||||
public s(ContextThemeWrapper contextThemeWrapper, b bVar, A.a aVar) {
|
||||
o oVar = bVar.f5634a;
|
||||
o oVar2 = bVar.f5637d;
|
||||
if (oVar.f5693a.compareTo(oVar2.f5693a) > 0) {
|
||||
throw new IllegalArgumentException("firstPage cannot be after currentPage");
|
||||
}
|
||||
if (oVar2.f5693a.compareTo(bVar.f5635b.f5693a) > 0) {
|
||||
throw new IllegalArgumentException("currentPage cannot be after lastPage");
|
||||
}
|
||||
this.f5711c = (contextThemeWrapper.getResources().getDimensionPixelSize(R.dimen.mtrl_calendar_day_height) * p.f5700d) + (m.i(contextThemeWrapper, android.R.attr.windowFullscreen) ? contextThemeWrapper.getResources().getDimensionPixelSize(R.dimen.mtrl_calendar_day_height) : 0);
|
||||
this.f5709a = bVar;
|
||||
this.f5710b = aVar;
|
||||
setHasStableIds(true);
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public final int getItemCount() {
|
||||
return this.f5709a.f5640g;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public final long getItemId(int i) {
|
||||
Calendar a2 = w.a(this.f5709a.f5634a.f5693a);
|
||||
a2.add(2, i);
|
||||
a2.set(5, 1);
|
||||
Calendar a4 = w.a(a2);
|
||||
a4.get(2);
|
||||
a4.get(1);
|
||||
a4.getMaximum(7);
|
||||
a4.getActualMaximum(5);
|
||||
a4.getTimeInMillis();
|
||||
return a4.getTimeInMillis();
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public final void onBindViewHolder(I0 i02, int i) {
|
||||
r rVar = (r) i02;
|
||||
b bVar = this.f5709a;
|
||||
Calendar a2 = w.a(bVar.f5634a.f5693a);
|
||||
a2.add(2, i);
|
||||
o oVar = new o(a2);
|
||||
rVar.f5707a.setText(oVar.c());
|
||||
MaterialCalendarGridView materialCalendarGridView = (MaterialCalendarGridView) rVar.f5708b.findViewById(R.id.month_grid);
|
||||
if (materialCalendarGridView.a() == null || !oVar.equals(materialCalendarGridView.a().f5702a)) {
|
||||
new p(oVar, bVar);
|
||||
throw null;
|
||||
}
|
||||
materialCalendarGridView.invalidate();
|
||||
materialCalendarGridView.a().getClass();
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public final I0 onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||||
LinearLayout linearLayout = (LinearLayout) LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.mtrl_calendar_month_labeled, viewGroup, false);
|
||||
if (!m.i(viewGroup.getContext(), android.R.attr.windowFullscreen)) {
|
||||
return new r(linearLayout, false);
|
||||
}
|
||||
linearLayout.setLayoutParams(new C0239r0(-1, this.f5711c));
|
||||
return new r(linearLayout, true);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import androidx.fragment.app.K;
|
||||
import java.util.LinkedHashSet;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class t extends K {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final LinkedHashSet f5712a = new LinkedHashSet();
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import android.util.DisplayMetrics;
|
||||
import androidx.recyclerview.widget.X;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class u extends X {
|
||||
@Override // androidx.recyclerview.widget.X
|
||||
public final float d(DisplayMetrics displayMetrics) {
|
||||
return 100.0f / displayMetrics.densityDpi;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class v {
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import java.util.Calendar;
|
||||
import java.util.TimeZone;
|
||||
import java.util.concurrent.atomic.AtomicReference;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class w {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final AtomicReference f5713a = new AtomicReference();
|
||||
|
||||
public static Calendar a(Calendar calendar) {
|
||||
Calendar c4 = c(calendar);
|
||||
Calendar c5 = c(null);
|
||||
c5.set(c4.get(1), c4.get(2), c4.get(5));
|
||||
return c5;
|
||||
}
|
||||
|
||||
public static Calendar b() {
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
calendar.set(11, 0);
|
||||
calendar.set(12, 0);
|
||||
calendar.set(13, 0);
|
||||
calendar.set(14, 0);
|
||||
calendar.setTimeZone(TimeZone.getTimeZone("UTC"));
|
||||
return calendar;
|
||||
}
|
||||
|
||||
public static Calendar c(Calendar calendar) {
|
||||
Calendar calendar2 = Calendar.getInstance(TimeZone.getTimeZone("UTC"));
|
||||
if (calendar == null) {
|
||||
calendar2.clear();
|
||||
return calendar2;
|
||||
}
|
||||
calendar2.setTimeInMillis(calendar.getTimeInMillis());
|
||||
return calendar2;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import android.widget.TextView;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class x extends I0 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final TextView f5714a;
|
||||
|
||||
public x(TextView textView) {
|
||||
super(textView);
|
||||
this.f5714a = textView;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.google.android.material.datepicker;
|
||||
|
||||
import android.content.Context;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.TextView;
|
||||
import androidx.recyclerview.widget.AbstractC0220h0;
|
||||
import androidx.recyclerview.widget.I0;
|
||||
import com.adif.elcanomovil.R;
|
||||
import java.util.Locale;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class y extends AbstractC0220h0 {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final k f5715a;
|
||||
|
||||
public y(k kVar) {
|
||||
this.f5715a = kVar;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public final int getItemCount() {
|
||||
return this.f5715a.f5659c.f5639f;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public final void onBindViewHolder(I0 i02, int i) {
|
||||
x xVar = (x) i02;
|
||||
k kVar = this.f5715a;
|
||||
int i4 = kVar.f5659c.f5634a.f5695c + i;
|
||||
xVar.f5714a.setText(String.format(Locale.getDefault(), "%d", Integer.valueOf(i4)));
|
||||
TextView textView = xVar.f5714a;
|
||||
Context context = textView.getContext();
|
||||
textView.setContentDescription(w.b().get(1) == i4 ? String.format(context.getString(R.string.mtrl_picker_navigate_to_current_year_description), Integer.valueOf(i4)) : String.format(context.getString(R.string.mtrl_picker_navigate_to_year_description), Integer.valueOf(i4)));
|
||||
c cVar = kVar.f5662f;
|
||||
if (w.b().get(1) == i4) {
|
||||
E2.e eVar = cVar.f5642b;
|
||||
} else {
|
||||
E2.e eVar2 = cVar.f5641a;
|
||||
}
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // androidx.recyclerview.widget.AbstractC0220h0
|
||||
public final I0 onCreateViewHolder(ViewGroup viewGroup, int i) {
|
||||
return new x((TextView) LayoutInflater.from(viewGroup.getContext()).inflate(R.layout.mtrl_calendar_year, viewGroup, false));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package com.google.android.material.floatingactionbutton;
|
||||
|
||||
import A.b;
|
||||
import A.e;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import h2.AbstractC0379a;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class ExtendedFloatingActionButton$ExtendedFloatingActionButtonBehavior<T> extends b {
|
||||
public ExtendedFloatingActionButton$ExtendedFloatingActionButtonBehavior() {
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final /* synthetic */ boolean e(View view) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final void g(e eVar) {
|
||||
if (eVar.h == 0) {
|
||||
eVar.h = 80;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean h(CoordinatorLayout coordinatorLayout, View view, View view2) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean k(CoordinatorLayout coordinatorLayout, View view, int i) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
public ExtendedFloatingActionButton$ExtendedFloatingActionButtonBehavior(Context context, AttributeSet attributeSet) {
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC0379a.h);
|
||||
obtainStyledAttributes.getBoolean(0, false);
|
||||
obtainStyledAttributes.getBoolean(1, true);
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.google.android.material.floatingactionbutton;
|
||||
|
||||
import A.b;
|
||||
import A.e;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import h2.AbstractC0379a;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class FloatingActionButton$BaseBehavior<T> extends b {
|
||||
public FloatingActionButton$BaseBehavior() {
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean e(View view) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final void g(e eVar) {
|
||||
if (eVar.h == 0) {
|
||||
eVar.h = 80;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean h(CoordinatorLayout coordinatorLayout, View view, View view2) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean k(CoordinatorLayout coordinatorLayout, View view, int i) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
public FloatingActionButton$BaseBehavior(Context context, AttributeSet attributeSet) {
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC0379a.i);
|
||||
obtainStyledAttributes.getBoolean(0, true);
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.google.android.material.floatingactionbutton;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class FloatingActionButton$Behavior extends FloatingActionButton$BaseBehavior<Object> {
|
||||
public FloatingActionButton$Behavior() {
|
||||
}
|
||||
|
||||
public FloatingActionButton$Behavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class BaselineLayout extends ViewGroup {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f5716a;
|
||||
|
||||
public BaselineLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet, 0);
|
||||
this.f5716a = -1;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public int getBaseline() {
|
||||
return this.f5716a;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final void onLayout(boolean z3, int i, int i4, int i5, int i6) {
|
||||
int childCount = getChildCount();
|
||||
int paddingLeft = getPaddingLeft();
|
||||
int paddingRight = ((i5 - i) - getPaddingRight()) - paddingLeft;
|
||||
int paddingTop = getPaddingTop();
|
||||
for (int i7 = 0; i7 < childCount; i7++) {
|
||||
View childAt = getChildAt(i7);
|
||||
if (childAt.getVisibility() != 8) {
|
||||
int measuredWidth = childAt.getMeasuredWidth();
|
||||
int measuredHeight = childAt.getMeasuredHeight();
|
||||
int i8 = ((paddingRight - measuredWidth) / 2) + paddingLeft;
|
||||
int baseline = (this.f5716a == -1 || childAt.getBaseline() == -1) ? paddingTop : (this.f5716a + paddingTop) - childAt.getBaseline();
|
||||
childAt.layout(i8, baseline, measuredWidth + i8, measuredHeight + baseline);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
int childCount = getChildCount();
|
||||
int i5 = 0;
|
||||
int i6 = 0;
|
||||
int i7 = 0;
|
||||
int i8 = -1;
|
||||
int i9 = -1;
|
||||
for (int i10 = 0; i10 < childCount; i10++) {
|
||||
View childAt = getChildAt(i10);
|
||||
if (childAt.getVisibility() != 8) {
|
||||
measureChild(childAt, i, i4);
|
||||
int baseline = childAt.getBaseline();
|
||||
if (baseline != -1) {
|
||||
i8 = Math.max(i8, baseline);
|
||||
i9 = Math.max(i9, childAt.getMeasuredHeight() - baseline);
|
||||
}
|
||||
i6 = Math.max(i6, childAt.getMeasuredWidth());
|
||||
i5 = Math.max(i5, childAt.getMeasuredHeight());
|
||||
i7 = View.combineMeasuredStates(i7, childAt.getMeasuredState());
|
||||
}
|
||||
}
|
||||
if (i8 != -1) {
|
||||
i5 = Math.max(i5, Math.max(i9, getPaddingBottom()) + i8);
|
||||
this.f5716a = i8;
|
||||
}
|
||||
setMeasuredDimension(View.resolveSizeAndState(Math.max(i6, getSuggestedMinimumWidth()), i, i7), View.resolveSizeAndState(Math.max(i5, getSuggestedMinimumHeight()), i4, i7 << 16));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import F0.g;
|
||||
import O.X;
|
||||
import W.b;
|
||||
import android.R;
|
||||
import android.content.Context;
|
||||
import android.os.Parcelable;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.widget.Checkable;
|
||||
import m.C0493w;
|
||||
import x2.C0658a;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class CheckableImageButton extends C0493w implements Checkable {
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public static final int[] f5717g = {R.attr.state_checked};
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public boolean f5718d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public boolean f5719e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public boolean f5720f;
|
||||
|
||||
public CheckableImageButton(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet, com.adif.elcanomovil.R.attr.imageButtonStyle);
|
||||
this.f5719e = true;
|
||||
this.f5720f = true;
|
||||
X.j(this, new g(this, 5));
|
||||
}
|
||||
|
||||
@Override // android.widget.Checkable
|
||||
public final boolean isChecked() {
|
||||
return this.f5718d;
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView, android.view.View
|
||||
public final int[] onCreateDrawableState(int i) {
|
||||
return this.f5718d ? View.mergeDrawableStates(super.onCreateDrawableState(i + 1), f5717g) : super.onCreateDrawableState(i);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onRestoreInstanceState(Parcelable parcelable) {
|
||||
if (!(parcelable instanceof C0658a)) {
|
||||
super.onRestoreInstanceState(parcelable);
|
||||
return;
|
||||
}
|
||||
C0658a c0658a = (C0658a) parcelable;
|
||||
super.onRestoreInstanceState(c0658a.f1880a);
|
||||
setChecked(c0658a.f8888c);
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r1v0, types: [android.os.Parcelable, W.b, x2.a] */
|
||||
@Override // android.view.View
|
||||
public final Parcelable onSaveInstanceState() {
|
||||
?? bVar = new b(super.onSaveInstanceState());
|
||||
bVar.f8888c = this.f5718d;
|
||||
return bVar;
|
||||
}
|
||||
|
||||
public void setCheckable(boolean z3) {
|
||||
if (this.f5719e != z3) {
|
||||
this.f5719e = z3;
|
||||
sendAccessibilityEvent(0);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.Checkable
|
||||
public void setChecked(boolean z3) {
|
||||
if (!this.f5719e || this.f5718d == z3) {
|
||||
return;
|
||||
}
|
||||
this.f5718d = z3;
|
||||
refreshDrawableState();
|
||||
sendAccessibilityEvent(2048);
|
||||
}
|
||||
|
||||
public void setPressable(boolean z3) {
|
||||
this.f5720f = z3;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setPressed(boolean z3) {
|
||||
if (this.f5720f) {
|
||||
super.setPressed(z3);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.Checkable
|
||||
public final void toggle() {
|
||||
setChecked(!this.f5718d);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Canvas;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.FrameLayout;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class ClippableRoundedCornerLayout extends FrameLayout {
|
||||
public ClippableRoundedCornerLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final void dispatchDraw(Canvas canvas) {
|
||||
super.dispatchDraw(canvas);
|
||||
}
|
||||
|
||||
public float getCornerRadius() {
|
||||
return BitmapDescriptorFactory.HUE_RED;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,248 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import F.j;
|
||||
import F.q;
|
||||
import F0.g;
|
||||
import H.a;
|
||||
import O.X;
|
||||
import android.R;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.Resources;
|
||||
import android.graphics.drawable.ColorDrawable;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.StateListDrawable;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.TypedValue;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.ViewStub;
|
||||
import android.widget.CheckedTextView;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.LinearLayout;
|
||||
import java.util.WeakHashMap;
|
||||
import l.o;
|
||||
import l.z;
|
||||
import m.C0483q0;
|
||||
import m.W0;
|
||||
import x2.d;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class NavigationMenuItemView extends d implements z {
|
||||
|
||||
/* renamed from: G, reason: collision with root package name */
|
||||
public static final int[] f5721G = {R.attr.state_checked};
|
||||
|
||||
/* renamed from: A, reason: collision with root package name */
|
||||
public FrameLayout f5722A;
|
||||
|
||||
/* renamed from: B, reason: collision with root package name */
|
||||
public o f5723B;
|
||||
|
||||
/* renamed from: C, reason: collision with root package name */
|
||||
public ColorStateList f5724C;
|
||||
|
||||
/* renamed from: D, reason: collision with root package name */
|
||||
public boolean f5725D;
|
||||
|
||||
/* renamed from: E, reason: collision with root package name */
|
||||
public Drawable f5726E;
|
||||
|
||||
/* renamed from: F, reason: collision with root package name */
|
||||
public final g f5727F;
|
||||
|
||||
/* renamed from: v, reason: collision with root package name */
|
||||
public int f5728v;
|
||||
|
||||
/* renamed from: w, reason: collision with root package name */
|
||||
public boolean f5729w;
|
||||
|
||||
/* renamed from: x, reason: collision with root package name */
|
||||
public boolean f5730x;
|
||||
|
||||
/* renamed from: y, reason: collision with root package name */
|
||||
public final boolean f5731y;
|
||||
|
||||
/* renamed from: z, reason: collision with root package name */
|
||||
public final CheckedTextView f5732z;
|
||||
|
||||
public NavigationMenuItemView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.f5731y = true;
|
||||
g gVar = new g(this, 6);
|
||||
this.f5727F = gVar;
|
||||
setOrientation(0);
|
||||
LayoutInflater.from(context).inflate(com.adif.elcanomovil.R.layout.design_navigation_menu_item, (ViewGroup) this, true);
|
||||
setIconSize(context.getResources().getDimensionPixelSize(com.adif.elcanomovil.R.dimen.design_navigation_icon_size));
|
||||
CheckedTextView checkedTextView = (CheckedTextView) findViewById(com.adif.elcanomovil.R.id.design_menu_item_text);
|
||||
this.f5732z = checkedTextView;
|
||||
checkedTextView.setDuplicateParentStateEnabled(true);
|
||||
X.j(checkedTextView, gVar);
|
||||
}
|
||||
|
||||
private void setActionView(View view) {
|
||||
if (view != null) {
|
||||
if (this.f5722A == null) {
|
||||
this.f5722A = (FrameLayout) ((ViewStub) findViewById(com.adif.elcanomovil.R.id.design_menu_item_action_area_stub)).inflate();
|
||||
}
|
||||
if (view.getParent() != null) {
|
||||
((ViewGroup) view.getParent()).removeView(view);
|
||||
}
|
||||
this.f5722A.removeAllViews();
|
||||
this.f5722A.addView(view);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // l.z
|
||||
public final void b(o oVar) {
|
||||
StateListDrawable stateListDrawable;
|
||||
this.f5723B = oVar;
|
||||
int i = oVar.f7268a;
|
||||
if (i > 0) {
|
||||
setId(i);
|
||||
}
|
||||
setVisibility(oVar.isVisible() ? 0 : 8);
|
||||
if (getBackground() == null) {
|
||||
TypedValue typedValue = new TypedValue();
|
||||
if (getContext().getTheme().resolveAttribute(com.adif.elcanomovil.R.attr.colorControlHighlight, typedValue, true)) {
|
||||
stateListDrawable = new StateListDrawable();
|
||||
stateListDrawable.addState(f5721G, new ColorDrawable(typedValue.data));
|
||||
stateListDrawable.addState(ViewGroup.EMPTY_STATE_SET, new ColorDrawable(0));
|
||||
} else {
|
||||
stateListDrawable = null;
|
||||
}
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
setBackground(stateListDrawable);
|
||||
}
|
||||
setCheckable(oVar.isCheckable());
|
||||
setChecked(oVar.isChecked());
|
||||
setEnabled(oVar.isEnabled());
|
||||
setTitle(oVar.f7272e);
|
||||
setIcon(oVar.getIcon());
|
||||
setActionView(oVar.getActionView());
|
||||
setContentDescription(oVar.f7281q);
|
||||
W0.a(this, oVar.f7282r);
|
||||
o oVar2 = this.f5723B;
|
||||
CharSequence charSequence = oVar2.f7272e;
|
||||
CheckedTextView checkedTextView = this.f5732z;
|
||||
if (charSequence == null && oVar2.getIcon() == null && this.f5723B.getActionView() != null) {
|
||||
checkedTextView.setVisibility(8);
|
||||
FrameLayout frameLayout = this.f5722A;
|
||||
if (frameLayout != null) {
|
||||
C0483q0 c0483q0 = (C0483q0) frameLayout.getLayoutParams();
|
||||
((LinearLayout.LayoutParams) c0483q0).width = -1;
|
||||
this.f5722A.setLayoutParams(c0483q0);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
checkedTextView.setVisibility(0);
|
||||
FrameLayout frameLayout2 = this.f5722A;
|
||||
if (frameLayout2 != null) {
|
||||
C0483q0 c0483q02 = (C0483q0) frameLayout2.getLayoutParams();
|
||||
((LinearLayout.LayoutParams) c0483q02).width = -2;
|
||||
this.f5722A.setLayoutParams(c0483q02);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // l.z
|
||||
public o getItemData() {
|
||||
return this.f5723B;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final int[] onCreateDrawableState(int i) {
|
||||
int[] onCreateDrawableState = super.onCreateDrawableState(i + 1);
|
||||
o oVar = this.f5723B;
|
||||
if (oVar != null && oVar.isCheckable() && this.f5723B.isChecked()) {
|
||||
View.mergeDrawableStates(onCreateDrawableState, f5721G);
|
||||
}
|
||||
return onCreateDrawableState;
|
||||
}
|
||||
|
||||
public void setCheckable(boolean z3) {
|
||||
refreshDrawableState();
|
||||
if (this.f5730x != z3) {
|
||||
this.f5730x = z3;
|
||||
this.f5727F.h(this.f5732z, 2048);
|
||||
}
|
||||
}
|
||||
|
||||
public void setChecked(boolean z3) {
|
||||
refreshDrawableState();
|
||||
CheckedTextView checkedTextView = this.f5732z;
|
||||
checkedTextView.setChecked(z3);
|
||||
checkedTextView.setTypeface(checkedTextView.getTypeface(), (z3 && this.f5731y) ? 1 : 0);
|
||||
}
|
||||
|
||||
public void setHorizontalPadding(int i) {
|
||||
setPadding(i, getPaddingTop(), i, getPaddingBottom());
|
||||
}
|
||||
|
||||
public void setIcon(Drawable drawable) {
|
||||
if (drawable != null) {
|
||||
if (this.f5725D) {
|
||||
Drawable.ConstantState constantState = drawable.getConstantState();
|
||||
if (constantState != null) {
|
||||
drawable = constantState.newDrawable();
|
||||
}
|
||||
drawable = drawable.mutate();
|
||||
a.h(drawable, this.f5724C);
|
||||
}
|
||||
int i = this.f5728v;
|
||||
drawable.setBounds(0, 0, i, i);
|
||||
} else if (this.f5729w) {
|
||||
if (this.f5726E == null) {
|
||||
Resources resources = getResources();
|
||||
Resources.Theme theme = getContext().getTheme();
|
||||
ThreadLocal threadLocal = q.f503a;
|
||||
Drawable a2 = j.a(resources, com.adif.elcanomovil.R.drawable.navigation_empty_icon, theme);
|
||||
this.f5726E = a2;
|
||||
if (a2 != null) {
|
||||
int i4 = this.f5728v;
|
||||
a2.setBounds(0, 0, i4, i4);
|
||||
}
|
||||
}
|
||||
drawable = this.f5726E;
|
||||
}
|
||||
this.f5732z.setCompoundDrawablesRelative(drawable, null, null, null);
|
||||
}
|
||||
|
||||
public void setIconPadding(int i) {
|
||||
this.f5732z.setCompoundDrawablePadding(i);
|
||||
}
|
||||
|
||||
public void setIconSize(int i) {
|
||||
this.f5728v = i;
|
||||
}
|
||||
|
||||
public void setIconTintList(ColorStateList colorStateList) {
|
||||
this.f5724C = colorStateList;
|
||||
this.f5725D = colorStateList != null;
|
||||
o oVar = this.f5723B;
|
||||
if (oVar != null) {
|
||||
setIcon(oVar.getIcon());
|
||||
}
|
||||
}
|
||||
|
||||
public void setMaxLines(int i) {
|
||||
this.f5732z.setMaxLines(i);
|
||||
}
|
||||
|
||||
public void setNeedsEmptyIcon(boolean z3) {
|
||||
this.f5729w = z3;
|
||||
}
|
||||
|
||||
public void setTextAppearance(int i) {
|
||||
this.f5732z.setTextAppearance(i);
|
||||
}
|
||||
|
||||
public void setTextColor(ColorStateList colorStateList) {
|
||||
this.f5732z.setTextColor(colorStateList);
|
||||
}
|
||||
|
||||
public void setTitle(CharSequence charSequence) {
|
||||
this.f5732z.setText(charSequence);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import androidx.recyclerview.widget.LinearLayoutManager;
|
||||
import androidx.recyclerview.widget.RecyclerView;
|
||||
import l.InterfaceC0418A;
|
||||
import l.m;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class NavigationMenuView extends RecyclerView implements InterfaceC0418A {
|
||||
public NavigationMenuView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet, 0);
|
||||
setLayoutManager(new LinearLayoutManager(1));
|
||||
}
|
||||
|
||||
@Override // l.InterfaceC0418A
|
||||
public final void a(m mVar) {
|
||||
}
|
||||
|
||||
public int getWindowAnimations() {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.google.android.material.internal;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.widget.FrameLayout;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class TouchObserverFrameLayout extends FrameLayout {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public View.OnTouchListener f5733a;
|
||||
|
||||
public TouchObserverFrameLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public final boolean onInterceptTouchEvent(MotionEvent motionEvent) {
|
||||
View.OnTouchListener onTouchListener = this.f5733a;
|
||||
if (onTouchListener != null) {
|
||||
onTouchListener.onTouch(this, motionEvent);
|
||||
}
|
||||
return super.onInterceptTouchEvent(motionEvent);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setOnTouchListener(View.OnTouchListener onTouchListener) {
|
||||
this.f5733a = onTouchListener;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package com.google.android.material.search;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class SearchBar$ScrollingViewBehavior extends AppBarLayout$ScrollingViewBehavior {
|
||||
public SearchBar$ScrollingViewBehavior() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.appbar.AppBarLayout$ScrollingViewBehavior, A.b
|
||||
public final boolean h(CoordinatorLayout coordinatorLayout, View view, View view2) {
|
||||
super.h(coordinatorLayout, view, view2);
|
||||
return false;
|
||||
}
|
||||
|
||||
public SearchBar$ScrollingViewBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.google.android.material.search;
|
||||
|
||||
import A.b;
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class SearchView$Behavior extends b {
|
||||
public SearchView$Behavior() {
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean h(CoordinatorLayout coordinatorLayout, View view, View view2) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
public SearchView$Behavior(Context context, AttributeSet attributeSet) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,724 @@
|
||||
package com.google.android.material.sidesheet;
|
||||
|
||||
import A.b;
|
||||
import A.e;
|
||||
import B0.q;
|
||||
import C.w;
|
||||
import E2.g;
|
||||
import E2.j;
|
||||
import E2.k;
|
||||
import F.o;
|
||||
import F2.a;
|
||||
import O.L;
|
||||
import O.Q;
|
||||
import O.X;
|
||||
import P.f;
|
||||
import P.t;
|
||||
import X.d;
|
||||
import a.AbstractC0105a;
|
||||
import android.animation.AnimatorSet;
|
||||
import android.animation.ObjectAnimator;
|
||||
import android.animation.ValueAnimator;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.TypedArray;
|
||||
import android.os.Build;
|
||||
import android.os.Parcelable;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.util.Property;
|
||||
import android.util.TypedValue;
|
||||
import android.view.AbsSavedState;
|
||||
import android.view.Gravity;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.VelocityTracker;
|
||||
import android.view.View;
|
||||
import android.view.ViewConfiguration;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.ViewParent;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import b.C0253b;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import com.google.android.material.sidesheet.SideSheetBehavior;
|
||||
import h2.AbstractC0379a;
|
||||
import i2.AbstractC0396a;
|
||||
import j0.C0399a;
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashSet;
|
||||
import java.util.WeakHashMap;
|
||||
import m3.l;
|
||||
import y2.InterfaceC0663b;
|
||||
import y2.h;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class SideSheetBehavior<V extends View> extends b implements InterfaceC0663b {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public l f5734a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final g f5735b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final ColorStateList f5736c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final k f5737d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final F2.g f5738e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final float f5739f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final boolean f5740g;
|
||||
public int h;
|
||||
public d i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public boolean f5741j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public final float f5742k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public int f5743l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public int f5744m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public int f5745n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public int f5746o;
|
||||
public WeakReference p;
|
||||
|
||||
/* renamed from: q, reason: collision with root package name */
|
||||
public WeakReference f5747q;
|
||||
|
||||
/* renamed from: r, reason: collision with root package name */
|
||||
public final int f5748r;
|
||||
|
||||
/* renamed from: s, reason: collision with root package name */
|
||||
public VelocityTracker f5749s;
|
||||
|
||||
/* renamed from: t, reason: collision with root package name */
|
||||
public h f5750t;
|
||||
|
||||
/* renamed from: u, reason: collision with root package name */
|
||||
public int f5751u;
|
||||
|
||||
/* renamed from: v, reason: collision with root package name */
|
||||
public final LinkedHashSet f5752v;
|
||||
|
||||
/* renamed from: w, reason: collision with root package name */
|
||||
public final F2.d f5753w;
|
||||
|
||||
public SideSheetBehavior() {
|
||||
this.f5738e = new F2.g(this);
|
||||
this.f5740g = true;
|
||||
this.h = 5;
|
||||
this.f5742k = 0.1f;
|
||||
this.f5748r = -1;
|
||||
this.f5752v = new LinkedHashSet();
|
||||
this.f5753w = new F2.d(this, 0);
|
||||
}
|
||||
|
||||
@Override // y2.InterfaceC0663b
|
||||
public final void a() {
|
||||
int i;
|
||||
final ViewGroup.MarginLayoutParams marginLayoutParams;
|
||||
h hVar = this.f5750t;
|
||||
if (hVar == null) {
|
||||
return;
|
||||
}
|
||||
C0253b c0253b = hVar.f8988f;
|
||||
ValueAnimator.AnimatorUpdateListener animatorUpdateListener = null;
|
||||
hVar.f8988f = null;
|
||||
int i4 = 5;
|
||||
if (c0253b == null || Build.VERSION.SDK_INT < 34) {
|
||||
v(5);
|
||||
return;
|
||||
}
|
||||
l lVar = this.f5734a;
|
||||
if (lVar != null && lVar.B() != 0) {
|
||||
i4 = 3;
|
||||
}
|
||||
q qVar = new q(this, 2);
|
||||
WeakReference weakReference = this.f5747q;
|
||||
final View view = weakReference != null ? (View) weakReference.get() : null;
|
||||
if (view != null && (marginLayoutParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams()) != null) {
|
||||
final int s4 = this.f5734a.s(marginLayoutParams);
|
||||
animatorUpdateListener = new ValueAnimator.AnimatorUpdateListener() { // from class: F2.c
|
||||
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
||||
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
|
||||
SideSheetBehavior.this.f5734a.c0(marginLayoutParams, AbstractC0396a.c(valueAnimator.getAnimatedFraction(), s4, 0));
|
||||
view.requestLayout();
|
||||
}
|
||||
};
|
||||
}
|
||||
boolean z3 = c0253b.f4109d == 0;
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
View view2 = hVar.f8984b;
|
||||
boolean z4 = (Gravity.getAbsoluteGravity(i4, view2.getLayoutDirection()) & 3) == 3;
|
||||
float scaleX = view2.getScaleX() * view2.getWidth();
|
||||
ViewGroup.LayoutParams layoutParams = view2.getLayoutParams();
|
||||
if (layoutParams instanceof ViewGroup.MarginLayoutParams) {
|
||||
ViewGroup.MarginLayoutParams marginLayoutParams2 = (ViewGroup.MarginLayoutParams) layoutParams;
|
||||
i = z4 ? marginLayoutParams2.leftMargin : marginLayoutParams2.rightMargin;
|
||||
} else {
|
||||
i = 0;
|
||||
}
|
||||
float f2 = scaleX + i;
|
||||
Property property = View.TRANSLATION_X;
|
||||
if (z4) {
|
||||
f2 = -f2;
|
||||
}
|
||||
ObjectAnimator ofFloat = ObjectAnimator.ofFloat(view2, (Property<View, Float>) property, f2);
|
||||
if (animatorUpdateListener != null) {
|
||||
ofFloat.addUpdateListener(animatorUpdateListener);
|
||||
}
|
||||
ofFloat.setInterpolator(new C0399a(1));
|
||||
ofFloat.setDuration(AbstractC0396a.c(c0253b.f4108c, hVar.f8985c, hVar.f8986d));
|
||||
ofFloat.addListener(new y2.g(hVar, z3, i4));
|
||||
ofFloat.addListener(qVar);
|
||||
ofFloat.start();
|
||||
}
|
||||
|
||||
@Override // y2.InterfaceC0663b
|
||||
public final void b(C0253b c0253b) {
|
||||
h hVar = this.f5750t;
|
||||
if (hVar == null) {
|
||||
return;
|
||||
}
|
||||
hVar.f8988f = c0253b;
|
||||
}
|
||||
|
||||
@Override // y2.InterfaceC0663b
|
||||
public final void c(C0253b c0253b) {
|
||||
ViewGroup.MarginLayoutParams marginLayoutParams;
|
||||
h hVar = this.f5750t;
|
||||
if (hVar == null) {
|
||||
return;
|
||||
}
|
||||
l lVar = this.f5734a;
|
||||
int i = (lVar == null || lVar.B() == 0) ? 5 : 3;
|
||||
if (hVar.f8988f == null) {
|
||||
Log.w("MaterialBackHelper", "Must call startBackProgress() before updateBackProgress()");
|
||||
}
|
||||
C0253b c0253b2 = hVar.f8988f;
|
||||
hVar.f8988f = c0253b;
|
||||
if (c0253b2 != null) {
|
||||
hVar.a(c0253b.f4108c, c0253b.f4109d == 0, i);
|
||||
}
|
||||
WeakReference weakReference = this.p;
|
||||
if (weakReference == null || weakReference.get() == null) {
|
||||
return;
|
||||
}
|
||||
View view = (View) this.p.get();
|
||||
WeakReference weakReference2 = this.f5747q;
|
||||
View view2 = weakReference2 != null ? (View) weakReference2.get() : null;
|
||||
if (view2 == null || (marginLayoutParams = (ViewGroup.MarginLayoutParams) view2.getLayoutParams()) == null) {
|
||||
return;
|
||||
}
|
||||
this.f5734a.c0(marginLayoutParams, (int) ((view.getScaleX() * this.f5743l) + this.f5746o));
|
||||
view2.requestLayout();
|
||||
}
|
||||
|
||||
@Override // y2.InterfaceC0663b
|
||||
public final void d() {
|
||||
h hVar = this.f5750t;
|
||||
if (hVar == null) {
|
||||
return;
|
||||
}
|
||||
if (hVar.f8988f == null) {
|
||||
Log.w("MaterialBackHelper", "Must call startBackProgress() and updateBackProgress() before cancelBackProgress()");
|
||||
}
|
||||
C0253b c0253b = hVar.f8988f;
|
||||
hVar.f8988f = null;
|
||||
if (c0253b == null) {
|
||||
return;
|
||||
}
|
||||
AnimatorSet animatorSet = new AnimatorSet();
|
||||
View view = hVar.f8984b;
|
||||
animatorSet.playTogether(ObjectAnimator.ofFloat(view, (Property<View, Float>) View.SCALE_X, 1.0f), ObjectAnimator.ofFloat(view, (Property<View, Float>) View.SCALE_Y, 1.0f));
|
||||
if (view instanceof ViewGroup) {
|
||||
ViewGroup viewGroup = (ViewGroup) view;
|
||||
for (int i = 0; i < viewGroup.getChildCount(); i++) {
|
||||
animatorSet.playTogether(ObjectAnimator.ofFloat(viewGroup.getChildAt(i), (Property<View, Float>) View.SCALE_Y, 1.0f));
|
||||
}
|
||||
}
|
||||
animatorSet.setDuration(hVar.f8987e);
|
||||
animatorSet.start();
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final void g(e eVar) {
|
||||
this.p = null;
|
||||
this.i = null;
|
||||
this.f5750t = null;
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final void i() {
|
||||
this.p = null;
|
||||
this.i = null;
|
||||
this.f5750t = null;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:4:0x0010, code lost:
|
||||
|
||||
if (O.Q.b(r4) != null) goto L6;
|
||||
*/
|
||||
@Override // A.b
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final boolean j(androidx.coordinatorlayout.widget.CoordinatorLayout r3, android.view.View r4, android.view.MotionEvent r5) {
|
||||
/*
|
||||
r2 = this;
|
||||
boolean r3 = r4.isShown()
|
||||
r0 = 1
|
||||
r1 = 0
|
||||
if (r3 != 0) goto L12
|
||||
java.util.WeakHashMap r3 = O.X.f1226a
|
||||
java.lang.CharSequence r3 = O.Q.b(r4)
|
||||
java.lang.CharSequence r3 = (java.lang.CharSequence) r3
|
||||
if (r3 == 0) goto L5b
|
||||
L12:
|
||||
boolean r3 = r2.f5740g
|
||||
if (r3 == 0) goto L5b
|
||||
int r3 = r5.getActionMasked()
|
||||
if (r3 != 0) goto L26
|
||||
android.view.VelocityTracker r4 = r2.f5749s
|
||||
if (r4 == 0) goto L26
|
||||
r4.recycle()
|
||||
r4 = 0
|
||||
r2.f5749s = r4
|
||||
L26:
|
||||
android.view.VelocityTracker r4 = r2.f5749s
|
||||
if (r4 != 0) goto L30
|
||||
android.view.VelocityTracker r4 = android.view.VelocityTracker.obtain()
|
||||
r2.f5749s = r4
|
||||
L30:
|
||||
android.view.VelocityTracker r4 = r2.f5749s
|
||||
r4.addMovement(r5)
|
||||
if (r3 == 0) goto L44
|
||||
if (r3 == r0) goto L3d
|
||||
r4 = 3
|
||||
if (r3 == r4) goto L3d
|
||||
goto L4b
|
||||
L3d:
|
||||
boolean r3 = r2.f5741j
|
||||
if (r3 == 0) goto L4b
|
||||
r2.f5741j = r1
|
||||
return r1
|
||||
L44:
|
||||
float r3 = r5.getX()
|
||||
int r3 = (int) r3
|
||||
r2.f5751u = r3
|
||||
L4b:
|
||||
boolean r3 = r2.f5741j
|
||||
if (r3 != 0) goto L5a
|
||||
X.d r2 = r2.i
|
||||
if (r2 == 0) goto L5a
|
||||
boolean r2 = r2.p(r5)
|
||||
if (r2 == 0) goto L5a
|
||||
return r0
|
||||
L5a:
|
||||
return r1
|
||||
L5b:
|
||||
r2.f5741j = r0
|
||||
return r1
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.sidesheet.SideSheetBehavior.j(androidx.coordinatorlayout.widget.CoordinatorLayout, android.view.View, android.view.MotionEvent):boolean");
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean k(CoordinatorLayout coordinatorLayout, View view, int i) {
|
||||
View view2;
|
||||
View view3;
|
||||
int i4;
|
||||
View findViewById;
|
||||
int i5 = 0;
|
||||
int i6 = 1;
|
||||
g gVar = this.f5735b;
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
if (coordinatorLayout.getFitsSystemWindows() && !view.getFitsSystemWindows()) {
|
||||
view.setFitsSystemWindows(true);
|
||||
}
|
||||
if (this.p == null) {
|
||||
this.p = new WeakReference(view);
|
||||
this.f5750t = new h(view);
|
||||
if (gVar != null) {
|
||||
view.setBackground(gVar);
|
||||
float f2 = this.f5739f;
|
||||
if (f2 == -1.0f) {
|
||||
f2 = L.i(view);
|
||||
}
|
||||
gVar.i(f2);
|
||||
} else {
|
||||
ColorStateList colorStateList = this.f5736c;
|
||||
if (colorStateList != null) {
|
||||
L.q(view, colorStateList);
|
||||
}
|
||||
}
|
||||
int i7 = this.h == 5 ? 4 : 0;
|
||||
if (view.getVisibility() != i7) {
|
||||
view.setVisibility(i7);
|
||||
}
|
||||
z();
|
||||
if (view.getImportantForAccessibility() == 0) {
|
||||
view.setImportantForAccessibility(1);
|
||||
}
|
||||
if (Q.b(view) == null) {
|
||||
X.k(view, view.getResources().getString(R.string.side_sheet_accessibility_pane_title));
|
||||
}
|
||||
}
|
||||
int i8 = Gravity.getAbsoluteGravity(((e) view.getLayoutParams()).f11c, i) == 3 ? 1 : 0;
|
||||
l lVar = this.f5734a;
|
||||
if (lVar == null || lVar.B() != i8) {
|
||||
k kVar = this.f5737d;
|
||||
e eVar = null;
|
||||
if (i8 == 0) {
|
||||
this.f5734a = new a(this, i6);
|
||||
if (kVar != null) {
|
||||
WeakReference weakReference = this.p;
|
||||
if (weakReference != null && (view3 = (View) weakReference.get()) != null && (view3.getLayoutParams() instanceof e)) {
|
||||
eVar = (e) view3.getLayoutParams();
|
||||
}
|
||||
if (eVar == null || ((ViewGroup.MarginLayoutParams) eVar).rightMargin <= 0) {
|
||||
j e4 = kVar.e();
|
||||
e4.f423f = new E2.a(BitmapDescriptorFactory.HUE_RED);
|
||||
e4.f424g = new E2.a(BitmapDescriptorFactory.HUE_RED);
|
||||
k a2 = e4.a();
|
||||
if (gVar != null) {
|
||||
gVar.setShapeAppearanceModel(a2);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (i8 != 1) {
|
||||
throw new IllegalArgumentException(w.i(i8, "Invalid sheet edge position value: ", ". Must be 0 or 1."));
|
||||
}
|
||||
this.f5734a = new a(this, i5);
|
||||
if (kVar != null) {
|
||||
WeakReference weakReference2 = this.p;
|
||||
if (weakReference2 != null && (view2 = (View) weakReference2.get()) != null && (view2.getLayoutParams() instanceof e)) {
|
||||
eVar = (e) view2.getLayoutParams();
|
||||
}
|
||||
if (eVar == null || ((ViewGroup.MarginLayoutParams) eVar).leftMargin <= 0) {
|
||||
j e5 = kVar.e();
|
||||
e5.f422e = new E2.a(BitmapDescriptorFactory.HUE_RED);
|
||||
e5.h = new E2.a(BitmapDescriptorFactory.HUE_RED);
|
||||
k a4 = e5.a();
|
||||
if (gVar != null) {
|
||||
gVar.setShapeAppearanceModel(a4);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.i == null) {
|
||||
this.i = new d(coordinatorLayout.getContext(), coordinatorLayout, this.f5753w);
|
||||
}
|
||||
int z3 = this.f5734a.z(view);
|
||||
coordinatorLayout.q(view, i);
|
||||
this.f5744m = coordinatorLayout.getWidth();
|
||||
this.f5745n = this.f5734a.A(coordinatorLayout);
|
||||
this.f5743l = view.getWidth();
|
||||
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
|
||||
this.f5746o = marginLayoutParams != null ? this.f5734a.e(marginLayoutParams) : 0;
|
||||
int i9 = this.h;
|
||||
if (i9 == 1 || i9 == 2) {
|
||||
i5 = z3 - this.f5734a.z(view);
|
||||
} else if (i9 != 3) {
|
||||
if (i9 != 5) {
|
||||
throw new IllegalStateException("Unexpected value: " + this.h);
|
||||
}
|
||||
i5 = this.f5734a.v();
|
||||
}
|
||||
view.offsetLeftAndRight(i5);
|
||||
if (this.f5747q == null && (i4 = this.f5748r) != -1 && (findViewById = coordinatorLayout.findViewById(i4)) != null) {
|
||||
this.f5747q = new WeakReference(findViewById);
|
||||
}
|
||||
Iterator it = this.f5752v.iterator();
|
||||
while (it.hasNext()) {
|
||||
if (it.next() != null) {
|
||||
throw new ClassCastException();
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean l(CoordinatorLayout coordinatorLayout, View view, int i, int i4, int i5) {
|
||||
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) view.getLayoutParams();
|
||||
view.measure(ViewGroup.getChildMeasureSpec(i, coordinatorLayout.getPaddingRight() + coordinatorLayout.getPaddingLeft() + marginLayoutParams.leftMargin + marginLayoutParams.rightMargin + i4, marginLayoutParams.width), ViewGroup.getChildMeasureSpec(i5, coordinatorLayout.getPaddingBottom() + coordinatorLayout.getPaddingTop() + marginLayoutParams.topMargin + marginLayoutParams.bottomMargin, marginLayoutParams.height));
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final void q(View view, Parcelable parcelable) {
|
||||
int i = ((F2.e) parcelable).f548c;
|
||||
if (i == 1 || i == 2) {
|
||||
i = 5;
|
||||
}
|
||||
this.h = i;
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final Parcelable r(View view) {
|
||||
AbsSavedState absSavedState = View.BaseSavedState.EMPTY_STATE;
|
||||
return new F2.e(this);
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean u(View view, MotionEvent motionEvent) {
|
||||
VelocityTracker velocityTracker;
|
||||
if (!view.isShown()) {
|
||||
return false;
|
||||
}
|
||||
int actionMasked = motionEvent.getActionMasked();
|
||||
if (this.h == 1 && actionMasked == 0) {
|
||||
return true;
|
||||
}
|
||||
if (x()) {
|
||||
this.i.j(motionEvent);
|
||||
}
|
||||
if (actionMasked == 0 && (velocityTracker = this.f5749s) != null) {
|
||||
velocityTracker.recycle();
|
||||
this.f5749s = null;
|
||||
}
|
||||
if (this.f5749s == null) {
|
||||
this.f5749s = VelocityTracker.obtain();
|
||||
}
|
||||
this.f5749s.addMovement(motionEvent);
|
||||
if (x() && actionMasked == 2 && !this.f5741j && x()) {
|
||||
float abs = Math.abs(this.f5751u - motionEvent.getX());
|
||||
d dVar = this.i;
|
||||
if (abs > dVar.f1992b) {
|
||||
dVar.b(view, motionEvent.getPointerId(motionEvent.getActionIndex()));
|
||||
}
|
||||
}
|
||||
return !this.f5741j;
|
||||
}
|
||||
|
||||
public final void v(int i) {
|
||||
if (i == 1 || i == 2) {
|
||||
throw new IllegalArgumentException(w.r(new StringBuilder("STATE_"), i == 1 ? "DRAGGING" : "SETTLING", " should not be set externally."));
|
||||
}
|
||||
WeakReference weakReference = this.p;
|
||||
if (weakReference == null || weakReference.get() == null) {
|
||||
w(i);
|
||||
return;
|
||||
}
|
||||
View view = (View) this.p.get();
|
||||
o oVar = new o(i, 1, this);
|
||||
ViewParent parent = view.getParent();
|
||||
if (parent != null && parent.isLayoutRequested()) {
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
if (view.isAttachedToWindow()) {
|
||||
view.post(oVar);
|
||||
return;
|
||||
}
|
||||
}
|
||||
oVar.run();
|
||||
}
|
||||
|
||||
public final void w(int i) {
|
||||
View view;
|
||||
if (this.h == i) {
|
||||
return;
|
||||
}
|
||||
this.h = i;
|
||||
WeakReference weakReference = this.p;
|
||||
if (weakReference == null || (view = (View) weakReference.get()) == null) {
|
||||
return;
|
||||
}
|
||||
int i4 = this.h == 5 ? 4 : 0;
|
||||
if (view.getVisibility() != i4) {
|
||||
view.setVisibility(i4);
|
||||
}
|
||||
Iterator it = this.f5752v.iterator();
|
||||
if (it.hasNext()) {
|
||||
throw w.g(it);
|
||||
}
|
||||
z();
|
||||
}
|
||||
|
||||
public final boolean x() {
|
||||
if (this.i != null) {
|
||||
return this.f5740g || this.h == 1;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:10:0x002d, code lost:
|
||||
|
||||
if (r1.o(r0, r3.getTop()) != false) goto L24;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:11:0x004d, code lost:
|
||||
|
||||
w(2);
|
||||
r2.f5738e.a(r4);
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:12:0x0056, code lost:
|
||||
|
||||
return;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:21:0x004b, code lost:
|
||||
|
||||
if (r3 != false) goto L24;
|
||||
*/
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final void y(android.view.View r3, int r4, boolean r5) {
|
||||
/*
|
||||
r2 = this;
|
||||
r0 = 3
|
||||
if (r4 == r0) goto L19
|
||||
r0 = 5
|
||||
if (r4 != r0) goto Ld
|
||||
m3.l r0 = r2.f5734a
|
||||
int r0 = r0.v()
|
||||
goto L1f
|
||||
Ld:
|
||||
java.lang.IllegalArgumentException r2 = new java.lang.IllegalArgumentException
|
||||
java.lang.String r3 = "Invalid state to get outer edge offset: "
|
||||
java.lang.String r3 = com.google.android.gms.measurement.internal.a.l(r4, r3)
|
||||
r2.<init>(r3)
|
||||
throw r2
|
||||
L19:
|
||||
m3.l r0 = r2.f5734a
|
||||
int r0 = r0.t()
|
||||
L1f:
|
||||
X.d r1 = r2.i
|
||||
if (r1 == 0) goto L57
|
||||
if (r5 == 0) goto L30
|
||||
int r3 = r3.getTop()
|
||||
boolean r3 = r1.o(r0, r3)
|
||||
if (r3 == 0) goto L57
|
||||
goto L4d
|
||||
L30:
|
||||
int r5 = r3.getTop()
|
||||
r1.f2005r = r3
|
||||
r3 = -1
|
||||
r1.f1993c = r3
|
||||
r3 = 0
|
||||
boolean r3 = r1.h(r0, r5, r3, r3)
|
||||
if (r3 != 0) goto L4b
|
||||
int r5 = r1.f1991a
|
||||
if (r5 != 0) goto L4b
|
||||
android.view.View r5 = r1.f2005r
|
||||
if (r5 == 0) goto L4b
|
||||
r5 = 0
|
||||
r1.f2005r = r5
|
||||
L4b:
|
||||
if (r3 == 0) goto L57
|
||||
L4d:
|
||||
r3 = 2
|
||||
r2.w(r3)
|
||||
F2.g r2 = r2.f5738e
|
||||
r2.a(r4)
|
||||
return
|
||||
L57:
|
||||
r2.w(r4)
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: com.google.android.material.sidesheet.SideSheetBehavior.y(android.view.View, int, boolean):void");
|
||||
}
|
||||
|
||||
public final void z() {
|
||||
View view;
|
||||
WeakReference weakReference = this.p;
|
||||
if (weakReference == null || (view = (View) weakReference.get()) == null) {
|
||||
return;
|
||||
}
|
||||
X.h(view, 262144);
|
||||
X.e(view, 0);
|
||||
X.h(view, 1048576);
|
||||
X.e(view, 0);
|
||||
final int i = 5;
|
||||
if (this.h != 5) {
|
||||
X.i(view, f.f1333j, new t() { // from class: F2.b
|
||||
@Override // P.t
|
||||
public final boolean d(View view2) {
|
||||
SideSheetBehavior.this.v(i);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
final int i4 = 3;
|
||||
if (this.h != 3) {
|
||||
X.i(view, f.h, new t() { // from class: F2.b
|
||||
@Override // P.t
|
||||
public final boolean d(View view2) {
|
||||
SideSheetBehavior.this.v(i4);
|
||||
return true;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
public SideSheetBehavior(Context context, AttributeSet attributeSet) {
|
||||
this.f5738e = new F2.g(this);
|
||||
this.f5740g = true;
|
||||
this.h = 5;
|
||||
this.f5742k = 0.1f;
|
||||
this.f5748r = -1;
|
||||
this.f5752v = new LinkedHashSet();
|
||||
this.f5753w = new F2.d(this, 0);
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC0379a.f6747A);
|
||||
if (obtainStyledAttributes.hasValue(3)) {
|
||||
this.f5736c = AbstractC0105a.w(context, obtainStyledAttributes, 3);
|
||||
}
|
||||
if (obtainStyledAttributes.hasValue(6)) {
|
||||
this.f5737d = k.b(context, attributeSet, 0, 2132018235).a();
|
||||
}
|
||||
if (obtainStyledAttributes.hasValue(5)) {
|
||||
int resourceId = obtainStyledAttributes.getResourceId(5, -1);
|
||||
this.f5748r = resourceId;
|
||||
WeakReference weakReference = this.f5747q;
|
||||
if (weakReference != null) {
|
||||
weakReference.clear();
|
||||
}
|
||||
this.f5747q = null;
|
||||
WeakReference weakReference2 = this.p;
|
||||
if (weakReference2 != null) {
|
||||
View view = (View) weakReference2.get();
|
||||
if (resourceId != -1) {
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
if (view.isLaidOut()) {
|
||||
view.requestLayout();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
k kVar = this.f5737d;
|
||||
if (kVar != null) {
|
||||
g gVar = new g(kVar);
|
||||
this.f5735b = gVar;
|
||||
gVar.h(context);
|
||||
ColorStateList colorStateList = this.f5736c;
|
||||
if (colorStateList != null) {
|
||||
this.f5735b.j(colorStateList);
|
||||
} else {
|
||||
TypedValue typedValue = new TypedValue();
|
||||
context.getTheme().resolveAttribute(android.R.attr.colorBackground, typedValue, true);
|
||||
this.f5735b.setTint(typedValue.data);
|
||||
}
|
||||
}
|
||||
this.f5739f = obtainStyledAttributes.getDimension(2, -1.0f);
|
||||
this.f5740g = obtainStyledAttributes.getBoolean(4, true);
|
||||
obtainStyledAttributes.recycle();
|
||||
ViewConfiguration.get(context).getScaledMaximumFlingVelocity();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.google.android.material.snackbar;
|
||||
|
||||
import A.a;
|
||||
import A.j;
|
||||
import G2.g;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import com.google.android.material.behavior.SwipeDismissBehavior;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class BaseTransientBottomBar$Behavior extends SwipeDismissBehavior<View> {
|
||||
public final a i;
|
||||
|
||||
public BaseTransientBottomBar$Behavior() {
|
||||
a aVar = new a(4, false);
|
||||
this.f5535f = Math.min(Math.max(BitmapDescriptorFactory.HUE_RED, 0.1f), 1.0f);
|
||||
this.f5536g = Math.min(Math.max(BitmapDescriptorFactory.HUE_RED, 0.6f), 1.0f);
|
||||
this.f5534e = 0;
|
||||
this.i = aVar;
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.behavior.SwipeDismissBehavior, A.b
|
||||
public final boolean j(CoordinatorLayout coordinatorLayout, View view, MotionEvent motionEvent) {
|
||||
a aVar = this.i;
|
||||
aVar.getClass();
|
||||
int actionMasked = motionEvent.getActionMasked();
|
||||
if (actionMasked != 0) {
|
||||
if (actionMasked == 1 || actionMasked == 3) {
|
||||
j.h().n((g) aVar.f7b);
|
||||
}
|
||||
} else if (coordinatorLayout.o(view, (int) motionEvent.getX(), (int) motionEvent.getY())) {
|
||||
j.h().m((g) aVar.f7b);
|
||||
}
|
||||
return super.j(coordinatorLayout, view, motionEvent);
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.behavior.SwipeDismissBehavior
|
||||
public final boolean v(View view) {
|
||||
this.i.getClass();
|
||||
return view instanceof G2.j;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
package com.google.android.material.snackbar;
|
||||
|
||||
import G2.j;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class Snackbar$SnackbarLayout extends j {
|
||||
public Snackbar$SnackbarLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
@Override // G2.j, android.widget.FrameLayout, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
super.onMeasure(i, i4);
|
||||
int childCount = getChildCount();
|
||||
int measuredWidth = (getMeasuredWidth() - getPaddingLeft()) - getPaddingRight();
|
||||
for (int i5 = 0; i5 < childCount; i5++) {
|
||||
View childAt = getChildAt(i5);
|
||||
if (childAt.getLayoutParams().width == -1) {
|
||||
childAt.measure(View.MeasureSpec.makeMeasureSpec(measuredWidth, 1073741824), View.MeasureSpec.makeMeasureSpec(childAt.getMeasuredHeight(), 1073741824));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // G2.j, android.view.View
|
||||
public /* bridge */ /* synthetic */ void setBackground(Drawable drawable) {
|
||||
super.setBackground(drawable);
|
||||
}
|
||||
|
||||
@Override // G2.j, android.view.View
|
||||
public /* bridge */ /* synthetic */ void setBackgroundDrawable(Drawable drawable) {
|
||||
super.setBackgroundDrawable(drawable);
|
||||
}
|
||||
|
||||
@Override // G2.j, android.view.View
|
||||
public /* bridge */ /* synthetic */ void setBackgroundTintList(ColorStateList colorStateList) {
|
||||
super.setBackgroundTintList(colorStateList);
|
||||
}
|
||||
|
||||
@Override // G2.j, android.view.View
|
||||
public /* bridge */ /* synthetic */ void setBackgroundTintMode(PorterDuff.Mode mode) {
|
||||
super.setBackgroundTintMode(mode);
|
||||
}
|
||||
|
||||
@Override // G2.j, android.view.View
|
||||
public /* bridge */ /* synthetic */ void setLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
||||
super.setLayoutParams(layoutParams);
|
||||
}
|
||||
|
||||
@Override // G2.j, android.view.View
|
||||
public /* bridge */ /* synthetic */ void setOnClickListener(View.OnClickListener onClickListener) {
|
||||
super.setOnClickListener(onClickListener);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.google.android.material.snackbar;
|
||||
|
||||
import O.X;
|
||||
import a.AbstractC0106b;
|
||||
import android.animation.TimeInterpolator;
|
||||
import android.content.Context;
|
||||
import android.text.Layout;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.Button;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import com.adif.elcanomovil.R;
|
||||
import i2.AbstractC0396a;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class SnackbarContentLayout extends LinearLayout {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public TextView f5754a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public Button f5755b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final TimeInterpolator f5756c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public int f5757d;
|
||||
|
||||
public SnackbarContentLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.f5756c = AbstractC0106b.F(context, R.attr.motionEasingEmphasizedInterpolator, AbstractC0396a.f6816b);
|
||||
}
|
||||
|
||||
public final boolean a(int i, int i4, int i5) {
|
||||
boolean z3;
|
||||
if (i != getOrientation()) {
|
||||
setOrientation(i);
|
||||
z3 = true;
|
||||
} else {
|
||||
z3 = false;
|
||||
}
|
||||
if (this.f5754a.getPaddingTop() == i4 && this.f5754a.getPaddingBottom() == i5) {
|
||||
return z3;
|
||||
}
|
||||
TextView textView = this.f5754a;
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
if (textView.isPaddingRelative()) {
|
||||
textView.setPaddingRelative(textView.getPaddingStart(), i4, textView.getPaddingEnd(), i5);
|
||||
return true;
|
||||
}
|
||||
textView.setPadding(textView.getPaddingLeft(), i4, textView.getPaddingRight(), i5);
|
||||
return true;
|
||||
}
|
||||
|
||||
public Button getActionView() {
|
||||
return this.f5755b;
|
||||
}
|
||||
|
||||
public TextView getMessageView() {
|
||||
return this.f5754a;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onFinishInflate() {
|
||||
super.onFinishInflate();
|
||||
this.f5754a = (TextView) findViewById(R.id.snackbar_text);
|
||||
this.f5755b = (Button) findViewById(R.id.snackbar_action);
|
||||
}
|
||||
|
||||
@Override // android.widget.LinearLayout, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
super.onMeasure(i, i4);
|
||||
if (getOrientation() == 1) {
|
||||
return;
|
||||
}
|
||||
int dimensionPixelSize = getResources().getDimensionPixelSize(R.dimen.design_snackbar_padding_vertical_2lines);
|
||||
int dimensionPixelSize2 = getResources().getDimensionPixelSize(R.dimen.design_snackbar_padding_vertical);
|
||||
Layout layout = this.f5754a.getLayout();
|
||||
boolean z3 = layout != null && layout.getLineCount() > 1;
|
||||
if (!z3 || this.f5757d <= 0 || this.f5755b.getMeasuredWidth() <= this.f5757d) {
|
||||
if (!z3) {
|
||||
dimensionPixelSize = dimensionPixelSize2;
|
||||
}
|
||||
if (!a(0, dimensionPixelSize, dimensionPixelSize)) {
|
||||
return;
|
||||
}
|
||||
} else if (!a(1, dimensionPixelSize, dimensionPixelSize - dimensionPixelSize2)) {
|
||||
return;
|
||||
}
|
||||
super.onMeasure(i, i4);
|
||||
}
|
||||
|
||||
public void setMaxInlineActionWidth(int i) {
|
||||
this.f5757d = i;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,102 @@
|
||||
package com.google.android.material.switchmaterial;
|
||||
|
||||
import K2.a;
|
||||
import O.L;
|
||||
import O.X;
|
||||
import android.R;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewParent;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import h2.AbstractC0379a;
|
||||
import java.util.WeakHashMap;
|
||||
import m.J0;
|
||||
import m3.d;
|
||||
import w2.C0651a;
|
||||
import x2.m;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class SwitchMaterial extends J0 {
|
||||
|
||||
/* renamed from: a0, reason: collision with root package name */
|
||||
public static final int[][] f5758a0 = {new int[]{R.attr.state_enabled, R.attr.state_checked}, new int[]{R.attr.state_enabled, -16842912}, new int[]{-16842910, R.attr.state_checked}, new int[]{-16842910, -16842912}};
|
||||
|
||||
/* renamed from: T, reason: collision with root package name */
|
||||
public final C0651a f5759T;
|
||||
|
||||
/* renamed from: U, reason: collision with root package name */
|
||||
public ColorStateList f5760U;
|
||||
|
||||
/* renamed from: V, reason: collision with root package name */
|
||||
public ColorStateList f5761V;
|
||||
|
||||
/* renamed from: W, reason: collision with root package name */
|
||||
public boolean f5762W;
|
||||
|
||||
public SwitchMaterial(Context context, AttributeSet attributeSet) {
|
||||
super(a.a(context, attributeSet, com.adif.elcanomovil.R.attr.switchStyle, 2132018312), attributeSet);
|
||||
Context context2 = getContext();
|
||||
this.f5759T = new C0651a(context2);
|
||||
int[] iArr = AbstractC0379a.f6749C;
|
||||
m.a(context2, attributeSet, com.adif.elcanomovil.R.attr.switchStyle, 2132018312);
|
||||
m.b(context2, attributeSet, iArr, com.adif.elcanomovil.R.attr.switchStyle, 2132018312, new int[0]);
|
||||
TypedArray obtainStyledAttributes = context2.obtainStyledAttributes(attributeSet, iArr, com.adif.elcanomovil.R.attr.switchStyle, 2132018312);
|
||||
this.f5762W = obtainStyledAttributes.getBoolean(0, false);
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
|
||||
private ColorStateList getMaterialThemeColorsThumbTintList() {
|
||||
if (this.f5760U == null) {
|
||||
int t2 = d.t(this, com.adif.elcanomovil.R.attr.colorSurface);
|
||||
int t4 = d.t(this, com.adif.elcanomovil.R.attr.colorControlActivated);
|
||||
float dimension = getResources().getDimension(com.adif.elcanomovil.R.dimen.mtrl_switch_thumb_elevation);
|
||||
C0651a c0651a = this.f5759T;
|
||||
if (c0651a.f8806a) {
|
||||
float f2 = BitmapDescriptorFactory.HUE_RED;
|
||||
for (ViewParent parent = getParent(); parent instanceof View; parent = parent.getParent()) {
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
f2 += L.i((View) parent);
|
||||
}
|
||||
dimension += f2;
|
||||
}
|
||||
int a2 = c0651a.a(t2, dimension);
|
||||
this.f5760U = new ColorStateList(f5758a0, new int[]{d.y(1.0f, t2, t4), a2, d.y(0.38f, t2, t4), a2});
|
||||
}
|
||||
return this.f5760U;
|
||||
}
|
||||
|
||||
private ColorStateList getMaterialThemeColorsTrackTintList() {
|
||||
if (this.f5761V == null) {
|
||||
int t2 = d.t(this, com.adif.elcanomovil.R.attr.colorSurface);
|
||||
int t4 = d.t(this, com.adif.elcanomovil.R.attr.colorControlActivated);
|
||||
int t5 = d.t(this, com.adif.elcanomovil.R.attr.colorOnSurface);
|
||||
this.f5761V = new ColorStateList(f5758a0, new int[]{d.y(0.54f, t2, t4), d.y(0.32f, t2, t5), d.y(0.12f, t2, t4), d.y(0.12f, t2, t5)});
|
||||
}
|
||||
return this.f5761V;
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public final void onAttachedToWindow() {
|
||||
super.onAttachedToWindow();
|
||||
if (this.f5762W && getThumbTintList() == null) {
|
||||
setThumbTintList(getMaterialThemeColorsThumbTintList());
|
||||
}
|
||||
if (this.f5762W && getTrackTintList() == null) {
|
||||
setTrackTintList(getMaterialThemeColorsTrackTintList());
|
||||
}
|
||||
}
|
||||
|
||||
public void setUseMaterialThemeColors(boolean z3) {
|
||||
this.f5762W = z3;
|
||||
if (z3) {
|
||||
setThumbTintList(getMaterialThemeColorsThumbTintList());
|
||||
setTrackTintList(getMaterialThemeColorsTrackTintList());
|
||||
} else {
|
||||
setThumbTintList(null);
|
||||
setTrackTintList(null);
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,135 @@
|
||||
package com.google.android.material.textfield;
|
||||
|
||||
import K2.a;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Point;
|
||||
import android.graphics.Rect;
|
||||
import android.os.Build;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewParent;
|
||||
import android.view.accessibility.AccessibilityNodeInfo;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputConnection;
|
||||
import androidx.appcompat.widget.AppCompatEditText;
|
||||
import com.adif.elcanomovil.R;
|
||||
import h2.AbstractC0379a;
|
||||
import java.util.Locale;
|
||||
import x2.m;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class TextInputEditText extends AppCompatEditText {
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final Rect f5807f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public boolean f5808g;
|
||||
|
||||
public TextInputEditText(Context context, AttributeSet attributeSet) {
|
||||
super(a.a(context, attributeSet, R.attr.editTextStyle, 0), attributeSet, 0);
|
||||
this.f5807f = new Rect();
|
||||
int[] iArr = AbstractC0379a.f6752F;
|
||||
m.a(context, attributeSet, R.attr.editTextStyle, 2132018092);
|
||||
m.b(context, attributeSet, iArr, R.attr.editTextStyle, 2132018092, new int[0]);
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, iArr, R.attr.editTextStyle, 2132018092);
|
||||
setTextInputLayoutFocusedRectEnabled(obtainStyledAttributes.getBoolean(0, false));
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
|
||||
private CharSequence getHintFromLayout() {
|
||||
TextInputLayout textInputLayout = getTextInputLayout();
|
||||
if (textInputLayout != null) {
|
||||
return textInputLayout.getHint();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private TextInputLayout getTextInputLayout() {
|
||||
for (ViewParent parent = getParent(); parent instanceof View; parent = parent.getParent()) {
|
||||
if (parent instanceof TextInputLayout) {
|
||||
return (TextInputLayout) parent;
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public final void getFocusedRect(Rect rect) {
|
||||
super.getFocusedRect(rect);
|
||||
TextInputLayout textInputLayout = getTextInputLayout();
|
||||
if (textInputLayout == null || !this.f5808g || rect == null) {
|
||||
return;
|
||||
}
|
||||
Rect rect2 = this.f5807f;
|
||||
textInputLayout.getFocusedRect(rect2);
|
||||
rect.bottom = rect2.bottom;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final boolean getGlobalVisibleRect(Rect rect, Point point) {
|
||||
TextInputLayout textInputLayout = getTextInputLayout();
|
||||
if (textInputLayout == null || !this.f5808g) {
|
||||
return super.getGlobalVisibleRect(rect, point);
|
||||
}
|
||||
boolean globalVisibleRect = textInputLayout.getGlobalVisibleRect(rect, point);
|
||||
if (globalVisibleRect && point != null) {
|
||||
point.offset(-getScrollX(), -getScrollY());
|
||||
}
|
||||
return globalVisibleRect;
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public CharSequence getHint() {
|
||||
TextInputLayout textInputLayout = getTextInputLayout();
|
||||
return (textInputLayout == null || !textInputLayout.f5815E) ? super.getHint() : textInputLayout.getHint();
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public final void onAttachedToWindow() {
|
||||
super.onAttachedToWindow();
|
||||
TextInputLayout textInputLayout = getTextInputLayout();
|
||||
if (textInputLayout != null && textInputLayout.f5815E && super.getHint() == null) {
|
||||
String str = Build.MANUFACTURER;
|
||||
if ((str != null ? str.toLowerCase(Locale.ENGLISH) : "").equals("meizu")) {
|
||||
setHint("");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.AppCompatEditText, android.widget.TextView, android.view.View
|
||||
public final InputConnection onCreateInputConnection(EditorInfo editorInfo) {
|
||||
InputConnection onCreateInputConnection = super.onCreateInputConnection(editorInfo);
|
||||
if (onCreateInputConnection != null && editorInfo.hintText == null) {
|
||||
editorInfo.hintText = getHintFromLayout();
|
||||
}
|
||||
return onCreateInputConnection;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo accessibilityNodeInfo) {
|
||||
super.onInitializeAccessibilityNodeInfo(accessibilityNodeInfo);
|
||||
getTextInputLayout();
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final boolean requestRectangleOnScreen(Rect rect) {
|
||||
TextInputLayout textInputLayout = getTextInputLayout();
|
||||
if (textInputLayout == null || !this.f5808g || rect == null) {
|
||||
return super.requestRectangleOnScreen(rect);
|
||||
}
|
||||
int height = textInputLayout.getHeight() - getHeight();
|
||||
int i = rect.left;
|
||||
int i4 = rect.top;
|
||||
int i5 = rect.right;
|
||||
int i6 = rect.bottom + height;
|
||||
Rect rect2 = this.f5807f;
|
||||
rect2.set(i, i4, i5, i6);
|
||||
return super.requestRectangleOnScreen(rect2);
|
||||
}
|
||||
|
||||
public void setTextInputLayoutFocusedRectEnabled(boolean z3) {
|
||||
this.f5808g = z3;
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,81 @@
|
||||
package com.google.android.material.theme;
|
||||
|
||||
import I2.x;
|
||||
import K2.a;
|
||||
import U.b;
|
||||
import a.AbstractC0105a;
|
||||
import android.content.Context;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import androidx.appcompat.widget.AppCompatButton;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.google.android.material.button.MaterialButton;
|
||||
import g.J;
|
||||
import h2.AbstractC0379a;
|
||||
import m.C0442A;
|
||||
import m.C0480p;
|
||||
import m.C0482q;
|
||||
import m.W;
|
||||
import m3.l;
|
||||
import r2.c;
|
||||
import x2.m;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public class MaterialComponentsViewInflater extends J {
|
||||
@Override // g.J
|
||||
public final C0480p a(Context context, AttributeSet attributeSet) {
|
||||
return new x(context, attributeSet);
|
||||
}
|
||||
|
||||
@Override // g.J
|
||||
public final AppCompatButton b(Context context, AttributeSet attributeSet) {
|
||||
return new MaterialButton(context, attributeSet);
|
||||
}
|
||||
|
||||
@Override // g.J
|
||||
public final C0482q c(Context context, AttributeSet attributeSet) {
|
||||
return new c(context, attributeSet);
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r7v1, types: [m.A, android.widget.CompoundButton, android.view.View, A2.a] */
|
||||
@Override // g.J
|
||||
public final C0442A d(Context context, AttributeSet attributeSet) {
|
||||
?? c0442a = new C0442A(a.a(context, attributeSet, R.attr.radioButtonStyle, 2132018311), attributeSet);
|
||||
Context context2 = c0442a.getContext();
|
||||
TypedArray h = m.h(context2, attributeSet, AbstractC0379a.f6768q, R.attr.radioButtonStyle, 2132018311, new int[0]);
|
||||
if (h.hasValue(0)) {
|
||||
b.c(c0442a, AbstractC0105a.w(context2, h, 0));
|
||||
}
|
||||
c0442a.f80f = h.getBoolean(1, false);
|
||||
h.recycle();
|
||||
return c0442a;
|
||||
}
|
||||
|
||||
@Override // g.J
|
||||
public final W e(Context context, AttributeSet attributeSet) {
|
||||
W w3 = new W(a.a(context, attributeSet, android.R.attr.textViewStyle, 0), attributeSet, android.R.attr.textViewStyle);
|
||||
Context context2 = w3.getContext();
|
||||
if (l.U(context2, R.attr.textAppearanceLineHeightEnabled, true)) {
|
||||
Resources.Theme theme = context2.getTheme();
|
||||
int[] iArr = AbstractC0379a.f6771t;
|
||||
TypedArray obtainStyledAttributes = theme.obtainStyledAttributes(attributeSet, iArr, android.R.attr.textViewStyle, 0);
|
||||
int h = J2.a.h(context2, obtainStyledAttributes, 1, 2);
|
||||
obtainStyledAttributes.recycle();
|
||||
if (h == -1) {
|
||||
TypedArray obtainStyledAttributes2 = theme.obtainStyledAttributes(attributeSet, iArr, android.R.attr.textViewStyle, 0);
|
||||
int resourceId = obtainStyledAttributes2.getResourceId(0, -1);
|
||||
obtainStyledAttributes2.recycle();
|
||||
if (resourceId != -1) {
|
||||
TypedArray obtainStyledAttributes3 = theme.obtainStyledAttributes(resourceId, AbstractC0379a.f6770s);
|
||||
int h4 = J2.a.h(w3.getContext(), obtainStyledAttributes3, 1, 2);
|
||||
obtainStyledAttributes3.recycle();
|
||||
if (h4 >= 0) {
|
||||
w3.setLineHeight(h4);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return w3;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
package com.google.android.material.timepicker;
|
||||
|
||||
import O.X;
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.Checkable;
|
||||
import android.widget.EditText;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.TextView;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.google.android.material.chip.Chip;
|
||||
import com.google.android.material.textfield.TextInputLayout;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* loaded from: classes3.dex */
|
||||
public class ChipTextInputComboView extends FrameLayout implements Checkable {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final Chip f5882a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final EditText f5883b;
|
||||
|
||||
public ChipTextInputComboView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet, 0);
|
||||
LayoutInflater from = LayoutInflater.from(context);
|
||||
Chip chip = (Chip) from.inflate(R.layout.material_time_chip, (ViewGroup) this, false);
|
||||
this.f5882a = chip;
|
||||
chip.setAccessibilityClassName("android.view.View");
|
||||
TextInputLayout textInputLayout = (TextInputLayout) from.inflate(R.layout.material_time_input, (ViewGroup) this, false);
|
||||
EditText editText = textInputLayout.getEditText();
|
||||
this.f5883b = editText;
|
||||
editText.setVisibility(4);
|
||||
editText.addTextChangedListener(new a(this));
|
||||
editText.setImeHintLocales(getContext().getResources().getConfiguration().getLocales());
|
||||
addView(chip);
|
||||
addView(textInputLayout);
|
||||
TextView textView = (TextView) findViewById(R.id.material_label);
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
editText.setId(View.generateViewId());
|
||||
textView.setLabelFor(editText.getId());
|
||||
editText.setSaveEnabled(false);
|
||||
editText.setLongClickable(false);
|
||||
}
|
||||
|
||||
public static String a(ChipTextInputComboView chipTextInputComboView, CharSequence charSequence) {
|
||||
try {
|
||||
return String.format(chipTextInputComboView.getResources().getConfiguration().locale, "%02d", Integer.valueOf(Integer.parseInt(String.valueOf(charSequence))));
|
||||
} catch (NumberFormatException unused) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.Checkable
|
||||
public final boolean isChecked() {
|
||||
return this.f5882a.isChecked();
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onConfigurationChanged(Configuration configuration) {
|
||||
super.onConfigurationChanged(configuration);
|
||||
this.f5883b.setImeHintLocales(getContext().getResources().getConfiguration().getLocales());
|
||||
}
|
||||
|
||||
@Override // android.widget.Checkable
|
||||
public final void setChecked(boolean z3) {
|
||||
Chip chip = this.f5882a;
|
||||
chip.setChecked(z3);
|
||||
int i = z3 ? 0 : 4;
|
||||
EditText editText = this.f5883b;
|
||||
editText.setVisibility(i);
|
||||
chip.setVisibility(z3 ? 8 : 0);
|
||||
if (chip.isChecked()) {
|
||||
editText.requestFocus();
|
||||
editText.post(new F2.f(editText, 12));
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void setOnClickListener(View.OnClickListener onClickListener) {
|
||||
this.f5882a.setOnClickListener(onClickListener);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void setTag(int i, Object obj) {
|
||||
this.f5882a.setTag(i, obj);
|
||||
}
|
||||
|
||||
@Override // android.widget.Checkable
|
||||
public final void toggle() {
|
||||
this.f5882a.toggle();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,252 @@
|
||||
package com.google.android.material.timepicker;
|
||||
|
||||
import O.X;
|
||||
import a.AbstractC0105a;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.RadialGradient;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.graphics.Shader;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.DisplayMetrics;
|
||||
import android.util.SparseArray;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.accessibility.AccessibilityNodeInfo;
|
||||
import android.widget.TextView;
|
||||
import androidx.constraintlayout.widget.k;
|
||||
import androidx.constraintlayout.widget.l;
|
||||
import androidx.constraintlayout.widget.p;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import h2.AbstractC0379a;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.HashMap;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
class ClockFaceView extends e implements d {
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final ClockHandView f5884d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final Rect f5885e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final RectF f5886f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final Rect f5887g;
|
||||
public final SparseArray h;
|
||||
public final c i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public final int[] f5888j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public final float[] f5889k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public final int f5890l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public final int f5891m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public final int f5892n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public final int f5893o;
|
||||
public final String[] p;
|
||||
|
||||
/* renamed from: q, reason: collision with root package name */
|
||||
public float f5894q;
|
||||
|
||||
/* renamed from: r, reason: collision with root package name */
|
||||
public final ColorStateList f5895r;
|
||||
|
||||
public ClockFaceView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.f5885e = new Rect();
|
||||
this.f5886f = new RectF();
|
||||
this.f5887g = new Rect();
|
||||
SparseArray sparseArray = new SparseArray();
|
||||
this.h = sparseArray;
|
||||
this.f5889k = new float[]{BitmapDescriptorFactory.HUE_RED, 0.9f, 1.0f};
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC0379a.f6760f, R.attr.materialClockStyle, 2132018378);
|
||||
Resources resources = getResources();
|
||||
ColorStateList w3 = AbstractC0105a.w(context, obtainStyledAttributes, 1);
|
||||
this.f5895r = w3;
|
||||
LayoutInflater.from(context).inflate(R.layout.material_clockface_view, (ViewGroup) this, true);
|
||||
ClockHandView clockHandView = (ClockHandView) findViewById(R.id.material_clock_hand);
|
||||
this.f5884d = clockHandView;
|
||||
this.f5890l = resources.getDimensionPixelSize(R.dimen.material_clock_hand_padding);
|
||||
int colorForState = w3.getColorForState(new int[]{android.R.attr.state_selected}, w3.getDefaultColor());
|
||||
this.f5888j = new int[]{colorForState, colorForState, w3.getDefaultColor()};
|
||||
clockHandView.f5898c.add(this);
|
||||
int defaultColor = D.h.getColorStateList(context, R.color.material_timepicker_clockface).getDefaultColor();
|
||||
ColorStateList w4 = AbstractC0105a.w(context, obtainStyledAttributes, 0);
|
||||
setBackgroundColor(w4 != null ? w4.getDefaultColor() : defaultColor);
|
||||
getViewTreeObserver().addOnPreDrawListener(new b(this));
|
||||
setFocusable(true);
|
||||
obtainStyledAttributes.recycle();
|
||||
this.i = new c(this);
|
||||
String[] strArr = new String[12];
|
||||
Arrays.fill(strArr, "");
|
||||
this.p = strArr;
|
||||
LayoutInflater from = LayoutInflater.from(getContext());
|
||||
int size = sparseArray.size();
|
||||
boolean z3 = false;
|
||||
for (int i = 0; i < Math.max(this.p.length, size); i++) {
|
||||
TextView textView = (TextView) sparseArray.get(i);
|
||||
if (i >= this.p.length) {
|
||||
removeView(textView);
|
||||
sparseArray.remove(i);
|
||||
} else {
|
||||
if (textView == null) {
|
||||
textView = (TextView) from.inflate(R.layout.material_clockface_textview, (ViewGroup) this, false);
|
||||
sparseArray.put(i, textView);
|
||||
addView(textView);
|
||||
}
|
||||
textView.setText(this.p[i]);
|
||||
textView.setTag(R.id.material_value_index, Integer.valueOf(i));
|
||||
int i4 = (i / 12) + 1;
|
||||
textView.setTag(R.id.material_clock_level, Integer.valueOf(i4));
|
||||
z3 = i4 > 1 ? true : z3;
|
||||
X.j(textView, this.i);
|
||||
textView.setTextColor(this.f5895r);
|
||||
}
|
||||
}
|
||||
ClockHandView clockHandView2 = this.f5884d;
|
||||
if (clockHandView2.f5897b && !z3) {
|
||||
clockHandView2.f5906m = 1;
|
||||
}
|
||||
clockHandView2.f5897b = z3;
|
||||
clockHandView2.invalidate();
|
||||
this.f5891m = resources.getDimensionPixelSize(R.dimen.material_time_picker_minimum_screen_height);
|
||||
this.f5892n = resources.getDimensionPixelSize(R.dimen.material_time_picker_minimum_screen_width);
|
||||
this.f5893o = resources.getDimensionPixelSize(R.dimen.material_clock_size);
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.timepicker.e
|
||||
public final void i() {
|
||||
p pVar = new p();
|
||||
pVar.b(this);
|
||||
HashMap hashMap = new HashMap();
|
||||
for (int i = 0; i < getChildCount(); i++) {
|
||||
View childAt = getChildAt(i);
|
||||
if (childAt.getId() != R.id.circle_center && !"skip".equals(childAt.getTag())) {
|
||||
int i4 = (Integer) childAt.getTag(R.id.material_clock_level);
|
||||
if (i4 == null) {
|
||||
i4 = 1;
|
||||
}
|
||||
if (!hashMap.containsKey(i4)) {
|
||||
hashMap.put(i4, new ArrayList());
|
||||
}
|
||||
((List) hashMap.get(i4)).add(childAt);
|
||||
}
|
||||
}
|
||||
for (Map.Entry entry : hashMap.entrySet()) {
|
||||
List list = (List) entry.getValue();
|
||||
int round = ((Integer) entry.getKey()).intValue() == 2 ? Math.round(this.f5913b * 0.66f) : this.f5913b;
|
||||
Iterator it = list.iterator();
|
||||
float f2 = BitmapDescriptorFactory.HUE_RED;
|
||||
while (it.hasNext()) {
|
||||
int id = ((View) it.next()).getId();
|
||||
HashMap hashMap2 = pVar.f2747c;
|
||||
if (!hashMap2.containsKey(Integer.valueOf(id))) {
|
||||
hashMap2.put(Integer.valueOf(id), new k());
|
||||
}
|
||||
l lVar = ((k) hashMap2.get(Integer.valueOf(id))).f2652d;
|
||||
lVar.f2717z = R.id.circle_center;
|
||||
lVar.f2656A = round;
|
||||
lVar.f2657B = f2;
|
||||
f2 += 360.0f / list.size();
|
||||
}
|
||||
}
|
||||
pVar.a(this);
|
||||
setConstraintSet(null);
|
||||
requestLayout();
|
||||
int i5 = 0;
|
||||
while (true) {
|
||||
SparseArray sparseArray = this.h;
|
||||
if (i5 >= sparseArray.size()) {
|
||||
return;
|
||||
}
|
||||
((TextView) sparseArray.get(i5)).setVisibility(0);
|
||||
i5++;
|
||||
}
|
||||
}
|
||||
|
||||
public final void j() {
|
||||
SparseArray sparseArray;
|
||||
RectF rectF;
|
||||
Rect rect;
|
||||
RectF rectF2 = this.f5884d.f5902g;
|
||||
float f2 = Float.MAX_VALUE;
|
||||
TextView textView = null;
|
||||
int i = 0;
|
||||
while (true) {
|
||||
sparseArray = this.h;
|
||||
int size = sparseArray.size();
|
||||
rectF = this.f5886f;
|
||||
rect = this.f5885e;
|
||||
if (i >= size) {
|
||||
break;
|
||||
}
|
||||
TextView textView2 = (TextView) sparseArray.get(i);
|
||||
if (textView2 != null) {
|
||||
textView2.getHitRect(rect);
|
||||
rectF.set(rect);
|
||||
rectF.union(rectF2);
|
||||
float height = rectF.height() * rectF.width();
|
||||
if (height < f2) {
|
||||
textView = textView2;
|
||||
f2 = height;
|
||||
}
|
||||
}
|
||||
i++;
|
||||
}
|
||||
for (int i4 = 0; i4 < sparseArray.size(); i4++) {
|
||||
TextView textView3 = (TextView) sparseArray.get(i4);
|
||||
if (textView3 != null) {
|
||||
textView3.setSelected(textView3 == textView);
|
||||
textView3.getHitRect(rect);
|
||||
rectF.set(rect);
|
||||
textView3.getLineBounds(0, this.f5887g);
|
||||
rectF.inset(r8.left, r8.top);
|
||||
textView3.getPaint().setShader(!RectF.intersects(rectF2, rectF) ? null : new RadialGradient(rectF2.centerX() - rectF.left, rectF2.centerY() - rectF.top, 0.5f * rectF2.width(), this.f5888j, this.f5889k, Shader.TileMode.CLAMP));
|
||||
textView3.invalidate();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo accessibilityNodeInfo) {
|
||||
super.onInitializeAccessibilityNodeInfo(accessibilityNodeInfo);
|
||||
accessibilityNodeInfo.setCollectionInfo((AccessibilityNodeInfo.CollectionInfo) A.a.s(1, this.p.length, 1).f7b);
|
||||
}
|
||||
|
||||
@Override // androidx.constraintlayout.widget.ConstraintLayout, android.view.ViewGroup, android.view.View
|
||||
public final void onLayout(boolean z3, int i, int i4, int i5, int i6) {
|
||||
super.onLayout(z3, i, i4, i5, i6);
|
||||
j();
|
||||
}
|
||||
|
||||
@Override // androidx.constraintlayout.widget.ConstraintLayout, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
DisplayMetrics displayMetrics = getResources().getDisplayMetrics();
|
||||
int max = (int) (this.f5893o / Math.max(Math.max(this.f5891m / displayMetrics.heightPixels, this.f5892n / displayMetrics.widthPixels), 1.0f));
|
||||
int makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(max, 1073741824);
|
||||
setMeasuredDimension(max, max);
|
||||
super.onMeasure(makeMeasureSpec, makeMeasureSpec);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,188 @@
|
||||
package com.google.android.material.timepicker;
|
||||
|
||||
import O.X;
|
||||
import a.AbstractC0106b;
|
||||
import android.animation.ValueAnimator;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Paint;
|
||||
import android.graphics.RectF;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.ViewConfiguration;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import h2.AbstractC0379a;
|
||||
import i2.AbstractC0396a;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.WeakHashMap;
|
||||
import x2.m;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* loaded from: classes3.dex */
|
||||
public class ClockHandView extends View {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final ValueAnimator f5896a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public boolean f5897b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final ArrayList f5898c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final int f5899d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public final float f5900e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public final Paint f5901f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final RectF f5902g;
|
||||
public final int h;
|
||||
public float i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public boolean f5903j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public double f5904k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public int f5905l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public int f5906m;
|
||||
|
||||
public ClockHandView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet, R.attr.materialClockStyle);
|
||||
this.f5896a = new ValueAnimator();
|
||||
this.f5898c = new ArrayList();
|
||||
Paint paint = new Paint();
|
||||
this.f5901f = paint;
|
||||
this.f5902g = new RectF();
|
||||
this.f5906m = 1;
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC0379a.f6761g, R.attr.materialClockStyle, 2132018378);
|
||||
AbstractC0106b.E(context, R.attr.motionDurationLong2, 200);
|
||||
AbstractC0106b.F(context, R.attr.motionEasingEmphasizedInterpolator, AbstractC0396a.f6816b);
|
||||
this.f5905l = obtainStyledAttributes.getDimensionPixelSize(1, 0);
|
||||
this.f5899d = obtainStyledAttributes.getDimensionPixelSize(2, 0);
|
||||
this.h = getResources().getDimensionPixelSize(R.dimen.material_clock_hand_stroke_width);
|
||||
this.f5900e = r4.getDimensionPixelSize(R.dimen.material_clock_hand_center_dot_radius);
|
||||
int color = obtainStyledAttributes.getColor(0, 0);
|
||||
paint.setAntiAlias(true);
|
||||
paint.setColor(color);
|
||||
b(BitmapDescriptorFactory.HUE_RED);
|
||||
ViewConfiguration.get(context).getScaledTouchSlop();
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
setImportantForAccessibility(2);
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
|
||||
public final int a(int i) {
|
||||
int i4 = this.f5905l;
|
||||
return i == 2 ? Math.round(i4 * 0.66f) : i4;
|
||||
}
|
||||
|
||||
public final void b(float f2) {
|
||||
ValueAnimator valueAnimator = this.f5896a;
|
||||
if (valueAnimator != null) {
|
||||
valueAnimator.cancel();
|
||||
}
|
||||
float f4 = f2 % 360.0f;
|
||||
this.i = f4;
|
||||
this.f5904k = Math.toRadians(f4 - 90.0f);
|
||||
int height = getHeight() / 2;
|
||||
int width = getWidth() / 2;
|
||||
float a2 = a(this.f5906m);
|
||||
float cos = (((float) Math.cos(this.f5904k)) * a2) + width;
|
||||
float sin = (a2 * ((float) Math.sin(this.f5904k))) + height;
|
||||
float f5 = this.f5899d;
|
||||
this.f5902g.set(cos - f5, sin - f5, cos + f5, sin + f5);
|
||||
Iterator it = this.f5898c.iterator();
|
||||
while (it.hasNext()) {
|
||||
ClockFaceView clockFaceView = (ClockFaceView) ((d) it.next());
|
||||
if (Math.abs(clockFaceView.f5894q - f4) > 0.001f) {
|
||||
clockFaceView.f5894q = f4;
|
||||
clockFaceView.j();
|
||||
}
|
||||
}
|
||||
invalidate();
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onDraw(Canvas canvas) {
|
||||
super.onDraw(canvas);
|
||||
int height = getHeight() / 2;
|
||||
int width = getWidth() / 2;
|
||||
float f2 = width;
|
||||
float a2 = a(this.f5906m);
|
||||
float cos = (((float) Math.cos(this.f5904k)) * a2) + f2;
|
||||
float f4 = height;
|
||||
float sin = (a2 * ((float) Math.sin(this.f5904k))) + f4;
|
||||
Paint paint = this.f5901f;
|
||||
paint.setStrokeWidth(BitmapDescriptorFactory.HUE_RED);
|
||||
canvas.drawCircle(cos, sin, this.f5899d, paint);
|
||||
double sin2 = Math.sin(this.f5904k);
|
||||
paint.setStrokeWidth(this.h);
|
||||
canvas.drawLine(f2, f4, width + ((int) (Math.cos(this.f5904k) * r2)), height + ((int) (r2 * sin2)), paint);
|
||||
canvas.drawCircle(f2, f4, this.f5900e, paint);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onLayout(boolean z3, int i, int i4, int i5, int i6) {
|
||||
super.onLayout(z3, i, i4, i5, i6);
|
||||
if (this.f5896a.isRunning()) {
|
||||
return;
|
||||
}
|
||||
b(this.i);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final boolean onTouchEvent(MotionEvent motionEvent) {
|
||||
boolean z3;
|
||||
boolean z4;
|
||||
int actionMasked = motionEvent.getActionMasked();
|
||||
float x3 = motionEvent.getX();
|
||||
float y3 = motionEvent.getY();
|
||||
boolean z5 = false;
|
||||
if (actionMasked == 0) {
|
||||
this.f5903j = false;
|
||||
z3 = true;
|
||||
z4 = false;
|
||||
} else if (actionMasked == 1 || actionMasked == 2) {
|
||||
z4 = this.f5903j;
|
||||
if (this.f5897b) {
|
||||
this.f5906m = ((float) Math.hypot((double) (x3 - ((float) (getWidth() / 2))), (double) (y3 - ((float) (getHeight() / 2))))) <= ((float) a(2)) + m.e(getContext(), 12) ? 2 : 1;
|
||||
}
|
||||
z3 = false;
|
||||
} else {
|
||||
z4 = false;
|
||||
z3 = false;
|
||||
}
|
||||
boolean z6 = this.f5903j;
|
||||
int degrees = (int) Math.toDegrees(Math.atan2(y3 - (getHeight() / 2), x3 - (getWidth() / 2)));
|
||||
int i = degrees + 90;
|
||||
if (i < 0) {
|
||||
i = degrees + 450;
|
||||
}
|
||||
float f2 = i;
|
||||
boolean z7 = this.i != f2;
|
||||
if (!z3 || !z7) {
|
||||
if (z7 || z4) {
|
||||
b(f2);
|
||||
}
|
||||
this.f5903j = z6 | z5;
|
||||
return true;
|
||||
}
|
||||
z5 = true;
|
||||
this.f5903j = z6 | z5;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package com.google.android.material.timepicker;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.GestureDetector;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.google.android.material.button.MaterialButtonToggleGroup;
|
||||
import com.google.android.material.chip.Chip;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
class TimePickerView extends ConstraintLayout {
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public static final /* synthetic */ int f5907b = 0;
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final Chip f5908a;
|
||||
|
||||
public TimePickerView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet, 0);
|
||||
g gVar = new g(this);
|
||||
LayoutInflater.from(context).inflate(R.layout.material_timepicker, this);
|
||||
MaterialButtonToggleGroup materialButtonToggleGroup = (MaterialButtonToggleGroup) findViewById(R.id.material_clock_period_toggle);
|
||||
materialButtonToggleGroup.f5605c.add(new Object());
|
||||
Chip chip = (Chip) findViewById(R.id.material_minute_tv);
|
||||
Chip chip2 = (Chip) findViewById(R.id.material_hour_tv);
|
||||
this.f5908a = chip2;
|
||||
i iVar = new i(new GestureDetector(getContext(), new h(this)));
|
||||
chip.setOnTouchListener(iVar);
|
||||
chip2.setOnTouchListener(iVar);
|
||||
chip.setTag(R.id.selection_type, 12);
|
||||
chip2.setTag(R.id.selection_type, 10);
|
||||
chip.setOnClickListener(gVar);
|
||||
chip2.setOnClickListener(gVar);
|
||||
chip.setAccessibilityClassName("android.view.View");
|
||||
chip2.setAccessibilityClassName("android.view.View");
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onVisibilityChanged(View view, int i) {
|
||||
super.onVisibilityChanged(view, i);
|
||||
if (view == this && i == 0) {
|
||||
this.f5908a.sendAccessibilityEvent(8);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.google.android.material.timepicker;
|
||||
|
||||
import android.text.Editable;
|
||||
import android.text.TextUtils;
|
||||
import com.google.android.material.chip.Chip;
|
||||
import x2.l;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class a extends l {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ ChipTextInputComboView f5909a;
|
||||
|
||||
public a(ChipTextInputComboView chipTextInputComboView) {
|
||||
this.f5909a = chipTextInputComboView;
|
||||
}
|
||||
|
||||
@Override // android.text.TextWatcher
|
||||
public final void afterTextChanged(Editable editable) {
|
||||
boolean isEmpty = TextUtils.isEmpty(editable);
|
||||
ChipTextInputComboView chipTextInputComboView = this.f5909a;
|
||||
if (isEmpty) {
|
||||
chipTextInputComboView.f5882a.setText(ChipTextInputComboView.a(chipTextInputComboView, "00"));
|
||||
return;
|
||||
}
|
||||
String a2 = ChipTextInputComboView.a(chipTextInputComboView, editable);
|
||||
Chip chip = chipTextInputComboView.f5882a;
|
||||
if (TextUtils.isEmpty(a2)) {
|
||||
a2 = ChipTextInputComboView.a(chipTextInputComboView, "00");
|
||||
}
|
||||
chip.setText(a2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package com.google.android.material.timepicker;
|
||||
|
||||
import android.view.ViewTreeObserver;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class b implements ViewTreeObserver.OnPreDrawListener {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ ClockFaceView f5910a;
|
||||
|
||||
public b(ClockFaceView clockFaceView) {
|
||||
this.f5910a = clockFaceView;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewTreeObserver.OnPreDrawListener
|
||||
public final boolean onPreDraw() {
|
||||
ClockFaceView clockFaceView = this.f5910a;
|
||||
if (!clockFaceView.isShown()) {
|
||||
return true;
|
||||
}
|
||||
clockFaceView.getViewTreeObserver().removeOnPreDrawListener(this);
|
||||
int height = ((clockFaceView.getHeight() / 2) - clockFaceView.f5884d.f5899d) - clockFaceView.f5890l;
|
||||
if (height != clockFaceView.f5913b) {
|
||||
clockFaceView.f5913b = height;
|
||||
clockFaceView.i();
|
||||
int i = clockFaceView.f5913b;
|
||||
ClockHandView clockHandView = clockFaceView.f5884d;
|
||||
clockHandView.f5905l = i;
|
||||
clockHandView.invalidate();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
package com.google.android.material.timepicker;
|
||||
|
||||
import O.C0056b;
|
||||
import P.j;
|
||||
import P.k;
|
||||
import android.os.Bundle;
|
||||
import android.os.SystemClock;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.accessibility.AccessibilityNodeInfo;
|
||||
import com.adif.elcanomovil.R;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class c extends C0056b {
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final /* synthetic */ ClockFaceView f5911d;
|
||||
|
||||
public c(ClockFaceView clockFaceView) {
|
||||
this.f5911d = clockFaceView;
|
||||
}
|
||||
|
||||
@Override // O.C0056b
|
||||
public final void d(View view, k kVar) {
|
||||
View.AccessibilityDelegate accessibilityDelegate = this.f1232a;
|
||||
AccessibilityNodeInfo accessibilityNodeInfo = kVar.f1341a;
|
||||
accessibilityDelegate.onInitializeAccessibilityNodeInfo(view, accessibilityNodeInfo);
|
||||
int intValue = ((Integer) view.getTag(R.id.material_value_index)).intValue();
|
||||
if (intValue > 0) {
|
||||
accessibilityNodeInfo.setTraversalAfter((View) this.f5911d.h.get(intValue - 1));
|
||||
}
|
||||
kVar.i(j.a(view.isSelected(), 0, 1, intValue, 1));
|
||||
accessibilityNodeInfo.setClickable(true);
|
||||
kVar.b(P.f.f1330e);
|
||||
}
|
||||
|
||||
@Override // O.C0056b
|
||||
public final boolean g(View view, int i, Bundle bundle) {
|
||||
if (i != 16) {
|
||||
return super.g(view, i, bundle);
|
||||
}
|
||||
long uptimeMillis = SystemClock.uptimeMillis();
|
||||
ClockFaceView clockFaceView = this.f5911d;
|
||||
view.getHitRect(clockFaceView.f5885e);
|
||||
float centerX = clockFaceView.f5885e.centerX();
|
||||
float centerY = clockFaceView.f5885e.centerY();
|
||||
clockFaceView.f5884d.onTouchEvent(MotionEvent.obtain(uptimeMillis, uptimeMillis, 0, centerX, centerY, 0));
|
||||
clockFaceView.f5884d.onTouchEvent(MotionEvent.obtain(uptimeMillis, uptimeMillis, 1, centerX, centerY, 0));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.google.android.material.timepicker;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public interface d {
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.google.android.material.timepicker;
|
||||
|
||||
import E2.j;
|
||||
import O.X;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.TypedArray;
|
||||
import android.os.Handler;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import androidx.constraintlayout.widget.ConstraintLayout;
|
||||
import com.adif.elcanomovil.R;
|
||||
import h2.AbstractC0379a;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class e extends ConstraintLayout {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final F2.f f5912a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public int f5913b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final E2.g f5914c;
|
||||
|
||||
public e(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet, R.attr.materialClockStyle);
|
||||
LayoutInflater.from(context).inflate(R.layout.material_radial_view_group, this);
|
||||
E2.g gVar = new E2.g();
|
||||
this.f5914c = gVar;
|
||||
E2.h hVar = new E2.h(0.5f);
|
||||
j e4 = gVar.f400a.f386a.e();
|
||||
e4.f422e = hVar;
|
||||
e4.f423f = hVar;
|
||||
e4.f424g = hVar;
|
||||
e4.h = hVar;
|
||||
gVar.setShapeAppearanceModel(e4.a());
|
||||
this.f5914c.j(ColorStateList.valueOf(-1));
|
||||
E2.g gVar2 = this.f5914c;
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
setBackground(gVar2);
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC0379a.f6775x, R.attr.materialClockStyle, 0);
|
||||
this.f5913b = obtainStyledAttributes.getDimensionPixelSize(0, 0);
|
||||
this.f5912a = new F2.f(this, 8);
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public final void addView(View view, int i, ViewGroup.LayoutParams layoutParams) {
|
||||
super.addView(view, i, layoutParams);
|
||||
if (view.getId() == -1) {
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
view.setId(View.generateViewId());
|
||||
}
|
||||
Handler handler = getHandler();
|
||||
if (handler != null) {
|
||||
F2.f fVar = this.f5912a;
|
||||
handler.removeCallbacks(fVar);
|
||||
handler.post(fVar);
|
||||
}
|
||||
}
|
||||
|
||||
public abstract void i();
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onFinishInflate() {
|
||||
super.onFinishInflate();
|
||||
i();
|
||||
}
|
||||
|
||||
@Override // androidx.constraintlayout.widget.ConstraintLayout, android.view.ViewGroup
|
||||
public final void onViewRemoved(View view) {
|
||||
super.onViewRemoved(view);
|
||||
Handler handler = getHandler();
|
||||
if (handler != null) {
|
||||
F2.f fVar = this.f5912a;
|
||||
handler.removeCallbacks(fVar);
|
||||
handler.post(fVar);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void setBackgroundColor(int i) {
|
||||
this.f5914c.j(ColorStateList.valueOf(i));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.google.android.material.timepicker;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final /* synthetic */ class f {
|
||||
public final void a() {
|
||||
int i = TimePickerView.f5907b;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.google.android.material.timepicker;
|
||||
|
||||
import android.view.View;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class g implements View.OnClickListener {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ TimePickerView f5915a;
|
||||
|
||||
public g(TimePickerView timePickerView) {
|
||||
this.f5915a = timePickerView;
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
int i = TimePickerView.f5907b;
|
||||
this.f5915a.getClass();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package com.google.android.material.timepicker;
|
||||
|
||||
import android.view.GestureDetector;
|
||||
import android.view.MotionEvent;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class h extends GestureDetector.SimpleOnGestureListener {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ TimePickerView f5916a;
|
||||
|
||||
public h(TimePickerView timePickerView) {
|
||||
this.f5916a = timePickerView;
|
||||
}
|
||||
|
||||
@Override // android.view.GestureDetector.SimpleOnGestureListener, android.view.GestureDetector.OnDoubleTapListener
|
||||
public final boolean onDoubleTap(MotionEvent motionEvent) {
|
||||
int i = TimePickerView.f5907b;
|
||||
this.f5916a.getClass();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.material.timepicker;
|
||||
|
||||
import android.view.GestureDetector;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.widget.Checkable;
|
||||
|
||||
/* loaded from: classes3.dex */
|
||||
public final class i implements View.OnTouchListener {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ GestureDetector f5917a;
|
||||
|
||||
public i(GestureDetector gestureDetector) {
|
||||
this.f5917a = gestureDetector;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // android.view.View.OnTouchListener
|
||||
public final boolean onTouch(View view, MotionEvent motionEvent) {
|
||||
if (((Checkable) view).isChecked()) {
|
||||
return this.f5917a.onTouchEvent(motionEvent);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package com.google.android.material.transformation;
|
||||
|
||||
import A.b;
|
||||
import O.X;
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import androidx.coordinatorlayout.widget.CoordinatorLayout;
|
||||
import java.util.ArrayList;
|
||||
import java.util.WeakHashMap;
|
||||
|
||||
@Deprecated
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class ExpandableBehavior extends b {
|
||||
public ExpandableBehavior() {
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public abstract void f(View view);
|
||||
|
||||
@Override // A.b
|
||||
public final boolean h(CoordinatorLayout coordinatorLayout, View view, View view2) {
|
||||
view2.getClass();
|
||||
throw new ClassCastException();
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean k(CoordinatorLayout coordinatorLayout, View view, int i) {
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
if (!view.isLaidOut()) {
|
||||
ArrayList j4 = coordinatorLayout.j(view);
|
||||
int size = j4.size();
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
f(view);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public ExpandableBehavior(Context context, AttributeSet attributeSet) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.google.android.material.transformation;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
@Deprecated
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class ExpandableTransformationBehavior extends ExpandableBehavior {
|
||||
public ExpandableTransformationBehavior() {
|
||||
}
|
||||
|
||||
public ExpandableTransformationBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package com.google.android.material.transformation;
|
||||
|
||||
import A.e;
|
||||
import android.content.Context;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.RectF;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
|
||||
@Deprecated
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class FabTransformationBehavior extends ExpandableTransformationBehavior {
|
||||
public FabTransformationBehavior() {
|
||||
new Rect();
|
||||
new RectF();
|
||||
new RectF();
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.transformation.ExpandableBehavior, A.b
|
||||
public final void f(View view) {
|
||||
if (view.getVisibility() == 8) {
|
||||
throw new IllegalStateException("This behavior cannot be attached to a GONE view. Set the view to INVISIBLE instead.");
|
||||
}
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final void g(e eVar) {
|
||||
if (eVar.h == 0) {
|
||||
eVar.h = 80;
|
||||
}
|
||||
}
|
||||
|
||||
public FabTransformationBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
new Rect();
|
||||
new RectF();
|
||||
new RectF();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package com.google.android.material.transformation;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
|
||||
@Deprecated
|
||||
/* loaded from: classes3.dex */
|
||||
public class FabTransformationScrimBehavior extends ExpandableTransformationBehavior {
|
||||
public FabTransformationScrimBehavior() {
|
||||
}
|
||||
|
||||
@Override // com.google.android.material.transformation.ExpandableBehavior, A.b
|
||||
public final void f(View view) {
|
||||
}
|
||||
|
||||
@Override // A.b
|
||||
public final boolean u(View view, MotionEvent motionEvent) {
|
||||
return false;
|
||||
}
|
||||
|
||||
public FabTransformationScrimBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.google.android.material.transformation;
|
||||
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
@Deprecated
|
||||
/* loaded from: classes3.dex */
|
||||
public class FabTransformationSheetBehavior extends FabTransformationBehavior {
|
||||
public FabTransformationSheetBehavior() {
|
||||
}
|
||||
|
||||
public FabTransformationSheetBehavior(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user