Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
695
apk_decompiled/sources/z2/AbstractC0673c.java
Normal file
695
apk_decompiled/sources/z2/AbstractC0673c.java
Normal file
@@ -0,0 +1,695 @@
|
||||
package z2;
|
||||
|
||||
import H0.p;
|
||||
import O.AbstractC0084z;
|
||||
import O.N;
|
||||
import O.X;
|
||||
import android.R;
|
||||
import android.animation.ValueAnimator;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.RippleDrawable;
|
||||
import android.text.TextUtils;
|
||||
import android.util.Log;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.PointerIcon;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.accessibility.AccessibilityNodeInfo;
|
||||
import android.widget.FrameLayout;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.TextView;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import f0.C0338b;
|
||||
import i2.AbstractC0396a;
|
||||
import java.util.WeakHashMap;
|
||||
import k2.C0417a;
|
||||
import l.o;
|
||||
import l.z;
|
||||
import m.W0;
|
||||
import m2.ViewOnLayoutChangeListenerC0506a;
|
||||
import n2.C0514a;
|
||||
|
||||
/* renamed from: z2.c, reason: case insensitive filesystem */
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class AbstractC0673c extends FrameLayout implements z {
|
||||
|
||||
/* renamed from: G, reason: collision with root package name */
|
||||
public static final int[] f9018G = {R.attr.state_checked};
|
||||
|
||||
/* renamed from: H, reason: collision with root package name */
|
||||
public static final C0338b f9019H = new C0338b(22);
|
||||
|
||||
/* renamed from: I, reason: collision with root package name */
|
||||
public static final C0672b f9020I = new C0338b(22);
|
||||
|
||||
/* renamed from: A, reason: collision with root package name */
|
||||
public boolean f9021A;
|
||||
|
||||
/* renamed from: B, reason: collision with root package name */
|
||||
public int f9022B;
|
||||
|
||||
/* renamed from: C, reason: collision with root package name */
|
||||
public int f9023C;
|
||||
|
||||
/* renamed from: D, reason: collision with root package name */
|
||||
public boolean f9024D;
|
||||
|
||||
/* renamed from: E, reason: collision with root package name */
|
||||
public int f9025E;
|
||||
|
||||
/* renamed from: F, reason: collision with root package name */
|
||||
public C0417a f9026F;
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public boolean f9027a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public ColorStateList f9028b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public Drawable f9029c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public int f9030d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public int f9031e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public int f9032f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public float f9033g;
|
||||
public float h;
|
||||
public float i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public int f9034j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public boolean f9035k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public final FrameLayout f9036l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public final View f9037m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public final ImageView f9038n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public final ViewGroup f9039o;
|
||||
public final TextView p;
|
||||
|
||||
/* renamed from: q, reason: collision with root package name */
|
||||
public final TextView f9040q;
|
||||
|
||||
/* renamed from: r, reason: collision with root package name */
|
||||
public int f9041r;
|
||||
|
||||
/* renamed from: s, reason: collision with root package name */
|
||||
public int f9042s;
|
||||
|
||||
/* renamed from: t, reason: collision with root package name */
|
||||
public o f9043t;
|
||||
|
||||
/* renamed from: u, reason: collision with root package name */
|
||||
public ColorStateList f9044u;
|
||||
|
||||
/* renamed from: v, reason: collision with root package name */
|
||||
public Drawable f9045v;
|
||||
|
||||
/* renamed from: w, reason: collision with root package name */
|
||||
public Drawable f9046w;
|
||||
|
||||
/* renamed from: x, reason: collision with root package name */
|
||||
public ValueAnimator f9047x;
|
||||
|
||||
/* renamed from: y, reason: collision with root package name */
|
||||
public C0338b f9048y;
|
||||
|
||||
/* renamed from: z, reason: collision with root package name */
|
||||
public float f9049z;
|
||||
|
||||
public AbstractC0673c(Context context) {
|
||||
super(context);
|
||||
this.f9027a = false;
|
||||
this.f9041r = -1;
|
||||
this.f9042s = 0;
|
||||
this.f9048y = f9019H;
|
||||
this.f9049z = BitmapDescriptorFactory.HUE_RED;
|
||||
this.f9021A = false;
|
||||
this.f9022B = 0;
|
||||
this.f9023C = 0;
|
||||
this.f9024D = false;
|
||||
this.f9025E = 0;
|
||||
int i = 1;
|
||||
LayoutInflater.from(context).inflate(getItemLayoutResId(), (ViewGroup) this, true);
|
||||
this.f9036l = (FrameLayout) findViewById(com.adif.elcanomovil.R.id.navigation_bar_item_icon_container);
|
||||
this.f9037m = findViewById(com.adif.elcanomovil.R.id.navigation_bar_item_active_indicator_view);
|
||||
ImageView imageView = (ImageView) findViewById(com.adif.elcanomovil.R.id.navigation_bar_item_icon_view);
|
||||
this.f9038n = imageView;
|
||||
ViewGroup viewGroup = (ViewGroup) findViewById(com.adif.elcanomovil.R.id.navigation_bar_item_labels_group);
|
||||
this.f9039o = viewGroup;
|
||||
TextView textView = (TextView) findViewById(com.adif.elcanomovil.R.id.navigation_bar_item_small_label_view);
|
||||
this.p = textView;
|
||||
TextView textView2 = (TextView) findViewById(com.adif.elcanomovil.R.id.navigation_bar_item_large_label_view);
|
||||
this.f9040q = textView2;
|
||||
setBackgroundResource(getItemBackgroundResId());
|
||||
this.f9030d = getResources().getDimensionPixelSize(getItemDefaultMarginResId());
|
||||
this.f9031e = viewGroup.getPaddingBottom();
|
||||
this.f9032f = getResources().getDimensionPixelSize(com.adif.elcanomovil.R.dimen.m3_navigation_item_active_indicator_label_padding);
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
textView.setImportantForAccessibility(2);
|
||||
textView2.setImportantForAccessibility(2);
|
||||
setFocusable(true);
|
||||
a(textView.getTextSize(), textView2.getTextSize());
|
||||
if (imageView != null) {
|
||||
imageView.addOnLayoutChangeListener(new ViewOnLayoutChangeListenerC0506a((C0514a) this, i));
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:12:? A[RETURN, SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:9:0x004e */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static void f(android.widget.TextView r4, int r5) {
|
||||
/*
|
||||
r4.setTextAppearance(r5)
|
||||
android.content.Context r0 = r4.getContext()
|
||||
r1 = 0
|
||||
if (r5 != 0) goto Lb
|
||||
goto L1f
|
||||
Lb:
|
||||
int[] r2 = h2.AbstractC0379a.f6751E
|
||||
android.content.res.TypedArray r5 = r0.obtainStyledAttributes(r5, r2)
|
||||
android.util.TypedValue r2 = new android.util.TypedValue
|
||||
r2.<init>()
|
||||
boolean r3 = r5.getValue(r1, r2)
|
||||
r5.recycle()
|
||||
if (r3 != 0) goto L21
|
||||
L1f:
|
||||
r5 = r1
|
||||
goto L4c
|
||||
L21:
|
||||
int r5 = r2.getComplexUnit()
|
||||
r3 = 2
|
||||
if (r5 != r3) goto L3e
|
||||
int r5 = r2.data
|
||||
float r5 = android.util.TypedValue.complexToFloat(r5)
|
||||
android.content.res.Resources r0 = r0.getResources()
|
||||
android.util.DisplayMetrics r0 = r0.getDisplayMetrics()
|
||||
float r0 = r0.density
|
||||
float r5 = r5 * r0
|
||||
int r5 = java.lang.Math.round(r5)
|
||||
goto L4c
|
||||
L3e:
|
||||
int r5 = r2.data
|
||||
android.content.res.Resources r0 = r0.getResources()
|
||||
android.util.DisplayMetrics r0 = r0.getDisplayMetrics()
|
||||
int r5 = android.util.TypedValue.complexToDimensionPixelSize(r5, r0)
|
||||
L4c:
|
||||
if (r5 == 0) goto L52
|
||||
float r5 = (float) r5
|
||||
r4.setTextSize(r1, r5)
|
||||
L52:
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: z2.AbstractC0673c.f(android.widget.TextView, int):void");
|
||||
}
|
||||
|
||||
public static void g(View view, float f2, float f4, int i) {
|
||||
view.setScaleX(f2);
|
||||
view.setScaleY(f4);
|
||||
view.setVisibility(i);
|
||||
}
|
||||
|
||||
private View getIconOrContainer() {
|
||||
FrameLayout frameLayout = this.f9036l;
|
||||
return frameLayout != null ? frameLayout : this.f9038n;
|
||||
}
|
||||
|
||||
private int getItemVisiblePosition() {
|
||||
ViewGroup viewGroup = (ViewGroup) getParent();
|
||||
int indexOfChild = viewGroup.indexOfChild(this);
|
||||
int i = 0;
|
||||
for (int i4 = 0; i4 < indexOfChild; i4++) {
|
||||
View childAt = viewGroup.getChildAt(i4);
|
||||
if ((childAt instanceof AbstractC0673c) && childAt.getVisibility() == 0) {
|
||||
i++;
|
||||
}
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
private int getSuggestedIconHeight() {
|
||||
return getIconOrContainer().getMeasuredHeight() + ((FrameLayout.LayoutParams) getIconOrContainer().getLayoutParams()).topMargin;
|
||||
}
|
||||
|
||||
private int getSuggestedIconWidth() {
|
||||
C0417a c0417a = this.f9026F;
|
||||
int minimumWidth = c0417a == null ? 0 : c0417a.getMinimumWidth() - this.f9026F.f7054e.f7089b.f7084w.intValue();
|
||||
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) getIconOrContainer().getLayoutParams();
|
||||
return Math.max(minimumWidth, layoutParams.rightMargin) + this.f9038n.getMeasuredWidth() + Math.max(minimumWidth, layoutParams.leftMargin);
|
||||
}
|
||||
|
||||
public static void h(View view, int i, int i4) {
|
||||
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) view.getLayoutParams();
|
||||
layoutParams.topMargin = i;
|
||||
layoutParams.bottomMargin = i;
|
||||
layoutParams.gravity = i4;
|
||||
view.setLayoutParams(layoutParams);
|
||||
}
|
||||
|
||||
public static void j(View view, int i) {
|
||||
view.setPadding(view.getPaddingLeft(), view.getPaddingTop(), view.getPaddingRight(), i);
|
||||
}
|
||||
|
||||
public final void a(float f2, float f4) {
|
||||
this.f9033g = f2 - f4;
|
||||
this.h = (f4 * 1.0f) / f2;
|
||||
this.i = (f2 * 1.0f) / f4;
|
||||
}
|
||||
|
||||
@Override // l.z
|
||||
public final void b(o oVar) {
|
||||
this.f9043t = oVar;
|
||||
setCheckable(oVar.isCheckable());
|
||||
setChecked(oVar.isChecked());
|
||||
setEnabled(oVar.isEnabled());
|
||||
setIcon(oVar.getIcon());
|
||||
setTitle(oVar.f7272e);
|
||||
setId(oVar.f7268a);
|
||||
if (!TextUtils.isEmpty(oVar.f7281q)) {
|
||||
setContentDescription(oVar.f7281q);
|
||||
}
|
||||
W0.a(this, !TextUtils.isEmpty(oVar.f7282r) ? oVar.f7282r : oVar.f7272e);
|
||||
setVisibility(oVar.isVisible() ? 0 : 8);
|
||||
this.f9027a = true;
|
||||
}
|
||||
|
||||
public final void c() {
|
||||
o oVar = this.f9043t;
|
||||
if (oVar != null) {
|
||||
setChecked(oVar.isChecked());
|
||||
}
|
||||
}
|
||||
|
||||
public final void d() {
|
||||
Drawable drawable = this.f9029c;
|
||||
ColorStateList colorStateList = this.f9028b;
|
||||
FrameLayout frameLayout = this.f9036l;
|
||||
RippleDrawable rippleDrawable = null;
|
||||
boolean z3 = true;
|
||||
if (colorStateList != null) {
|
||||
Drawable activeIndicatorDrawable = getActiveIndicatorDrawable();
|
||||
if (this.f9021A && getActiveIndicatorDrawable() != null && frameLayout != null && activeIndicatorDrawable != null) {
|
||||
rippleDrawable = new RippleDrawable(C2.a.c(this.f9028b), null, activeIndicatorDrawable);
|
||||
z3 = false;
|
||||
} else if (drawable == null) {
|
||||
drawable = new RippleDrawable(C2.a.a(this.f9028b), null, null);
|
||||
}
|
||||
}
|
||||
if (frameLayout != null) {
|
||||
frameLayout.setPadding(0, 0, 0, 0);
|
||||
frameLayout.setForeground(rippleDrawable);
|
||||
}
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
setBackground(drawable);
|
||||
setDefaultFocusHighlightEnabled(z3);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final boolean dispatchTouchEvent(MotionEvent motionEvent) {
|
||||
FrameLayout frameLayout = this.f9036l;
|
||||
if (frameLayout != null && this.f9021A) {
|
||||
frameLayout.dispatchTouchEvent(motionEvent);
|
||||
}
|
||||
return super.dispatchTouchEvent(motionEvent);
|
||||
}
|
||||
|
||||
public final void e(float f2, float f4) {
|
||||
View view = this.f9037m;
|
||||
if (view != null) {
|
||||
C0338b c0338b = this.f9048y;
|
||||
c0338b.getClass();
|
||||
view.setScaleX(AbstractC0396a.a(0.4f, 1.0f, f2));
|
||||
view.setScaleY(c0338b.i(f2, f4));
|
||||
view.setAlpha(AbstractC0396a.b(BitmapDescriptorFactory.HUE_RED, 1.0f, f4 == BitmapDescriptorFactory.HUE_RED ? 0.8f : 0.0f, f4 == BitmapDescriptorFactory.HUE_RED ? 1.0f : 0.2f, f2));
|
||||
}
|
||||
this.f9049z = f2;
|
||||
}
|
||||
|
||||
public Drawable getActiveIndicatorDrawable() {
|
||||
View view = this.f9037m;
|
||||
if (view == null) {
|
||||
return null;
|
||||
}
|
||||
return view.getBackground();
|
||||
}
|
||||
|
||||
public C0417a getBadge() {
|
||||
return this.f9026F;
|
||||
}
|
||||
|
||||
public int getItemBackgroundResId() {
|
||||
return com.adif.elcanomovil.R.drawable.mtrl_navigation_bar_item_background;
|
||||
}
|
||||
|
||||
@Override // l.z
|
||||
public o getItemData() {
|
||||
return this.f9043t;
|
||||
}
|
||||
|
||||
public int getItemDefaultMarginResId() {
|
||||
return com.adif.elcanomovil.R.dimen.mtrl_navigation_bar_item_default_margin;
|
||||
}
|
||||
|
||||
public abstract int getItemLayoutResId();
|
||||
|
||||
public int getItemPosition() {
|
||||
return this.f9041r;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public int getSuggestedMinimumHeight() {
|
||||
ViewGroup viewGroup = this.f9039o;
|
||||
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) viewGroup.getLayoutParams();
|
||||
return viewGroup.getMeasuredHeight() + getSuggestedIconHeight() + (viewGroup.getVisibility() == 0 ? this.f9032f : 0) + layoutParams.topMargin + layoutParams.bottomMargin;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public int getSuggestedMinimumWidth() {
|
||||
ViewGroup viewGroup = this.f9039o;
|
||||
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) viewGroup.getLayoutParams();
|
||||
return Math.max(getSuggestedIconWidth(), viewGroup.getMeasuredWidth() + layoutParams.leftMargin + layoutParams.rightMargin);
|
||||
}
|
||||
|
||||
public final void i(int i) {
|
||||
View view = this.f9037m;
|
||||
if (view == null || i <= 0) {
|
||||
return;
|
||||
}
|
||||
int min = Math.min(this.f9022B, i - (this.f9025E * 2));
|
||||
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) view.getLayoutParams();
|
||||
layoutParams.height = (this.f9024D && this.f9034j == 2) ? min : this.f9023C;
|
||||
layoutParams.width = min;
|
||||
view.setLayoutParams(layoutParams);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final int[] onCreateDrawableState(int i) {
|
||||
int[] onCreateDrawableState = super.onCreateDrawableState(i + 1);
|
||||
o oVar = this.f9043t;
|
||||
if (oVar != null && oVar.isCheckable() && this.f9043t.isChecked()) {
|
||||
View.mergeDrawableStates(onCreateDrawableState, f9018G);
|
||||
}
|
||||
return onCreateDrawableState;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo accessibilityNodeInfo) {
|
||||
super.onInitializeAccessibilityNodeInfo(accessibilityNodeInfo);
|
||||
C0417a c0417a = this.f9026F;
|
||||
if (c0417a != null && c0417a.isVisible()) {
|
||||
o oVar = this.f9043t;
|
||||
CharSequence charSequence = oVar.f7272e;
|
||||
if (!TextUtils.isEmpty(oVar.f7281q)) {
|
||||
charSequence = this.f9043t.f7281q;
|
||||
}
|
||||
accessibilityNodeInfo.setContentDescription(((Object) charSequence) + ", " + ((Object) this.f9026F.c()));
|
||||
}
|
||||
accessibilityNodeInfo.setCollectionItemInfo(P.j.a(isSelected(), 0, 1, getItemVisiblePosition(), 1).f1340a);
|
||||
if (isSelected()) {
|
||||
accessibilityNodeInfo.setClickable(false);
|
||||
accessibilityNodeInfo.removeAction((AccessibilityNodeInfo.AccessibilityAction) P.f.f1330e.f1336a);
|
||||
}
|
||||
accessibilityNodeInfo.getExtras().putCharSequence("AccessibilityNodeInfo.roleDescription", getResources().getString(com.adif.elcanomovil.R.string.item_view_role_description));
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onSizeChanged(int i, int i4, int i5, int i6) {
|
||||
super.onSizeChanged(i, i4, i5, i6);
|
||||
post(new p(i, 4, this));
|
||||
}
|
||||
|
||||
public void setActiveIndicatorDrawable(Drawable drawable) {
|
||||
View view = this.f9037m;
|
||||
if (view == null) {
|
||||
return;
|
||||
}
|
||||
view.setBackgroundDrawable(drawable);
|
||||
d();
|
||||
}
|
||||
|
||||
public void setActiveIndicatorEnabled(boolean z3) {
|
||||
this.f9021A = z3;
|
||||
d();
|
||||
View view = this.f9037m;
|
||||
if (view != null) {
|
||||
view.setVisibility(z3 ? 0 : 8);
|
||||
requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
public void setActiveIndicatorHeight(int i) {
|
||||
this.f9023C = i;
|
||||
i(getWidth());
|
||||
}
|
||||
|
||||
public void setActiveIndicatorLabelPadding(int i) {
|
||||
if (this.f9032f != i) {
|
||||
this.f9032f = i;
|
||||
c();
|
||||
}
|
||||
}
|
||||
|
||||
public void setActiveIndicatorMarginHorizontal(int i) {
|
||||
this.f9025E = i;
|
||||
i(getWidth());
|
||||
}
|
||||
|
||||
public void setActiveIndicatorResizeable(boolean z3) {
|
||||
this.f9024D = z3;
|
||||
}
|
||||
|
||||
public void setActiveIndicatorWidth(int i) {
|
||||
this.f9022B = i;
|
||||
i(getWidth());
|
||||
}
|
||||
|
||||
public void setBadge(C0417a c0417a) {
|
||||
C0417a c0417a2 = this.f9026F;
|
||||
if (c0417a2 == c0417a) {
|
||||
return;
|
||||
}
|
||||
boolean z3 = c0417a2 != null;
|
||||
ImageView imageView = this.f9038n;
|
||||
if (z3 && imageView != null) {
|
||||
Log.w("NavigationBar", "Multiple badges shouldn't be attached to one item.");
|
||||
if (this.f9026F != null) {
|
||||
setClipChildren(true);
|
||||
setClipToPadding(true);
|
||||
C0417a c0417a3 = this.f9026F;
|
||||
if (c0417a3 != null) {
|
||||
if (c0417a3.d() != null) {
|
||||
c0417a3.d().setForeground(null);
|
||||
} else {
|
||||
imageView.getOverlay().remove(c0417a3);
|
||||
}
|
||||
}
|
||||
this.f9026F = null;
|
||||
}
|
||||
}
|
||||
this.f9026F = c0417a;
|
||||
if (imageView == null || c0417a == null) {
|
||||
return;
|
||||
}
|
||||
setClipChildren(false);
|
||||
setClipToPadding(false);
|
||||
C0417a c0417a4 = this.f9026F;
|
||||
Rect rect = new Rect();
|
||||
imageView.getDrawingRect(rect);
|
||||
c0417a4.setBounds(rect);
|
||||
c0417a4.i(imageView, null);
|
||||
if (c0417a4.d() != null) {
|
||||
c0417a4.d().setForeground(c0417a4);
|
||||
} else {
|
||||
imageView.getOverlay().add(c0417a4);
|
||||
}
|
||||
}
|
||||
|
||||
public void setCheckable(boolean z3) {
|
||||
refreshDrawableState();
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:16:0x00a4 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:31:0x0118 */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public void setChecked(boolean r13) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 377
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: z2.AbstractC0673c.setChecked(boolean):void");
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setEnabled(boolean z3) {
|
||||
super.setEnabled(z3);
|
||||
this.p.setEnabled(z3);
|
||||
this.f9040q.setEnabled(z3);
|
||||
this.f9038n.setEnabled(z3);
|
||||
if (!z3) {
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
N.d(this, null);
|
||||
} else {
|
||||
PointerIcon b4 = AbstractC0084z.b(getContext(), 1002);
|
||||
WeakHashMap weakHashMap2 = X.f1226a;
|
||||
N.d(this, b4);
|
||||
}
|
||||
}
|
||||
|
||||
public void setIcon(Drawable drawable) {
|
||||
if (drawable == this.f9045v) {
|
||||
return;
|
||||
}
|
||||
this.f9045v = drawable;
|
||||
if (drawable != null) {
|
||||
Drawable.ConstantState constantState = drawable.getConstantState();
|
||||
if (constantState != null) {
|
||||
drawable = constantState.newDrawable();
|
||||
}
|
||||
drawable = drawable.mutate();
|
||||
this.f9046w = drawable;
|
||||
ColorStateList colorStateList = this.f9044u;
|
||||
if (colorStateList != null) {
|
||||
H.a.h(drawable, colorStateList);
|
||||
}
|
||||
}
|
||||
this.f9038n.setImageDrawable(drawable);
|
||||
}
|
||||
|
||||
public void setIconSize(int i) {
|
||||
ImageView imageView = this.f9038n;
|
||||
FrameLayout.LayoutParams layoutParams = (FrameLayout.LayoutParams) imageView.getLayoutParams();
|
||||
layoutParams.width = i;
|
||||
layoutParams.height = i;
|
||||
imageView.setLayoutParams(layoutParams);
|
||||
}
|
||||
|
||||
public void setIconTintList(ColorStateList colorStateList) {
|
||||
Drawable drawable;
|
||||
this.f9044u = colorStateList;
|
||||
if (this.f9043t == null || (drawable = this.f9046w) == null) {
|
||||
return;
|
||||
}
|
||||
H.a.h(drawable, colorStateList);
|
||||
this.f9046w.invalidateSelf();
|
||||
}
|
||||
|
||||
public void setItemBackground(int i) {
|
||||
setItemBackground(i == 0 ? null : D.h.getDrawable(getContext(), i));
|
||||
}
|
||||
|
||||
public void setItemPaddingBottom(int i) {
|
||||
if (this.f9031e != i) {
|
||||
this.f9031e = i;
|
||||
c();
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemPaddingTop(int i) {
|
||||
if (this.f9030d != i) {
|
||||
this.f9030d = i;
|
||||
c();
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemPosition(int i) {
|
||||
this.f9041r = i;
|
||||
}
|
||||
|
||||
public void setItemRippleColor(ColorStateList colorStateList) {
|
||||
this.f9028b = colorStateList;
|
||||
d();
|
||||
}
|
||||
|
||||
public void setLabelVisibilityMode(int i) {
|
||||
if (this.f9034j != i) {
|
||||
this.f9034j = i;
|
||||
if (this.f9024D && i == 2) {
|
||||
this.f9048y = f9020I;
|
||||
} else {
|
||||
this.f9048y = f9019H;
|
||||
}
|
||||
i(getWidth());
|
||||
c();
|
||||
}
|
||||
}
|
||||
|
||||
public void setShifting(boolean z3) {
|
||||
if (this.f9035k != z3) {
|
||||
this.f9035k = z3;
|
||||
c();
|
||||
}
|
||||
}
|
||||
|
||||
public void setTextAppearanceActive(int i) {
|
||||
this.f9042s = i;
|
||||
TextView textView = this.f9040q;
|
||||
f(textView, i);
|
||||
a(this.p.getTextSize(), textView.getTextSize());
|
||||
}
|
||||
|
||||
public void setTextAppearanceActiveBoldEnabled(boolean z3) {
|
||||
setTextAppearanceActive(this.f9042s);
|
||||
TextView textView = this.f9040q;
|
||||
textView.setTypeface(textView.getTypeface(), z3 ? 1 : 0);
|
||||
}
|
||||
|
||||
public void setTextAppearanceInactive(int i) {
|
||||
TextView textView = this.p;
|
||||
f(textView, i);
|
||||
a(textView.getTextSize(), this.f9040q.getTextSize());
|
||||
}
|
||||
|
||||
public void setTextColor(ColorStateList colorStateList) {
|
||||
if (colorStateList != null) {
|
||||
this.p.setTextColor(colorStateList);
|
||||
this.f9040q.setTextColor(colorStateList);
|
||||
}
|
||||
}
|
||||
|
||||
public void setTitle(CharSequence charSequence) {
|
||||
this.p.setText(charSequence);
|
||||
this.f9040q.setText(charSequence);
|
||||
o oVar = this.f9043t;
|
||||
if (oVar == null || TextUtils.isEmpty(oVar.f7281q)) {
|
||||
setContentDescription(charSequence);
|
||||
}
|
||||
o oVar2 = this.f9043t;
|
||||
if (oVar2 != null && !TextUtils.isEmpty(oVar2.f7282r)) {
|
||||
charSequence = this.f9043t.f7282r;
|
||||
}
|
||||
W0.a(this, charSequence);
|
||||
}
|
||||
|
||||
public void setItemBackground(Drawable drawable) {
|
||||
if (drawable != null && drawable.getConstantState() != null) {
|
||||
drawable = drawable.getConstantState().newDrawable().mutate();
|
||||
}
|
||||
this.f9029c = drawable;
|
||||
d();
|
||||
}
|
||||
}
|
||||
612
apk_decompiled/sources/z2/AbstractC0675e.java
Normal file
612
apk_decompiled/sources/z2/AbstractC0675e.java
Normal file
@@ -0,0 +1,612 @@
|
||||
package z2;
|
||||
|
||||
import B0.C0023a;
|
||||
import B0.x;
|
||||
import O.X;
|
||||
import a.AbstractC0106b;
|
||||
import android.R;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.SparseArray;
|
||||
import android.util.TypedValue;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.accessibility.AccessibilityNodeInfo;
|
||||
import android.widget.ImageView;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import i2.AbstractC0396a;
|
||||
import java.util.HashSet;
|
||||
import java.util.WeakHashMap;
|
||||
import k2.C0417a;
|
||||
import l.InterfaceC0418A;
|
||||
import l.m;
|
||||
import l.o;
|
||||
|
||||
/* renamed from: z2.e, reason: case insensitive filesystem */
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class AbstractC0675e extends ViewGroup implements InterfaceC0418A {
|
||||
|
||||
/* renamed from: F, reason: collision with root package name */
|
||||
public static final int[] f9052F = {R.attr.state_checked};
|
||||
|
||||
/* renamed from: G, reason: collision with root package name */
|
||||
public static final int[] f9053G = {-16842910};
|
||||
|
||||
/* renamed from: A, reason: collision with root package name */
|
||||
public E2.k f9054A;
|
||||
|
||||
/* renamed from: B, reason: collision with root package name */
|
||||
public boolean f9055B;
|
||||
|
||||
/* renamed from: C, reason: collision with root package name */
|
||||
public ColorStateList f9056C;
|
||||
|
||||
/* renamed from: D, reason: collision with root package name */
|
||||
public C0677g f9057D;
|
||||
|
||||
/* renamed from: E, reason: collision with root package name */
|
||||
public m f9058E;
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final C0023a f9059a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final com.google.android.material.datepicker.j f9060b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final N.d f9061c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final SparseArray f9062d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public int f9063e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public AbstractC0673c[] f9064f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public int f9065g;
|
||||
public int h;
|
||||
public ColorStateList i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public int f9066j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public ColorStateList f9067k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public final ColorStateList f9068l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public int f9069m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public int f9070n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public boolean f9071o;
|
||||
public Drawable p;
|
||||
|
||||
/* renamed from: q, reason: collision with root package name */
|
||||
public ColorStateList f9072q;
|
||||
|
||||
/* renamed from: r, reason: collision with root package name */
|
||||
public int f9073r;
|
||||
|
||||
/* renamed from: s, reason: collision with root package name */
|
||||
public final SparseArray f9074s;
|
||||
|
||||
/* renamed from: t, reason: collision with root package name */
|
||||
public int f9075t;
|
||||
|
||||
/* renamed from: u, reason: collision with root package name */
|
||||
public int f9076u;
|
||||
|
||||
/* renamed from: v, reason: collision with root package name */
|
||||
public int f9077v;
|
||||
|
||||
/* renamed from: w, reason: collision with root package name */
|
||||
public boolean f9078w;
|
||||
|
||||
/* renamed from: x, reason: collision with root package name */
|
||||
public int f9079x;
|
||||
|
||||
/* renamed from: y, reason: collision with root package name */
|
||||
public int f9080y;
|
||||
|
||||
/* renamed from: z, reason: collision with root package name */
|
||||
public int f9081z;
|
||||
|
||||
public AbstractC0675e(Context context) {
|
||||
super(context);
|
||||
int i = 5;
|
||||
this.f9061c = new N.d(5);
|
||||
this.f9062d = new SparseArray(5);
|
||||
this.f9065g = 0;
|
||||
this.h = 0;
|
||||
this.f9074s = new SparseArray(5);
|
||||
this.f9075t = -1;
|
||||
this.f9076u = -1;
|
||||
this.f9077v = -1;
|
||||
this.f9055B = false;
|
||||
this.f9068l = c();
|
||||
if (isInEditMode()) {
|
||||
this.f9059a = null;
|
||||
} else {
|
||||
C0023a c0023a = new C0023a();
|
||||
this.f9059a = c0023a;
|
||||
c0023a.R(0);
|
||||
c0023a.F(AbstractC0106b.E(getContext(), com.adif.elcanomovil.R.attr.motionDurationMedium4, getResources().getInteger(com.adif.elcanomovil.R.integer.material_motion_duration_long_1)));
|
||||
c0023a.H(AbstractC0106b.F(getContext(), com.adif.elcanomovil.R.attr.motionEasingStandard, AbstractC0396a.f6816b));
|
||||
c0023a.N(new x());
|
||||
}
|
||||
this.f9060b = new com.google.android.material.datepicker.j((n2.b) this, i);
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
setImportantForAccessibility(1);
|
||||
}
|
||||
|
||||
private AbstractC0673c getNewItem() {
|
||||
AbstractC0673c abstractC0673c = (AbstractC0673c) this.f9061c.a();
|
||||
return abstractC0673c == null ? new AbstractC0673c(getContext()) : abstractC0673c;
|
||||
}
|
||||
|
||||
private void setBadgeIfNeeded(AbstractC0673c abstractC0673c) {
|
||||
C0417a c0417a;
|
||||
int id = abstractC0673c.getId();
|
||||
if (id == -1 || (c0417a = (C0417a) this.f9074s.get(id)) == null) {
|
||||
return;
|
||||
}
|
||||
abstractC0673c.setBadge(c0417a);
|
||||
}
|
||||
|
||||
@Override // l.InterfaceC0418A
|
||||
public final void a(m mVar) {
|
||||
this.f9058E = mVar;
|
||||
}
|
||||
|
||||
public final void b() {
|
||||
removeAllViews();
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
if (abstractC0673c != null) {
|
||||
this.f9061c.c(abstractC0673c);
|
||||
if (abstractC0673c.f9026F != null) {
|
||||
ImageView imageView = abstractC0673c.f9038n;
|
||||
if (imageView != null) {
|
||||
abstractC0673c.setClipChildren(true);
|
||||
abstractC0673c.setClipToPadding(true);
|
||||
C0417a c0417a = abstractC0673c.f9026F;
|
||||
if (c0417a != null) {
|
||||
if (c0417a.d() != null) {
|
||||
c0417a.d().setForeground(null);
|
||||
} else {
|
||||
imageView.getOverlay().remove(c0417a);
|
||||
}
|
||||
}
|
||||
}
|
||||
abstractC0673c.f9026F = null;
|
||||
}
|
||||
abstractC0673c.f9043t = null;
|
||||
abstractC0673c.f9049z = BitmapDescriptorFactory.HUE_RED;
|
||||
abstractC0673c.f9027a = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.f9058E.f7246f.size() == 0) {
|
||||
this.f9065g = 0;
|
||||
this.h = 0;
|
||||
this.f9064f = null;
|
||||
return;
|
||||
}
|
||||
HashSet hashSet = new HashSet();
|
||||
for (int i = 0; i < this.f9058E.f7246f.size(); i++) {
|
||||
hashSet.add(Integer.valueOf(this.f9058E.getItem(i).getItemId()));
|
||||
}
|
||||
int i4 = 0;
|
||||
while (true) {
|
||||
SparseArray sparseArray = this.f9074s;
|
||||
if (i4 >= sparseArray.size()) {
|
||||
break;
|
||||
}
|
||||
int keyAt = sparseArray.keyAt(i4);
|
||||
if (!hashSet.contains(Integer.valueOf(keyAt))) {
|
||||
sparseArray.delete(keyAt);
|
||||
}
|
||||
i4++;
|
||||
}
|
||||
this.f9064f = new AbstractC0673c[this.f9058E.f7246f.size()];
|
||||
int i5 = this.f9063e;
|
||||
boolean z3 = i5 != -1 ? i5 == 0 : this.f9058E.l().size() > 3;
|
||||
for (int i6 = 0; i6 < this.f9058E.f7246f.size(); i6++) {
|
||||
this.f9057D.f9085b = true;
|
||||
this.f9058E.getItem(i6).setCheckable(true);
|
||||
this.f9057D.f9085b = false;
|
||||
AbstractC0673c newItem = getNewItem();
|
||||
this.f9064f[i6] = newItem;
|
||||
newItem.setIconTintList(this.i);
|
||||
newItem.setIconSize(this.f9066j);
|
||||
newItem.setTextColor(this.f9068l);
|
||||
newItem.setTextAppearanceInactive(this.f9069m);
|
||||
newItem.setTextAppearanceActive(this.f9070n);
|
||||
newItem.setTextAppearanceActiveBoldEnabled(this.f9071o);
|
||||
newItem.setTextColor(this.f9067k);
|
||||
int i7 = this.f9075t;
|
||||
if (i7 != -1) {
|
||||
newItem.setItemPaddingTop(i7);
|
||||
}
|
||||
int i8 = this.f9076u;
|
||||
if (i8 != -1) {
|
||||
newItem.setItemPaddingBottom(i8);
|
||||
}
|
||||
int i9 = this.f9077v;
|
||||
if (i9 != -1) {
|
||||
newItem.setActiveIndicatorLabelPadding(i9);
|
||||
}
|
||||
newItem.setActiveIndicatorWidth(this.f9079x);
|
||||
newItem.setActiveIndicatorHeight(this.f9080y);
|
||||
newItem.setActiveIndicatorMarginHorizontal(this.f9081z);
|
||||
newItem.setActiveIndicatorDrawable(d());
|
||||
newItem.setActiveIndicatorResizeable(this.f9055B);
|
||||
newItem.setActiveIndicatorEnabled(this.f9078w);
|
||||
Drawable drawable = this.p;
|
||||
if (drawable != null) {
|
||||
newItem.setItemBackground(drawable);
|
||||
} else {
|
||||
newItem.setItemBackground(this.f9073r);
|
||||
}
|
||||
newItem.setItemRippleColor(this.f9072q);
|
||||
newItem.setShifting(z3);
|
||||
newItem.setLabelVisibilityMode(this.f9063e);
|
||||
o oVar = (o) this.f9058E.getItem(i6);
|
||||
newItem.b(oVar);
|
||||
newItem.setItemPosition(i6);
|
||||
SparseArray sparseArray2 = this.f9062d;
|
||||
int i10 = oVar.f7268a;
|
||||
newItem.setOnTouchListener((View.OnTouchListener) sparseArray2.get(i10));
|
||||
newItem.setOnClickListener(this.f9060b);
|
||||
int i11 = this.f9065g;
|
||||
if (i11 != 0 && i10 == i11) {
|
||||
this.h = i6;
|
||||
}
|
||||
setBadgeIfNeeded(newItem);
|
||||
addView(newItem);
|
||||
}
|
||||
int min = Math.min(this.f9058E.f7246f.size() - 1, this.h);
|
||||
this.h = min;
|
||||
this.f9058E.getItem(min).setChecked(true);
|
||||
}
|
||||
|
||||
public final ColorStateList c() {
|
||||
TypedValue typedValue = new TypedValue();
|
||||
if (!getContext().getTheme().resolveAttribute(R.attr.textColorSecondary, typedValue, true)) {
|
||||
return null;
|
||||
}
|
||||
ColorStateList colorStateList = D.h.getColorStateList(getContext(), typedValue.resourceId);
|
||||
if (!getContext().getTheme().resolveAttribute(com.adif.elcanomovil.R.attr.colorPrimary, typedValue, true)) {
|
||||
return null;
|
||||
}
|
||||
int i = typedValue.data;
|
||||
int defaultColor = colorStateList.getDefaultColor();
|
||||
int[] iArr = f9053G;
|
||||
return new ColorStateList(new int[][]{iArr, f9052F, ViewGroup.EMPTY_STATE_SET}, new int[]{colorStateList.getColorForState(iArr, defaultColor), i, defaultColor});
|
||||
}
|
||||
|
||||
public final E2.g d() {
|
||||
if (this.f9054A == null || this.f9056C == null) {
|
||||
return null;
|
||||
}
|
||||
E2.g gVar = new E2.g(this.f9054A);
|
||||
gVar.j(this.f9056C);
|
||||
return gVar;
|
||||
}
|
||||
|
||||
public int getActiveIndicatorLabelPadding() {
|
||||
return this.f9077v;
|
||||
}
|
||||
|
||||
public SparseArray<C0417a> getBadgeDrawables() {
|
||||
return this.f9074s;
|
||||
}
|
||||
|
||||
public ColorStateList getIconTintList() {
|
||||
return this.i;
|
||||
}
|
||||
|
||||
public ColorStateList getItemActiveIndicatorColor() {
|
||||
return this.f9056C;
|
||||
}
|
||||
|
||||
public boolean getItemActiveIndicatorEnabled() {
|
||||
return this.f9078w;
|
||||
}
|
||||
|
||||
public int getItemActiveIndicatorHeight() {
|
||||
return this.f9080y;
|
||||
}
|
||||
|
||||
public int getItemActiveIndicatorMarginHorizontal() {
|
||||
return this.f9081z;
|
||||
}
|
||||
|
||||
public E2.k getItemActiveIndicatorShapeAppearance() {
|
||||
return this.f9054A;
|
||||
}
|
||||
|
||||
public int getItemActiveIndicatorWidth() {
|
||||
return this.f9079x;
|
||||
}
|
||||
|
||||
public Drawable getItemBackground() {
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
return (abstractC0673cArr == null || abstractC0673cArr.length <= 0) ? this.p : abstractC0673cArr[0].getBackground();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public int getItemBackgroundRes() {
|
||||
return this.f9073r;
|
||||
}
|
||||
|
||||
public int getItemIconSize() {
|
||||
return this.f9066j;
|
||||
}
|
||||
|
||||
public int getItemPaddingBottom() {
|
||||
return this.f9076u;
|
||||
}
|
||||
|
||||
public int getItemPaddingTop() {
|
||||
return this.f9075t;
|
||||
}
|
||||
|
||||
public ColorStateList getItemRippleColor() {
|
||||
return this.f9072q;
|
||||
}
|
||||
|
||||
public int getItemTextAppearanceActive() {
|
||||
return this.f9070n;
|
||||
}
|
||||
|
||||
public int getItemTextAppearanceInactive() {
|
||||
return this.f9069m;
|
||||
}
|
||||
|
||||
public ColorStateList getItemTextColor() {
|
||||
return this.f9067k;
|
||||
}
|
||||
|
||||
public int getLabelVisibilityMode() {
|
||||
return this.f9063e;
|
||||
}
|
||||
|
||||
public m getMenu() {
|
||||
return this.f9058E;
|
||||
}
|
||||
|
||||
public int getSelectedItemId() {
|
||||
return this.f9065g;
|
||||
}
|
||||
|
||||
public int getSelectedItemPosition() {
|
||||
return this.h;
|
||||
}
|
||||
|
||||
public int getWindowAnimations() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo accessibilityNodeInfo) {
|
||||
super.onInitializeAccessibilityNodeInfo(accessibilityNodeInfo);
|
||||
accessibilityNodeInfo.setCollectionInfo((AccessibilityNodeInfo.CollectionInfo) A.a.s(1, this.f9058E.l().size(), 1).f7b);
|
||||
}
|
||||
|
||||
public void setActiveIndicatorLabelPadding(int i) {
|
||||
this.f9077v = i;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setActiveIndicatorLabelPadding(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setIconTintList(ColorStateList colorStateList) {
|
||||
this.i = colorStateList;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setIconTintList(colorStateList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemActiveIndicatorColor(ColorStateList colorStateList) {
|
||||
this.f9056C = colorStateList;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setActiveIndicatorDrawable(d());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemActiveIndicatorEnabled(boolean z3) {
|
||||
this.f9078w = z3;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setActiveIndicatorEnabled(z3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemActiveIndicatorHeight(int i) {
|
||||
this.f9080y = i;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setActiveIndicatorHeight(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemActiveIndicatorMarginHorizontal(int i) {
|
||||
this.f9081z = i;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setActiveIndicatorMarginHorizontal(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemActiveIndicatorResizeable(boolean z3) {
|
||||
this.f9055B = z3;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setActiveIndicatorResizeable(z3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemActiveIndicatorShapeAppearance(E2.k kVar) {
|
||||
this.f9054A = kVar;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setActiveIndicatorDrawable(d());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemActiveIndicatorWidth(int i) {
|
||||
this.f9079x = i;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setActiveIndicatorWidth(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemBackground(Drawable drawable) {
|
||||
this.p = drawable;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setItemBackground(drawable);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemBackgroundRes(int i) {
|
||||
this.f9073r = i;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setItemBackground(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemIconSize(int i) {
|
||||
this.f9066j = i;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setIconSize(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemPaddingBottom(int i) {
|
||||
this.f9076u = i;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setItemPaddingBottom(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemPaddingTop(int i) {
|
||||
this.f9075t = i;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setItemPaddingTop(i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemRippleColor(ColorStateList colorStateList) {
|
||||
this.f9072q = colorStateList;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setItemRippleColor(colorStateList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemTextAppearanceActive(int i) {
|
||||
this.f9070n = i;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setTextAppearanceActive(i);
|
||||
ColorStateList colorStateList = this.f9067k;
|
||||
if (colorStateList != null) {
|
||||
abstractC0673c.setTextColor(colorStateList);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemTextAppearanceActiveBoldEnabled(boolean z3) {
|
||||
this.f9071o = z3;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setTextAppearanceActiveBoldEnabled(z3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemTextAppearanceInactive(int i) {
|
||||
this.f9069m = i;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setTextAppearanceInactive(i);
|
||||
ColorStateList colorStateList = this.f9067k;
|
||||
if (colorStateList != null) {
|
||||
abstractC0673c.setTextColor(colorStateList);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemTextColor(ColorStateList colorStateList) {
|
||||
this.f9067k = colorStateList;
|
||||
AbstractC0673c[] abstractC0673cArr = this.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
abstractC0673c.setTextColor(colorStateList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setLabelVisibilityMode(int i) {
|
||||
this.f9063e = i;
|
||||
}
|
||||
|
||||
public void setPresenter(C0677g c0677g) {
|
||||
this.f9057D = c0677g;
|
||||
}
|
||||
}
|
||||
417
apk_decompiled/sources/z2/AbstractC0681k.java
Normal file
417
apk_decompiled/sources/z2/AbstractC0681k.java
Normal file
@@ -0,0 +1,417 @@
|
||||
package z2;
|
||||
|
||||
import O.X;
|
||||
import a.AbstractC0105a;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcelable;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.SparseArray;
|
||||
import android.view.Menu;
|
||||
import android.view.MenuInflater;
|
||||
import android.view.MenuItem;
|
||||
import android.widget.FrameLayout;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.google.android.material.bottomnavigation.BottomNavigationView;
|
||||
import h2.AbstractC0379a;
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.util.Iterator;
|
||||
import java.util.WeakHashMap;
|
||||
import java.util.concurrent.CopyOnWriteArrayList;
|
||||
import k.C0412i;
|
||||
import l.InterfaceC0418A;
|
||||
import l.y;
|
||||
import m3.l;
|
||||
import x2.m;
|
||||
|
||||
/* renamed from: z2.k, reason: case insensitive filesystem */
|
||||
/* loaded from: classes3.dex */
|
||||
public abstract class AbstractC0681k extends FrameLayout {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final C0674d f9088a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final n2.b f9089b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final C0677g f9090c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public C0412i f9091d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public InterfaceC0679i f9092e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public InterfaceC0678h f9093f;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r8v0, types: [l.y, z2.g, java.lang.Object] */
|
||||
public AbstractC0681k(Context context, AttributeSet attributeSet) {
|
||||
super(K2.a.a(context, attributeSet, R.attr.bottomNavigationStyle, 2132018084), attributeSet, R.attr.bottomNavigationStyle);
|
||||
?? obj = new Object();
|
||||
obj.f9085b = false;
|
||||
this.f9090c = obj;
|
||||
Context context2 = getContext();
|
||||
R0.h i = m.i(context2, attributeSet, AbstractC0379a.f6774w, R.attr.bottomNavigationStyle, 2132018084, 12, 10);
|
||||
C0674d c0674d = new C0674d(context2, getClass(), getMaxItemCount());
|
||||
this.f9088a = c0674d;
|
||||
n2.b bVar = new n2.b(context2);
|
||||
this.f9089b = bVar;
|
||||
obj.f9084a = bVar;
|
||||
obj.f9086c = 1;
|
||||
bVar.setPresenter(obj);
|
||||
c0674d.b(obj, c0674d.f7241a);
|
||||
getContext();
|
||||
obj.f9084a.f9058E = c0674d;
|
||||
TypedArray typedArray = (TypedArray) i.f1414b;
|
||||
if (typedArray.hasValue(6)) {
|
||||
bVar.setIconTintList(i.e(6));
|
||||
} else {
|
||||
bVar.setIconTintList(bVar.c());
|
||||
}
|
||||
setItemIconSize(typedArray.getDimensionPixelSize(5, getResources().getDimensionPixelSize(R.dimen.mtrl_navigation_bar_item_default_icon_size)));
|
||||
if (typedArray.hasValue(12)) {
|
||||
setItemTextAppearanceInactive(typedArray.getResourceId(12, 0));
|
||||
}
|
||||
if (typedArray.hasValue(10)) {
|
||||
setItemTextAppearanceActive(typedArray.getResourceId(10, 0));
|
||||
}
|
||||
setItemTextAppearanceActiveBoldEnabled(typedArray.getBoolean(11, true));
|
||||
if (typedArray.hasValue(13)) {
|
||||
setItemTextColor(i.e(13));
|
||||
}
|
||||
Drawable background = getBackground();
|
||||
ColorStateList p = l.p(background);
|
||||
if (background == null || p != null) {
|
||||
E2.g gVar = new E2.g(E2.k.b(context2, attributeSet, R.attr.bottomNavigationStyle, 2132018084).a());
|
||||
if (p != null) {
|
||||
gVar.j(p);
|
||||
}
|
||||
gVar.h(context2);
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
setBackground(gVar);
|
||||
}
|
||||
if (typedArray.hasValue(8)) {
|
||||
setItemPaddingTop(typedArray.getDimensionPixelSize(8, 0));
|
||||
}
|
||||
if (typedArray.hasValue(7)) {
|
||||
setItemPaddingBottom(typedArray.getDimensionPixelSize(7, 0));
|
||||
}
|
||||
if (typedArray.hasValue(0)) {
|
||||
setActiveIndicatorLabelPadding(typedArray.getDimensionPixelSize(0, 0));
|
||||
}
|
||||
if (typedArray.hasValue(2)) {
|
||||
setElevation(typedArray.getDimensionPixelSize(2, 0));
|
||||
}
|
||||
H.a.h(getBackground().mutate(), AbstractC0105a.v(context2, i, 1));
|
||||
setLabelVisibilityMode(typedArray.getInteger(14, -1));
|
||||
int resourceId = typedArray.getResourceId(4, 0);
|
||||
if (resourceId != 0) {
|
||||
bVar.setItemBackgroundRes(resourceId);
|
||||
} else {
|
||||
setItemRippleColor(AbstractC0105a.v(context2, i, 9));
|
||||
}
|
||||
int resourceId2 = typedArray.getResourceId(3, 0);
|
||||
if (resourceId2 != 0) {
|
||||
setItemActiveIndicatorEnabled(true);
|
||||
TypedArray obtainStyledAttributes = context2.obtainStyledAttributes(resourceId2, AbstractC0379a.f6773v);
|
||||
setItemActiveIndicatorWidth(obtainStyledAttributes.getDimensionPixelSize(1, 0));
|
||||
setItemActiveIndicatorHeight(obtainStyledAttributes.getDimensionPixelSize(0, 0));
|
||||
setItemActiveIndicatorMarginHorizontal(obtainStyledAttributes.getDimensionPixelOffset(3, 0));
|
||||
setItemActiveIndicatorColor(AbstractC0105a.w(context2, obtainStyledAttributes, 2));
|
||||
setItemActiveIndicatorShapeAppearance(E2.k.a(context2, obtainStyledAttributes.getResourceId(4, 0), 0, new E2.a(0)).a());
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
if (typedArray.hasValue(15)) {
|
||||
int resourceId3 = typedArray.getResourceId(15, 0);
|
||||
obj.f9085b = true;
|
||||
getMenuInflater().inflate(resourceId3, c0674d);
|
||||
obj.f9085b = false;
|
||||
obj.h(true);
|
||||
}
|
||||
i.n();
|
||||
addView(bVar);
|
||||
c0674d.f7245e = new h3.d((BottomNavigationView) this, 11);
|
||||
}
|
||||
|
||||
private MenuInflater getMenuInflater() {
|
||||
if (this.f9091d == null) {
|
||||
this.f9091d = new C0412i(getContext());
|
||||
}
|
||||
return this.f9091d;
|
||||
}
|
||||
|
||||
public int getActiveIndicatorLabelPadding() {
|
||||
return this.f9089b.getActiveIndicatorLabelPadding();
|
||||
}
|
||||
|
||||
public ColorStateList getItemActiveIndicatorColor() {
|
||||
return this.f9089b.getItemActiveIndicatorColor();
|
||||
}
|
||||
|
||||
public int getItemActiveIndicatorHeight() {
|
||||
return this.f9089b.getItemActiveIndicatorHeight();
|
||||
}
|
||||
|
||||
public int getItemActiveIndicatorMarginHorizontal() {
|
||||
return this.f9089b.getItemActiveIndicatorMarginHorizontal();
|
||||
}
|
||||
|
||||
public E2.k getItemActiveIndicatorShapeAppearance() {
|
||||
return this.f9089b.getItemActiveIndicatorShapeAppearance();
|
||||
}
|
||||
|
||||
public int getItemActiveIndicatorWidth() {
|
||||
return this.f9089b.getItemActiveIndicatorWidth();
|
||||
}
|
||||
|
||||
public Drawable getItemBackground() {
|
||||
return this.f9089b.getItemBackground();
|
||||
}
|
||||
|
||||
@Deprecated
|
||||
public int getItemBackgroundResource() {
|
||||
return this.f9089b.getItemBackgroundRes();
|
||||
}
|
||||
|
||||
public int getItemIconSize() {
|
||||
return this.f9089b.getItemIconSize();
|
||||
}
|
||||
|
||||
public ColorStateList getItemIconTintList() {
|
||||
return this.f9089b.getIconTintList();
|
||||
}
|
||||
|
||||
public int getItemPaddingBottom() {
|
||||
return this.f9089b.getItemPaddingBottom();
|
||||
}
|
||||
|
||||
public int getItemPaddingTop() {
|
||||
return this.f9089b.getItemPaddingTop();
|
||||
}
|
||||
|
||||
public ColorStateList getItemRippleColor() {
|
||||
return this.f9089b.getItemRippleColor();
|
||||
}
|
||||
|
||||
public int getItemTextAppearanceActive() {
|
||||
return this.f9089b.getItemTextAppearanceActive();
|
||||
}
|
||||
|
||||
public int getItemTextAppearanceInactive() {
|
||||
return this.f9089b.getItemTextAppearanceInactive();
|
||||
}
|
||||
|
||||
public ColorStateList getItemTextColor() {
|
||||
return this.f9089b.getItemTextColor();
|
||||
}
|
||||
|
||||
public int getLabelVisibilityMode() {
|
||||
return this.f9089b.getLabelVisibilityMode();
|
||||
}
|
||||
|
||||
public abstract int getMaxItemCount();
|
||||
|
||||
public Menu getMenu() {
|
||||
return this.f9088a;
|
||||
}
|
||||
|
||||
public InterfaceC0418A getMenuView() {
|
||||
return this.f9089b;
|
||||
}
|
||||
|
||||
public C0677g getPresenter() {
|
||||
return this.f9090c;
|
||||
}
|
||||
|
||||
public int getSelectedItemId() {
|
||||
return this.f9089b.getSelectedItemId();
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final void onAttachedToWindow() {
|
||||
super.onAttachedToWindow();
|
||||
Drawable background = getBackground();
|
||||
if (background instanceof E2.g) {
|
||||
m3.d.H(this, (E2.g) background);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onRestoreInstanceState(Parcelable parcelable) {
|
||||
Parcelable parcelable2;
|
||||
if (!(parcelable instanceof C0680j)) {
|
||||
super.onRestoreInstanceState(parcelable);
|
||||
return;
|
||||
}
|
||||
C0680j c0680j = (C0680j) parcelable;
|
||||
super.onRestoreInstanceState(c0680j.f1880a);
|
||||
Bundle bundle = c0680j.f9087c;
|
||||
C0674d c0674d = this.f9088a;
|
||||
c0674d.getClass();
|
||||
SparseArray sparseParcelableArray = bundle.getSparseParcelableArray("android:menu:presenters");
|
||||
if (sparseParcelableArray != null) {
|
||||
CopyOnWriteArrayList copyOnWriteArrayList = c0674d.f7258u;
|
||||
if (copyOnWriteArrayList.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
Iterator it = copyOnWriteArrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
WeakReference weakReference = (WeakReference) it.next();
|
||||
y yVar = (y) weakReference.get();
|
||||
if (yVar == null) {
|
||||
copyOnWriteArrayList.remove(weakReference);
|
||||
} else {
|
||||
int id = yVar.getId();
|
||||
if (id > 0 && (parcelable2 = (Parcelable) sparseParcelableArray.get(id)) != null) {
|
||||
yVar.d(parcelable2);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r1v0, types: [android.os.Parcelable, W.b, z2.j] */
|
||||
@Override // android.view.View
|
||||
public final Parcelable onSaveInstanceState() {
|
||||
Parcelable k4;
|
||||
?? bVar = new W.b(super.onSaveInstanceState());
|
||||
Bundle bundle = new Bundle();
|
||||
bVar.f9087c = bundle;
|
||||
CopyOnWriteArrayList copyOnWriteArrayList = this.f9088a.f7258u;
|
||||
if (copyOnWriteArrayList.isEmpty()) {
|
||||
return bVar;
|
||||
}
|
||||
SparseArray<? extends Parcelable> sparseArray = new SparseArray<>();
|
||||
Iterator it = copyOnWriteArrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
WeakReference weakReference = (WeakReference) it.next();
|
||||
y yVar = (y) weakReference.get();
|
||||
if (yVar == null) {
|
||||
copyOnWriteArrayList.remove(weakReference);
|
||||
} else {
|
||||
int id = yVar.getId();
|
||||
if (id > 0 && (k4 = yVar.k()) != null) {
|
||||
sparseArray.put(id, k4);
|
||||
}
|
||||
}
|
||||
}
|
||||
bundle.putSparseParcelableArray("android:menu:presenters", sparseArray);
|
||||
return bVar;
|
||||
}
|
||||
|
||||
public void setActiveIndicatorLabelPadding(int i) {
|
||||
this.f9089b.setActiveIndicatorLabelPadding(i);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setElevation(float f2) {
|
||||
super.setElevation(f2);
|
||||
Drawable background = getBackground();
|
||||
if (background instanceof E2.g) {
|
||||
((E2.g) background).i(f2);
|
||||
}
|
||||
}
|
||||
|
||||
public void setItemActiveIndicatorColor(ColorStateList colorStateList) {
|
||||
this.f9089b.setItemActiveIndicatorColor(colorStateList);
|
||||
}
|
||||
|
||||
public void setItemActiveIndicatorEnabled(boolean z3) {
|
||||
this.f9089b.setItemActiveIndicatorEnabled(z3);
|
||||
}
|
||||
|
||||
public void setItemActiveIndicatorHeight(int i) {
|
||||
this.f9089b.setItemActiveIndicatorHeight(i);
|
||||
}
|
||||
|
||||
public void setItemActiveIndicatorMarginHorizontal(int i) {
|
||||
this.f9089b.setItemActiveIndicatorMarginHorizontal(i);
|
||||
}
|
||||
|
||||
public void setItemActiveIndicatorShapeAppearance(E2.k kVar) {
|
||||
this.f9089b.setItemActiveIndicatorShapeAppearance(kVar);
|
||||
}
|
||||
|
||||
public void setItemActiveIndicatorWidth(int i) {
|
||||
this.f9089b.setItemActiveIndicatorWidth(i);
|
||||
}
|
||||
|
||||
public void setItemBackground(Drawable drawable) {
|
||||
this.f9089b.setItemBackground(drawable);
|
||||
}
|
||||
|
||||
public void setItemBackgroundResource(int i) {
|
||||
this.f9089b.setItemBackgroundRes(i);
|
||||
}
|
||||
|
||||
public void setItemIconSize(int i) {
|
||||
this.f9089b.setItemIconSize(i);
|
||||
}
|
||||
|
||||
public void setItemIconSizeRes(int i) {
|
||||
setItemIconSize(getResources().getDimensionPixelSize(i));
|
||||
}
|
||||
|
||||
public void setItemIconTintList(ColorStateList colorStateList) {
|
||||
this.f9089b.setIconTintList(colorStateList);
|
||||
}
|
||||
|
||||
public void setItemPaddingBottom(int i) {
|
||||
this.f9089b.setItemPaddingBottom(i);
|
||||
}
|
||||
|
||||
public void setItemPaddingTop(int i) {
|
||||
this.f9089b.setItemPaddingTop(i);
|
||||
}
|
||||
|
||||
public void setItemRippleColor(ColorStateList colorStateList) {
|
||||
this.f9089b.setItemRippleColor(colorStateList);
|
||||
}
|
||||
|
||||
public void setItemTextAppearanceActive(int i) {
|
||||
this.f9089b.setItemTextAppearanceActive(i);
|
||||
}
|
||||
|
||||
public void setItemTextAppearanceActiveBoldEnabled(boolean z3) {
|
||||
this.f9089b.setItemTextAppearanceActiveBoldEnabled(z3);
|
||||
}
|
||||
|
||||
public void setItemTextAppearanceInactive(int i) {
|
||||
this.f9089b.setItemTextAppearanceInactive(i);
|
||||
}
|
||||
|
||||
public void setItemTextColor(ColorStateList colorStateList) {
|
||||
this.f9089b.setItemTextColor(colorStateList);
|
||||
}
|
||||
|
||||
public void setLabelVisibilityMode(int i) {
|
||||
n2.b bVar = this.f9089b;
|
||||
if (bVar.getLabelVisibilityMode() != i) {
|
||||
bVar.setLabelVisibilityMode(i);
|
||||
this.f9090c.h(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void setOnItemReselectedListener(InterfaceC0678h interfaceC0678h) {
|
||||
this.f9093f = interfaceC0678h;
|
||||
}
|
||||
|
||||
public void setOnItemSelectedListener(InterfaceC0679i interfaceC0679i) {
|
||||
this.f9092e = interfaceC0679i;
|
||||
}
|
||||
|
||||
public void setSelectedItemId(int i) {
|
||||
C0674d c0674d = this.f9088a;
|
||||
MenuItem findItem = c0674d.findItem(i);
|
||||
if (findItem == null || c0674d.q(findItem, this.f9090c, 0)) {
|
||||
return;
|
||||
}
|
||||
findItem.setChecked(true);
|
||||
}
|
||||
}
|
||||
24
apk_decompiled/sources/z2/C0671a.java
Normal file
24
apk_decompiled/sources/z2/C0671a.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package z2;
|
||||
|
||||
import android.animation.ValueAnimator;
|
||||
|
||||
/* renamed from: z2.a, reason: case insensitive filesystem */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class C0671a implements ValueAnimator.AnimatorUpdateListener {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final /* synthetic */ float f9016a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final /* synthetic */ AbstractC0673c f9017b;
|
||||
|
||||
public C0671a(AbstractC0673c abstractC0673c, float f2) {
|
||||
this.f9017b = abstractC0673c;
|
||||
this.f9016a = f2;
|
||||
}
|
||||
|
||||
@Override // android.animation.ValueAnimator.AnimatorUpdateListener
|
||||
public final void onAnimationUpdate(ValueAnimator valueAnimator) {
|
||||
this.f9017b.e(((Float) valueAnimator.getAnimatedValue()).floatValue(), this.f9016a);
|
||||
}
|
||||
}
|
||||
13
apk_decompiled/sources/z2/C0672b.java
Normal file
13
apk_decompiled/sources/z2/C0672b.java
Normal file
@@ -0,0 +1,13 @@
|
||||
package z2;
|
||||
|
||||
import f0.C0338b;
|
||||
import i2.AbstractC0396a;
|
||||
|
||||
/* renamed from: z2.b, reason: case insensitive filesystem */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class C0672b extends C0338b {
|
||||
@Override // f0.C0338b
|
||||
public final float i(float f2, float f4) {
|
||||
return AbstractC0396a.a(0.4f, 1.0f, f2);
|
||||
}
|
||||
}
|
||||
49
apk_decompiled/sources/z2/C0674d.java
Normal file
49
apk_decompiled/sources/z2/C0674d.java
Normal file
@@ -0,0 +1,49 @@
|
||||
package z2;
|
||||
|
||||
import C.w;
|
||||
import android.content.Context;
|
||||
import android.view.SubMenu;
|
||||
import l.m;
|
||||
import l.o;
|
||||
|
||||
/* renamed from: z2.d, reason: case insensitive filesystem */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class C0674d extends m {
|
||||
|
||||
/* renamed from: A, reason: collision with root package name */
|
||||
public final int f9050A;
|
||||
|
||||
/* renamed from: z, reason: collision with root package name */
|
||||
public final Class f9051z;
|
||||
|
||||
public C0674d(Context context, Class cls, int i) {
|
||||
super(context);
|
||||
this.f9051z = cls;
|
||||
this.f9050A = i;
|
||||
}
|
||||
|
||||
@Override // l.m
|
||||
public final o a(int i, int i4, int i5, CharSequence charSequence) {
|
||||
int size = this.f7246f.size() + 1;
|
||||
int i6 = this.f9050A;
|
||||
if (size <= i6) {
|
||||
w();
|
||||
o a2 = super.a(i, i4, i5, charSequence);
|
||||
a2.f(true);
|
||||
v();
|
||||
return a2;
|
||||
}
|
||||
String simpleName = this.f9051z.getSimpleName();
|
||||
StringBuilder sb = new StringBuilder("Maximum number of items supported by ");
|
||||
sb.append(simpleName);
|
||||
sb.append(" is ");
|
||||
sb.append(i6);
|
||||
sb.append(". Limit can be checked with ");
|
||||
throw new IllegalArgumentException(w.r(sb, simpleName, "#getMaxItemCount()"));
|
||||
}
|
||||
|
||||
@Override // l.m, android.view.Menu
|
||||
public final SubMenu addSubMenu(int i, int i4, int i5, CharSequence charSequence) {
|
||||
throw new UnsupportedOperationException(this.f9051z.getSimpleName().concat(" does not support submenus"));
|
||||
}
|
||||
}
|
||||
27
apk_decompiled/sources/z2/C0676f.java
Normal file
27
apk_decompiled/sources/z2/C0676f.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package z2;
|
||||
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
/* renamed from: z2.f, reason: case insensitive filesystem */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class C0676f implements Parcelable {
|
||||
public static final Parcelable.Creator<C0676f> CREATOR = new D0.a(18);
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f9082a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public x2.f f9083b;
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final int describeContents() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
parcel.writeInt(this.f9082a);
|
||||
parcel.writeParcelable(this.f9083b, 0);
|
||||
}
|
||||
}
|
||||
177
apk_decompiled/sources/z2/C0677g.java
Normal file
177
apk_decompiled/sources/z2/C0677g.java
Normal file
@@ -0,0 +1,177 @@
|
||||
package z2;
|
||||
|
||||
import B0.B;
|
||||
import B0.C0023a;
|
||||
import android.content.Context;
|
||||
import android.os.Parcelable;
|
||||
import android.util.SparseArray;
|
||||
import android.view.MenuItem;
|
||||
import k2.C0417a;
|
||||
import l.SubMenuC0422E;
|
||||
import l.m;
|
||||
import l.o;
|
||||
import l.y;
|
||||
|
||||
/* renamed from: z2.g, reason: case insensitive filesystem */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class C0677g implements y {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public n2.b f9084a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public boolean f9085b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public int f9086c;
|
||||
|
||||
@Override // l.y
|
||||
public final void b(m mVar, boolean z3) {
|
||||
}
|
||||
|
||||
@Override // l.y
|
||||
public final void d(Parcelable parcelable) {
|
||||
SparseArray sparseArray;
|
||||
if (parcelable instanceof C0676f) {
|
||||
n2.b bVar = this.f9084a;
|
||||
C0676f c0676f = (C0676f) parcelable;
|
||||
int i = c0676f.f9082a;
|
||||
int size = bVar.f9058E.f7246f.size();
|
||||
int i4 = 0;
|
||||
while (true) {
|
||||
if (i4 >= size) {
|
||||
break;
|
||||
}
|
||||
MenuItem item = bVar.f9058E.getItem(i4);
|
||||
if (i == item.getItemId()) {
|
||||
bVar.f9065g = i;
|
||||
bVar.h = i4;
|
||||
item.setChecked(true);
|
||||
break;
|
||||
}
|
||||
i4++;
|
||||
}
|
||||
Context context = this.f9084a.getContext();
|
||||
x2.f fVar = c0676f.f9083b;
|
||||
SparseArray sparseArray2 = new SparseArray(fVar.size());
|
||||
for (int i5 = 0; i5 < fVar.size(); i5++) {
|
||||
int keyAt = fVar.keyAt(i5);
|
||||
k2.b bVar2 = (k2.b) fVar.valueAt(i5);
|
||||
sparseArray2.put(keyAt, bVar2 != null ? new C0417a(context, bVar2) : null);
|
||||
}
|
||||
n2.b bVar3 = this.f9084a;
|
||||
bVar3.getClass();
|
||||
int i6 = 0;
|
||||
while (true) {
|
||||
int size2 = sparseArray2.size();
|
||||
sparseArray = bVar3.f9074s;
|
||||
if (i6 >= size2) {
|
||||
break;
|
||||
}
|
||||
int keyAt2 = sparseArray2.keyAt(i6);
|
||||
if (sparseArray.indexOfKey(keyAt2) < 0) {
|
||||
sparseArray.append(keyAt2, (C0417a) sparseArray2.get(keyAt2));
|
||||
}
|
||||
i6++;
|
||||
}
|
||||
AbstractC0673c[] abstractC0673cArr = bVar3.f9064f;
|
||||
if (abstractC0673cArr != null) {
|
||||
for (AbstractC0673c abstractC0673c : abstractC0673cArr) {
|
||||
C0417a c0417a = (C0417a) sparseArray.get(abstractC0673c.getId());
|
||||
if (c0417a != null) {
|
||||
abstractC0673c.setBadge(c0417a);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // l.y
|
||||
public final boolean g(o oVar) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // l.y
|
||||
public final int getId() {
|
||||
return this.f9086c;
|
||||
}
|
||||
|
||||
@Override // l.y
|
||||
public final void h(boolean z3) {
|
||||
C0023a c0023a;
|
||||
if (this.f9085b) {
|
||||
return;
|
||||
}
|
||||
if (z3) {
|
||||
this.f9084a.b();
|
||||
return;
|
||||
}
|
||||
n2.b bVar = this.f9084a;
|
||||
m mVar = bVar.f9058E;
|
||||
if (mVar == null || bVar.f9064f == null) {
|
||||
return;
|
||||
}
|
||||
int size = mVar.f7246f.size();
|
||||
if (size != bVar.f9064f.length) {
|
||||
bVar.b();
|
||||
return;
|
||||
}
|
||||
int i = bVar.f9065g;
|
||||
for (int i4 = 0; i4 < size; i4++) {
|
||||
MenuItem item = bVar.f9058E.getItem(i4);
|
||||
if (item.isChecked()) {
|
||||
bVar.f9065g = item.getItemId();
|
||||
bVar.h = i4;
|
||||
}
|
||||
}
|
||||
if (i != bVar.f9065g && (c0023a = bVar.f9059a) != null) {
|
||||
B.a(bVar, c0023a);
|
||||
}
|
||||
int i5 = bVar.f9063e;
|
||||
boolean z4 = i5 != -1 ? i5 == 0 : bVar.f9058E.l().size() > 3;
|
||||
for (int i6 = 0; i6 < size; i6++) {
|
||||
bVar.f9057D.f9085b = true;
|
||||
bVar.f9064f[i6].setLabelVisibilityMode(bVar.f9063e);
|
||||
bVar.f9064f[i6].setShifting(z4);
|
||||
bVar.f9064f[i6].b((o) bVar.f9058E.getItem(i6));
|
||||
bVar.f9057D.f9085b = false;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // l.y
|
||||
public final void i(Context context, m mVar) {
|
||||
this.f9084a.f9058E = mVar;
|
||||
}
|
||||
|
||||
@Override // l.y
|
||||
public final boolean j() {
|
||||
return false;
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r0v0, types: [android.os.Parcelable, z2.f, java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r1v2, types: [android.util.SparseArray, x2.f] */
|
||||
@Override // l.y
|
||||
public final Parcelable k() {
|
||||
?? obj = new Object();
|
||||
obj.f9082a = this.f9084a.getSelectedItemId();
|
||||
SparseArray<C0417a> badgeDrawables = this.f9084a.getBadgeDrawables();
|
||||
?? sparseArray = new SparseArray();
|
||||
for (int i = 0; i < badgeDrawables.size(); i++) {
|
||||
int keyAt = badgeDrawables.keyAt(i);
|
||||
C0417a valueAt = badgeDrawables.valueAt(i);
|
||||
sparseArray.put(keyAt, valueAt != null ? valueAt.f7054e.f7088a : null);
|
||||
}
|
||||
obj.f9083b = sparseArray;
|
||||
return obj;
|
||||
}
|
||||
|
||||
@Override // l.y
|
||||
public final boolean l(SubMenuC0422E subMenuC0422E) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // l.y
|
||||
public final boolean m(o oVar) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
25
apk_decompiled/sources/z2/C0680j.java
Normal file
25
apk_decompiled/sources/z2/C0680j.java
Normal file
@@ -0,0 +1,25 @@
|
||||
package z2;
|
||||
|
||||
import android.os.Bundle;
|
||||
import android.os.Parcel;
|
||||
import android.os.Parcelable;
|
||||
|
||||
/* renamed from: z2.j, reason: case insensitive filesystem */
|
||||
/* loaded from: classes3.dex */
|
||||
public final class C0680j extends W.b {
|
||||
public static final Parcelable.Creator<C0680j> CREATOR = new A.g(12);
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public Bundle f9087c;
|
||||
|
||||
public C0680j(Parcel parcel, ClassLoader classLoader) {
|
||||
super(parcel, classLoader);
|
||||
this.f9087c = parcel.readBundle(classLoader == null ? C0680j.class.getClassLoader() : classLoader);
|
||||
}
|
||||
|
||||
@Override // W.b, android.os.Parcelable
|
||||
public final void writeToParcel(Parcel parcel, int i) {
|
||||
super.writeToParcel(parcel, i);
|
||||
parcel.writeBundle(this.f9087c);
|
||||
}
|
||||
}
|
||||
6
apk_decompiled/sources/z2/InterfaceC0678h.java
Normal file
6
apk_decompiled/sources/z2/InterfaceC0678h.java
Normal file
@@ -0,0 +1,6 @@
|
||||
package z2;
|
||||
|
||||
/* renamed from: z2.h, reason: case insensitive filesystem */
|
||||
/* loaded from: classes3.dex */
|
||||
public interface InterfaceC0678h {
|
||||
}
|
||||
6
apk_decompiled/sources/z2/InterfaceC0679i.java
Normal file
6
apk_decompiled/sources/z2/InterfaceC0679i.java
Normal file
@@ -0,0 +1,6 @@
|
||||
package z2;
|
||||
|
||||
/* renamed from: z2.i, reason: case insensitive filesystem */
|
||||
/* loaded from: classes3.dex */
|
||||
public interface InterfaceC0679i {
|
||||
}
|
||||
Reference in New Issue
Block a user