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,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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user