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,289 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.ActionMode;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.widget.FrameLayout;
|
||||
import com.adif.elcanomovil.R;
|
||||
import f.AbstractC0336a;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import m.C0452b;
|
||||
import m.H0;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ActionBarContainer extends FrameLayout {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public boolean f2360a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public View f2361b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public View f2362c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public Drawable f2363d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public Drawable f2364e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public Drawable f2365f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final boolean f2366g;
|
||||
public boolean h;
|
||||
public final int i;
|
||||
|
||||
public ActionBarContainer(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
setBackground(new C0452b(this));
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC0336a.f6422a);
|
||||
boolean z3 = false;
|
||||
this.f2363d = obtainStyledAttributes.getDrawable(0);
|
||||
this.f2364e = obtainStyledAttributes.getDrawable(2);
|
||||
this.i = obtainStyledAttributes.getDimensionPixelSize(13, -1);
|
||||
if (getId() == R.id.split_action_bar) {
|
||||
this.f2366g = true;
|
||||
this.f2365f = obtainStyledAttributes.getDrawable(1);
|
||||
}
|
||||
obtainStyledAttributes.recycle();
|
||||
if (!this.f2366g ? !(this.f2363d != null || this.f2364e != null) : this.f2365f == null) {
|
||||
z3 = true;
|
||||
}
|
||||
setWillNotDraw(z3);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final void drawableStateChanged() {
|
||||
super.drawableStateChanged();
|
||||
Drawable drawable = this.f2363d;
|
||||
if (drawable != null && drawable.isStateful()) {
|
||||
this.f2363d.setState(getDrawableState());
|
||||
}
|
||||
Drawable drawable2 = this.f2364e;
|
||||
if (drawable2 != null && drawable2.isStateful()) {
|
||||
this.f2364e.setState(getDrawableState());
|
||||
}
|
||||
Drawable drawable3 = this.f2365f;
|
||||
if (drawable3 == null || !drawable3.isStateful()) {
|
||||
return;
|
||||
}
|
||||
this.f2365f.setState(getDrawableState());
|
||||
}
|
||||
|
||||
public View getTabContainer() {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final void jumpDrawablesToCurrentState() {
|
||||
super.jumpDrawablesToCurrentState();
|
||||
Drawable drawable = this.f2363d;
|
||||
if (drawable != null) {
|
||||
drawable.jumpToCurrentState();
|
||||
}
|
||||
Drawable drawable2 = this.f2364e;
|
||||
if (drawable2 != null) {
|
||||
drawable2.jumpToCurrentState();
|
||||
}
|
||||
Drawable drawable3 = this.f2365f;
|
||||
if (drawable3 != null) {
|
||||
drawable3.jumpToCurrentState();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onFinishInflate() {
|
||||
super.onFinishInflate();
|
||||
this.f2361b = findViewById(R.id.action_bar);
|
||||
this.f2362c = findViewById(R.id.action_context_bar);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final boolean onHoverEvent(MotionEvent motionEvent) {
|
||||
super.onHoverEvent(motionEvent);
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public final boolean onInterceptTouchEvent(MotionEvent motionEvent) {
|
||||
return this.f2360a || super.onInterceptTouchEvent(motionEvent);
|
||||
}
|
||||
|
||||
@Override // android.widget.FrameLayout, android.view.ViewGroup, android.view.View
|
||||
public final void onLayout(boolean z3, int i, int i4, int i5, int i6) {
|
||||
super.onLayout(z3, i, i4, i5, i6);
|
||||
boolean z4 = true;
|
||||
if (this.f2366g) {
|
||||
Drawable drawable = this.f2365f;
|
||||
if (drawable != null) {
|
||||
drawable.setBounds(0, 0, getMeasuredWidth(), getMeasuredHeight());
|
||||
} else {
|
||||
z4 = false;
|
||||
}
|
||||
} else {
|
||||
if (this.f2363d == null) {
|
||||
z4 = false;
|
||||
} else if (this.f2361b.getVisibility() == 0) {
|
||||
this.f2363d.setBounds(this.f2361b.getLeft(), this.f2361b.getTop(), this.f2361b.getRight(), this.f2361b.getBottom());
|
||||
} else {
|
||||
View view = this.f2362c;
|
||||
if (view == null || view.getVisibility() != 0) {
|
||||
this.f2363d.setBounds(0, 0, 0, 0);
|
||||
} else {
|
||||
this.f2363d.setBounds(this.f2362c.getLeft(), this.f2362c.getTop(), this.f2362c.getRight(), this.f2362c.getBottom());
|
||||
}
|
||||
}
|
||||
this.h = false;
|
||||
}
|
||||
if (z4) {
|
||||
invalidate();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.FrameLayout, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
int i5;
|
||||
if (this.f2361b == null && View.MeasureSpec.getMode(i4) == Integer.MIN_VALUE && (i5 = this.i) >= 0) {
|
||||
i4 = View.MeasureSpec.makeMeasureSpec(Math.min(i5, View.MeasureSpec.getSize(i4)), IntCompanionObject.MIN_VALUE);
|
||||
}
|
||||
super.onMeasure(i, i4);
|
||||
if (this.f2361b == null) {
|
||||
return;
|
||||
}
|
||||
View.MeasureSpec.getMode(i4);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final boolean onTouchEvent(MotionEvent motionEvent) {
|
||||
super.onTouchEvent(motionEvent);
|
||||
return true;
|
||||
}
|
||||
|
||||
public void setPrimaryBackground(Drawable drawable) {
|
||||
Drawable drawable2 = this.f2363d;
|
||||
if (drawable2 != null) {
|
||||
drawable2.setCallback(null);
|
||||
unscheduleDrawable(this.f2363d);
|
||||
}
|
||||
this.f2363d = drawable;
|
||||
if (drawable != null) {
|
||||
drawable.setCallback(this);
|
||||
View view = this.f2361b;
|
||||
if (view != null) {
|
||||
this.f2363d.setBounds(view.getLeft(), this.f2361b.getTop(), this.f2361b.getRight(), this.f2361b.getBottom());
|
||||
}
|
||||
}
|
||||
boolean z3 = false;
|
||||
if (!this.f2366g ? !(this.f2363d != null || this.f2364e != null) : this.f2365f == null) {
|
||||
z3 = true;
|
||||
}
|
||||
setWillNotDraw(z3);
|
||||
invalidate();
|
||||
invalidateOutline();
|
||||
}
|
||||
|
||||
public void setSplitBackground(Drawable drawable) {
|
||||
Drawable drawable2;
|
||||
Drawable drawable3 = this.f2365f;
|
||||
if (drawable3 != null) {
|
||||
drawable3.setCallback(null);
|
||||
unscheduleDrawable(this.f2365f);
|
||||
}
|
||||
this.f2365f = drawable;
|
||||
boolean z3 = this.f2366g;
|
||||
boolean z4 = false;
|
||||
if (drawable != null) {
|
||||
drawable.setCallback(this);
|
||||
if (z3 && (drawable2 = this.f2365f) != null) {
|
||||
drawable2.setBounds(0, 0, getMeasuredWidth(), getMeasuredHeight());
|
||||
}
|
||||
}
|
||||
if (!z3 ? !(this.f2363d != null || this.f2364e != null) : this.f2365f == null) {
|
||||
z4 = true;
|
||||
}
|
||||
setWillNotDraw(z4);
|
||||
invalidate();
|
||||
invalidateOutline();
|
||||
}
|
||||
|
||||
public void setStackedBackground(Drawable drawable) {
|
||||
Drawable drawable2 = this.f2364e;
|
||||
if (drawable2 != null) {
|
||||
drawable2.setCallback(null);
|
||||
unscheduleDrawable(this.f2364e);
|
||||
}
|
||||
this.f2364e = drawable;
|
||||
if (drawable != null) {
|
||||
drawable.setCallback(this);
|
||||
if (this.h && this.f2364e != null) {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
boolean z3 = false;
|
||||
if (!this.f2366g ? !(this.f2363d != null || this.f2364e != null) : this.f2365f == null) {
|
||||
z3 = true;
|
||||
}
|
||||
setWillNotDraw(z3);
|
||||
invalidate();
|
||||
invalidateOutline();
|
||||
}
|
||||
|
||||
public void setTabContainer(H0 h02) {
|
||||
}
|
||||
|
||||
public void setTransitioning(boolean z3) {
|
||||
this.f2360a = z3;
|
||||
setDescendantFocusability(z3 ? 393216 : 262144);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setVisibility(int i) {
|
||||
super.setVisibility(i);
|
||||
boolean z3 = i == 0;
|
||||
Drawable drawable = this.f2363d;
|
||||
if (drawable != null) {
|
||||
drawable.setVisible(z3, false);
|
||||
}
|
||||
Drawable drawable2 = this.f2364e;
|
||||
if (drawable2 != null) {
|
||||
drawable2.setVisible(z3, false);
|
||||
}
|
||||
Drawable drawable3 = this.f2365f;
|
||||
if (drawable3 != null) {
|
||||
drawable3.setVisible(z3, false);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.ViewParent
|
||||
public final ActionMode startActionModeForChild(View view, ActionMode.Callback callback) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final boolean verifyDrawable(Drawable drawable) {
|
||||
Drawable drawable2 = this.f2363d;
|
||||
boolean z3 = this.f2366g;
|
||||
if (drawable == drawable2 && !z3) {
|
||||
return true;
|
||||
}
|
||||
if (drawable == this.f2364e && this.h) {
|
||||
return true;
|
||||
}
|
||||
return (drawable == this.f2365f && z3) || super.verifyDrawable(drawable);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.ViewParent
|
||||
public final ActionMode startActionModeForChild(View view, ActionMode.Callback callback, int i) {
|
||||
if (i != 0) {
|
||||
return super.startActionModeForChild(view, callback, i);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,487 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import O.X;
|
||||
import O.h0;
|
||||
import a.AbstractC0106b;
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.TypedArray;
|
||||
import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.TypedValue;
|
||||
import android.view.ContextThemeWrapper;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.TextView;
|
||||
import com.adif.elcanomovil.R;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import com.google.android.material.datepicker.j;
|
||||
import f.AbstractC0336a;
|
||||
import k.AbstractC0405b;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import l.InterfaceC0418A;
|
||||
import l.m;
|
||||
import m.C0450a;
|
||||
import m.C0462g;
|
||||
import m.C0472l;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ActionBarContextView extends ViewGroup {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final C0450a f2367a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final Context f2368b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public ActionMenuView f2369c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public C0472l f2370d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public int f2371e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public h0 f2372f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public boolean f2373g;
|
||||
public boolean h;
|
||||
public CharSequence i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public CharSequence f2374j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public View f2375k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public View f2376l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public View f2377m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public LinearLayout f2378n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public TextView f2379o;
|
||||
public TextView p;
|
||||
|
||||
/* renamed from: q, reason: collision with root package name */
|
||||
public final int f2380q;
|
||||
|
||||
/* renamed from: r, reason: collision with root package name */
|
||||
public final int f2381r;
|
||||
|
||||
/* renamed from: s, reason: collision with root package name */
|
||||
public boolean f2382s;
|
||||
|
||||
/* renamed from: t, reason: collision with root package name */
|
||||
public final int f2383t;
|
||||
|
||||
public ActionBarContextView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet, R.attr.actionModeStyle);
|
||||
int resourceId;
|
||||
this.f2367a = new C0450a(this);
|
||||
TypedValue typedValue = new TypedValue();
|
||||
if (!context.getTheme().resolveAttribute(R.attr.actionBarPopupTheme, typedValue, true) || typedValue.resourceId == 0) {
|
||||
this.f2368b = context;
|
||||
} else {
|
||||
this.f2368b = new ContextThemeWrapper(context, typedValue.resourceId);
|
||||
}
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC0336a.f6425d, R.attr.actionModeStyle, 0);
|
||||
setBackground((!obtainStyledAttributes.hasValue(0) || (resourceId = obtainStyledAttributes.getResourceId(0, 0)) == 0) ? obtainStyledAttributes.getDrawable(0) : AbstractC0106b.m(context, resourceId));
|
||||
this.f2380q = obtainStyledAttributes.getResourceId(5, 0);
|
||||
this.f2381r = obtainStyledAttributes.getResourceId(4, 0);
|
||||
this.f2371e = obtainStyledAttributes.getLayoutDimension(3, 0);
|
||||
this.f2383t = obtainStyledAttributes.getResourceId(2, R.layout.abc_action_mode_close_item_material);
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
|
||||
public static int f(View view, int i, int i4) {
|
||||
view.measure(View.MeasureSpec.makeMeasureSpec(i, IntCompanionObject.MIN_VALUE), i4);
|
||||
return Math.max(0, i - view.getMeasuredWidth());
|
||||
}
|
||||
|
||||
public static int g(int i, int i4, int i5, View view, boolean z3) {
|
||||
int measuredWidth = view.getMeasuredWidth();
|
||||
int measuredHeight = view.getMeasuredHeight();
|
||||
int i6 = ((i5 - measuredHeight) / 2) + i4;
|
||||
if (z3) {
|
||||
view.layout(i - measuredWidth, i6, i, measuredHeight + i6);
|
||||
} else {
|
||||
view.layout(i, i6, i + measuredWidth, measuredHeight + i6);
|
||||
}
|
||||
return z3 ? -measuredWidth : measuredWidth;
|
||||
}
|
||||
|
||||
public final void c(AbstractC0405b abstractC0405b) {
|
||||
View view = this.f2375k;
|
||||
if (view == null) {
|
||||
View inflate = LayoutInflater.from(getContext()).inflate(this.f2383t, (ViewGroup) this, false);
|
||||
this.f2375k = inflate;
|
||||
addView(inflate);
|
||||
} else if (view.getParent() == null) {
|
||||
addView(this.f2375k);
|
||||
}
|
||||
View findViewById = this.f2375k.findViewById(R.id.action_mode_close_button);
|
||||
this.f2376l = findViewById;
|
||||
findViewById.setOnClickListener(new j(abstractC0405b, 2));
|
||||
m d4 = abstractC0405b.d();
|
||||
C0472l c0472l = this.f2370d;
|
||||
if (c0472l != null) {
|
||||
c0472l.c();
|
||||
C0462g c0462g = c0472l.f7693u;
|
||||
if (c0462g != null && c0462g.b()) {
|
||||
c0462g.i.dismiss();
|
||||
}
|
||||
}
|
||||
C0472l c0472l2 = new C0472l(getContext());
|
||||
this.f2370d = c0472l2;
|
||||
c0472l2.f7686m = true;
|
||||
c0472l2.f7687n = true;
|
||||
ViewGroup.LayoutParams layoutParams = new ViewGroup.LayoutParams(-2, -1);
|
||||
d4.b(this.f2370d, this.f2368b);
|
||||
C0472l c0472l3 = this.f2370d;
|
||||
InterfaceC0418A interfaceC0418A = c0472l3.h;
|
||||
if (interfaceC0418A == null) {
|
||||
InterfaceC0418A interfaceC0418A2 = (InterfaceC0418A) c0472l3.f7679d.inflate(c0472l3.f7681f, (ViewGroup) this, false);
|
||||
c0472l3.h = interfaceC0418A2;
|
||||
interfaceC0418A2.a(c0472l3.f7678c);
|
||||
c0472l3.h(true);
|
||||
}
|
||||
InterfaceC0418A interfaceC0418A3 = c0472l3.h;
|
||||
if (interfaceC0418A != interfaceC0418A3) {
|
||||
((ActionMenuView) interfaceC0418A3).setPresenter(c0472l3);
|
||||
}
|
||||
ActionMenuView actionMenuView = (ActionMenuView) interfaceC0418A3;
|
||||
this.f2369c = actionMenuView;
|
||||
actionMenuView.setBackground(null);
|
||||
addView(this.f2369c, layoutParams);
|
||||
}
|
||||
|
||||
public final void d() {
|
||||
if (this.f2378n == null) {
|
||||
LayoutInflater.from(getContext()).inflate(R.layout.abc_action_bar_title_item, this);
|
||||
LinearLayout linearLayout = (LinearLayout) getChildAt(getChildCount() - 1);
|
||||
this.f2378n = linearLayout;
|
||||
this.f2379o = (TextView) linearLayout.findViewById(R.id.action_bar_title);
|
||||
this.p = (TextView) this.f2378n.findViewById(R.id.action_bar_subtitle);
|
||||
int i = this.f2380q;
|
||||
if (i != 0) {
|
||||
this.f2379o.setTextAppearance(getContext(), i);
|
||||
}
|
||||
int i4 = this.f2381r;
|
||||
if (i4 != 0) {
|
||||
this.p.setTextAppearance(getContext(), i4);
|
||||
}
|
||||
}
|
||||
this.f2379o.setText(this.i);
|
||||
this.p.setText(this.f2374j);
|
||||
boolean isEmpty = TextUtils.isEmpty(this.i);
|
||||
boolean isEmpty2 = TextUtils.isEmpty(this.f2374j);
|
||||
this.p.setVisibility(!isEmpty2 ? 0 : 8);
|
||||
this.f2378n.setVisibility((isEmpty && isEmpty2) ? 8 : 0);
|
||||
if (this.f2378n.getParent() == null) {
|
||||
addView(this.f2378n);
|
||||
}
|
||||
}
|
||||
|
||||
public final void e() {
|
||||
removeAllViews();
|
||||
this.f2377m = null;
|
||||
this.f2369c = null;
|
||||
this.f2370d = null;
|
||||
View view = this.f2376l;
|
||||
if (view != null) {
|
||||
view.setOnClickListener(null);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public final ViewGroup.LayoutParams generateDefaultLayoutParams() {
|
||||
return new ViewGroup.MarginLayoutParams(-1, -2);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public final ViewGroup.LayoutParams generateLayoutParams(AttributeSet attributeSet) {
|
||||
return new ViewGroup.MarginLayoutParams(getContext(), attributeSet);
|
||||
}
|
||||
|
||||
public int getAnimatedVisibility() {
|
||||
return this.f2372f != null ? this.f2367a.f7645b : getVisibility();
|
||||
}
|
||||
|
||||
public int getContentHeight() {
|
||||
return this.f2371e;
|
||||
}
|
||||
|
||||
public CharSequence getSubtitle() {
|
||||
return this.f2374j;
|
||||
}
|
||||
|
||||
public CharSequence getTitle() {
|
||||
return this.i;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
/* renamed from: h, reason: merged with bridge method [inline-methods] */
|
||||
public final void setVisibility(int i) {
|
||||
if (i != getVisibility()) {
|
||||
h0 h0Var = this.f2372f;
|
||||
if (h0Var != null) {
|
||||
h0Var.b();
|
||||
}
|
||||
super.setVisibility(i);
|
||||
}
|
||||
}
|
||||
|
||||
public final h0 i(int i, long j4) {
|
||||
h0 h0Var = this.f2372f;
|
||||
if (h0Var != null) {
|
||||
h0Var.b();
|
||||
}
|
||||
C0450a c0450a = this.f2367a;
|
||||
if (i != 0) {
|
||||
h0 a2 = X.a(this);
|
||||
a2.a(BitmapDescriptorFactory.HUE_RED);
|
||||
a2.c(j4);
|
||||
c0450a.f7646c.f2372f = a2;
|
||||
c0450a.f7645b = i;
|
||||
a2.d(c0450a);
|
||||
return a2;
|
||||
}
|
||||
if (getVisibility() != 0) {
|
||||
setAlpha(BitmapDescriptorFactory.HUE_RED);
|
||||
}
|
||||
h0 a4 = X.a(this);
|
||||
a4.a(1.0f);
|
||||
a4.c(j4);
|
||||
c0450a.f7646c.f2372f = a4;
|
||||
c0450a.f7645b = i;
|
||||
a4.d(c0450a);
|
||||
return a4;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onConfigurationChanged(Configuration configuration) {
|
||||
super.onConfigurationChanged(configuration);
|
||||
TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(null, AbstractC0336a.f6422a, R.attr.actionBarStyle, 0);
|
||||
setContentHeight(obtainStyledAttributes.getLayoutDimension(13, 0));
|
||||
obtainStyledAttributes.recycle();
|
||||
C0472l c0472l = this.f2370d;
|
||||
if (c0472l != null) {
|
||||
Configuration configuration2 = c0472l.f7677b.getResources().getConfiguration();
|
||||
int i = configuration2.screenWidthDp;
|
||||
int i4 = configuration2.screenHeightDp;
|
||||
c0472l.f7689q = (configuration2.smallestScreenWidthDp > 600 || i > 600 || (i > 960 && i4 > 720) || (i > 720 && i4 > 960)) ? 5 : (i >= 500 || (i > 640 && i4 > 480) || (i > 480 && i4 > 640)) ? 4 : i >= 360 ? 3 : 2;
|
||||
m mVar = c0472l.f7678c;
|
||||
if (mVar != null) {
|
||||
mVar.p(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final void onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow();
|
||||
C0472l c0472l = this.f2370d;
|
||||
if (c0472l != null) {
|
||||
c0472l.c();
|
||||
C0462g c0462g = this.f2370d.f7693u;
|
||||
if (c0462g == null || !c0462g.b()) {
|
||||
return;
|
||||
}
|
||||
c0462g.i.dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final boolean onHoverEvent(MotionEvent motionEvent) {
|
||||
int actionMasked = motionEvent.getActionMasked();
|
||||
if (actionMasked == 9) {
|
||||
this.h = false;
|
||||
}
|
||||
if (!this.h) {
|
||||
boolean onHoverEvent = super.onHoverEvent(motionEvent);
|
||||
if (actionMasked == 9 && !onHoverEvent) {
|
||||
this.h = true;
|
||||
}
|
||||
}
|
||||
if (actionMasked != 10 && actionMasked != 3) {
|
||||
return true;
|
||||
}
|
||||
this.h = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final void onLayout(boolean z3, int i, int i4, int i5, int i6) {
|
||||
boolean z4 = getLayoutDirection() == 1;
|
||||
int paddingRight = z4 ? (i5 - i) - getPaddingRight() : getPaddingLeft();
|
||||
int paddingTop = getPaddingTop();
|
||||
int paddingTop2 = ((i6 - i4) - getPaddingTop()) - getPaddingBottom();
|
||||
View view = this.f2375k;
|
||||
if (view != null && view.getVisibility() != 8) {
|
||||
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) this.f2375k.getLayoutParams();
|
||||
int i7 = z4 ? marginLayoutParams.rightMargin : marginLayoutParams.leftMargin;
|
||||
int i8 = z4 ? marginLayoutParams.leftMargin : marginLayoutParams.rightMargin;
|
||||
int i9 = z4 ? paddingRight - i7 : paddingRight + i7;
|
||||
int g4 = g(i9, paddingTop, paddingTop2, this.f2375k, z4) + i9;
|
||||
paddingRight = z4 ? g4 - i8 : g4 + i8;
|
||||
}
|
||||
LinearLayout linearLayout = this.f2378n;
|
||||
if (linearLayout != null && this.f2377m == null && linearLayout.getVisibility() != 8) {
|
||||
paddingRight += g(paddingRight, paddingTop, paddingTop2, this.f2378n, z4);
|
||||
}
|
||||
View view2 = this.f2377m;
|
||||
if (view2 != null) {
|
||||
g(paddingRight, paddingTop, paddingTop2, view2, z4);
|
||||
}
|
||||
int paddingLeft = z4 ? getPaddingLeft() : (i5 - i) - getPaddingRight();
|
||||
ActionMenuView actionMenuView = this.f2369c;
|
||||
if (actionMenuView != null) {
|
||||
g(paddingLeft, paddingTop, paddingTop2, actionMenuView, !z4);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
if (View.MeasureSpec.getMode(i) != 1073741824) {
|
||||
throw new IllegalStateException(getClass().getSimpleName().concat(" can only be used with android:layout_width=\"match_parent\" (or fill_parent)"));
|
||||
}
|
||||
if (View.MeasureSpec.getMode(i4) == 0) {
|
||||
throw new IllegalStateException(getClass().getSimpleName().concat(" can only be used with android:layout_height=\"wrap_content\""));
|
||||
}
|
||||
int size = View.MeasureSpec.getSize(i);
|
||||
int i5 = this.f2371e;
|
||||
if (i5 <= 0) {
|
||||
i5 = View.MeasureSpec.getSize(i4);
|
||||
}
|
||||
int paddingBottom = getPaddingBottom() + getPaddingTop();
|
||||
int paddingLeft = (size - getPaddingLeft()) - getPaddingRight();
|
||||
int i6 = i5 - paddingBottom;
|
||||
int makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(i6, IntCompanionObject.MIN_VALUE);
|
||||
View view = this.f2375k;
|
||||
if (view != null) {
|
||||
int f2 = f(view, paddingLeft, makeMeasureSpec);
|
||||
ViewGroup.MarginLayoutParams marginLayoutParams = (ViewGroup.MarginLayoutParams) this.f2375k.getLayoutParams();
|
||||
paddingLeft = f2 - (marginLayoutParams.leftMargin + marginLayoutParams.rightMargin);
|
||||
}
|
||||
ActionMenuView actionMenuView = this.f2369c;
|
||||
if (actionMenuView != null && actionMenuView.getParent() == this) {
|
||||
paddingLeft = f(this.f2369c, paddingLeft, makeMeasureSpec);
|
||||
}
|
||||
LinearLayout linearLayout = this.f2378n;
|
||||
if (linearLayout != null && this.f2377m == null) {
|
||||
if (this.f2382s) {
|
||||
this.f2378n.measure(View.MeasureSpec.makeMeasureSpec(0, 0), makeMeasureSpec);
|
||||
int measuredWidth = this.f2378n.getMeasuredWidth();
|
||||
boolean z3 = measuredWidth <= paddingLeft;
|
||||
if (z3) {
|
||||
paddingLeft -= measuredWidth;
|
||||
}
|
||||
this.f2378n.setVisibility(z3 ? 0 : 8);
|
||||
} else {
|
||||
paddingLeft = f(linearLayout, paddingLeft, makeMeasureSpec);
|
||||
}
|
||||
}
|
||||
View view2 = this.f2377m;
|
||||
if (view2 != null) {
|
||||
ViewGroup.LayoutParams layoutParams = view2.getLayoutParams();
|
||||
int i7 = layoutParams.width;
|
||||
int i8 = i7 != -2 ? 1073741824 : Integer.MIN_VALUE;
|
||||
if (i7 >= 0) {
|
||||
paddingLeft = Math.min(i7, paddingLeft);
|
||||
}
|
||||
int i9 = layoutParams.height;
|
||||
int i10 = i9 == -2 ? Integer.MIN_VALUE : 1073741824;
|
||||
if (i9 >= 0) {
|
||||
i6 = Math.min(i9, i6);
|
||||
}
|
||||
this.f2377m.measure(View.MeasureSpec.makeMeasureSpec(paddingLeft, i8), View.MeasureSpec.makeMeasureSpec(i6, i10));
|
||||
}
|
||||
if (this.f2371e > 0) {
|
||||
setMeasuredDimension(size, i5);
|
||||
return;
|
||||
}
|
||||
int childCount = getChildCount();
|
||||
int i11 = 0;
|
||||
for (int i12 = 0; i12 < childCount; i12++) {
|
||||
int measuredHeight = getChildAt(i12).getMeasuredHeight() + paddingBottom;
|
||||
if (measuredHeight > i11) {
|
||||
i11 = measuredHeight;
|
||||
}
|
||||
}
|
||||
setMeasuredDimension(size, i11);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final boolean onTouchEvent(MotionEvent motionEvent) {
|
||||
int actionMasked = motionEvent.getActionMasked();
|
||||
if (actionMasked == 0) {
|
||||
this.f2373g = false;
|
||||
}
|
||||
if (!this.f2373g) {
|
||||
boolean onTouchEvent = super.onTouchEvent(motionEvent);
|
||||
if (actionMasked == 0 && !onTouchEvent) {
|
||||
this.f2373g = true;
|
||||
}
|
||||
}
|
||||
if (actionMasked != 1 && actionMasked != 3) {
|
||||
return true;
|
||||
}
|
||||
this.f2373g = false;
|
||||
return true;
|
||||
}
|
||||
|
||||
public void setContentHeight(int i) {
|
||||
this.f2371e = i;
|
||||
}
|
||||
|
||||
public void setCustomView(View view) {
|
||||
LinearLayout linearLayout;
|
||||
View view2 = this.f2377m;
|
||||
if (view2 != null) {
|
||||
removeView(view2);
|
||||
}
|
||||
this.f2377m = view;
|
||||
if (view != null && (linearLayout = this.f2378n) != null) {
|
||||
removeView(linearLayout);
|
||||
this.f2378n = null;
|
||||
}
|
||||
if (view != null) {
|
||||
addView(view);
|
||||
}
|
||||
requestLayout();
|
||||
}
|
||||
|
||||
public void setSubtitle(CharSequence charSequence) {
|
||||
this.f2374j = charSequence;
|
||||
d();
|
||||
}
|
||||
|
||||
public void setTitle(CharSequence charSequence) {
|
||||
this.i = charSequence;
|
||||
d();
|
||||
X.k(this, charSequence);
|
||||
}
|
||||
|
||||
public void setTitleOptional(boolean z3) {
|
||||
if (z3 != this.f2382s) {
|
||||
requestLayout();
|
||||
}
|
||||
this.f2382s = z3;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public final boolean shouldDelayChildPressedState() {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,681 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import B0.q;
|
||||
import G.c;
|
||||
import O.B0;
|
||||
import O.C0079u;
|
||||
import O.D0;
|
||||
import O.InterfaceC0077s;
|
||||
import O.InterfaceC0078t;
|
||||
import O.J;
|
||||
import O.L;
|
||||
import O.X;
|
||||
import O.t0;
|
||||
import O.u0;
|
||||
import O.v0;
|
||||
import a.AbstractC0106b;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Build;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.ViewPropertyAnimator;
|
||||
import android.view.Window;
|
||||
import android.view.WindowInsets;
|
||||
import android.widget.OverScroller;
|
||||
import com.adif.elcanomovil.R;
|
||||
import g.T;
|
||||
import java.util.WeakHashMap;
|
||||
import k.C0414k;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import l.m;
|
||||
import l.x;
|
||||
import m.C0458e;
|
||||
import m.C0460f;
|
||||
import m.C0472l;
|
||||
import m.InterfaceC0456d;
|
||||
import m.InterfaceC0457d0;
|
||||
import m.InterfaceC0459e0;
|
||||
import m.Q0;
|
||||
import m.RunnableC0454c;
|
||||
import m.V0;
|
||||
|
||||
@SuppressLint({"UnknownNullness"})
|
||||
/* loaded from: classes.dex */
|
||||
public class ActionBarOverlayLayout extends ViewGroup implements InterfaceC0457d0, InterfaceC0077s, InterfaceC0078t {
|
||||
|
||||
/* renamed from: C, reason: collision with root package name */
|
||||
public static final int[] f2384C = {R.attr.actionBarSize, android.R.attr.windowContentOverlay};
|
||||
|
||||
/* renamed from: D, reason: collision with root package name */
|
||||
public static final D0 f2385D;
|
||||
|
||||
/* renamed from: E, reason: collision with root package name */
|
||||
public static final Rect f2386E;
|
||||
|
||||
/* renamed from: A, reason: collision with root package name */
|
||||
public final C0079u f2387A;
|
||||
|
||||
/* renamed from: B, reason: collision with root package name */
|
||||
public final C0460f f2388B;
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f2389a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public int f2390b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public ContentFrameLayout f2391c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public ActionBarContainer f2392d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public InterfaceC0459e0 f2393e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public Drawable f2394f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public boolean f2395g;
|
||||
public boolean h;
|
||||
public boolean i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public boolean f2396j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public int f2397k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public int f2398l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public final Rect f2399m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public final Rect f2400n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public final Rect f2401o;
|
||||
public final Rect p;
|
||||
|
||||
/* renamed from: q, reason: collision with root package name */
|
||||
public D0 f2402q;
|
||||
|
||||
/* renamed from: r, reason: collision with root package name */
|
||||
public D0 f2403r;
|
||||
|
||||
/* renamed from: s, reason: collision with root package name */
|
||||
public D0 f2404s;
|
||||
|
||||
/* renamed from: t, reason: collision with root package name */
|
||||
public D0 f2405t;
|
||||
|
||||
/* renamed from: u, reason: collision with root package name */
|
||||
public InterfaceC0456d f2406u;
|
||||
|
||||
/* renamed from: v, reason: collision with root package name */
|
||||
public OverScroller f2407v;
|
||||
|
||||
/* renamed from: w, reason: collision with root package name */
|
||||
public ViewPropertyAnimator f2408w;
|
||||
|
||||
/* renamed from: x, reason: collision with root package name */
|
||||
public final q f2409x;
|
||||
|
||||
/* renamed from: y, reason: collision with root package name */
|
||||
public final RunnableC0454c f2410y;
|
||||
|
||||
/* renamed from: z, reason: collision with root package name */
|
||||
public final RunnableC0454c f2411z;
|
||||
|
||||
static {
|
||||
v0 u0Var = Build.VERSION.SDK_INT >= 30 ? new u0() : new t0();
|
||||
u0Var.f(c.b(0, 1, 0, 1));
|
||||
f2385D = u0Var.b();
|
||||
f2386E = new Rect();
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r3v14, types: [O.u, java.lang.Object] */
|
||||
/* JADX WARN: Type inference failed for: r3v15, types: [m.f, android.view.View] */
|
||||
public ActionBarOverlayLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.f2390b = 0;
|
||||
this.f2399m = new Rect();
|
||||
this.f2400n = new Rect();
|
||||
this.f2401o = new Rect();
|
||||
this.p = new Rect();
|
||||
new Rect();
|
||||
new Rect();
|
||||
new Rect();
|
||||
new Rect();
|
||||
D0 d02 = D0.f1206b;
|
||||
this.f2402q = d02;
|
||||
this.f2403r = d02;
|
||||
this.f2404s = d02;
|
||||
this.f2405t = d02;
|
||||
this.f2409x = new q(this, 6);
|
||||
this.f2410y = new RunnableC0454c(this, 0);
|
||||
this.f2411z = new RunnableC0454c(this, 1);
|
||||
i(context);
|
||||
this.f2387A = new Object();
|
||||
?? view = new View(context);
|
||||
view.setWillNotDraw(true);
|
||||
this.f2388B = view;
|
||||
addView(view);
|
||||
}
|
||||
|
||||
public static boolean g(View view, Rect rect, boolean z3) {
|
||||
boolean z4;
|
||||
C0458e c0458e = (C0458e) view.getLayoutParams();
|
||||
int i = ((ViewGroup.MarginLayoutParams) c0458e).leftMargin;
|
||||
int i4 = rect.left;
|
||||
if (i != i4) {
|
||||
((ViewGroup.MarginLayoutParams) c0458e).leftMargin = i4;
|
||||
z4 = true;
|
||||
} else {
|
||||
z4 = false;
|
||||
}
|
||||
int i5 = ((ViewGroup.MarginLayoutParams) c0458e).topMargin;
|
||||
int i6 = rect.top;
|
||||
if (i5 != i6) {
|
||||
((ViewGroup.MarginLayoutParams) c0458e).topMargin = i6;
|
||||
z4 = true;
|
||||
}
|
||||
int i7 = ((ViewGroup.MarginLayoutParams) c0458e).rightMargin;
|
||||
int i8 = rect.right;
|
||||
if (i7 != i8) {
|
||||
((ViewGroup.MarginLayoutParams) c0458e).rightMargin = i8;
|
||||
z4 = true;
|
||||
}
|
||||
if (z3) {
|
||||
int i9 = ((ViewGroup.MarginLayoutParams) c0458e).bottomMargin;
|
||||
int i10 = rect.bottom;
|
||||
if (i9 != i10) {
|
||||
((ViewGroup.MarginLayoutParams) c0458e).bottomMargin = i10;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return z4;
|
||||
}
|
||||
|
||||
@Override // O.InterfaceC0077s
|
||||
public final void a(View view, View view2, int i, int i4) {
|
||||
if (i4 == 0) {
|
||||
onNestedScrollAccepted(view, view2, i);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // O.InterfaceC0077s
|
||||
public final void b(View view, int i) {
|
||||
if (i == 0) {
|
||||
onStopNestedScroll(view);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // O.InterfaceC0077s
|
||||
public final void c(View view, int i, int i4, int[] iArr, int i5) {
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public final boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
||||
return layoutParams instanceof C0458e;
|
||||
}
|
||||
|
||||
@Override // O.InterfaceC0078t
|
||||
public final void d(View view, int i, int i4, int i5, int i6, int i7, int[] iArr) {
|
||||
e(view, i, i4, i5, i6, i7);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void draw(Canvas canvas) {
|
||||
int i;
|
||||
super.draw(canvas);
|
||||
if (this.f2394f != null) {
|
||||
if (this.f2392d.getVisibility() == 0) {
|
||||
i = (int) (this.f2392d.getTranslationY() + this.f2392d.getBottom() + 0.5f);
|
||||
} else {
|
||||
i = 0;
|
||||
}
|
||||
this.f2394f.setBounds(0, i, getWidth(), this.f2394f.getIntrinsicHeight() + i);
|
||||
this.f2394f.draw(canvas);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // O.InterfaceC0077s
|
||||
public final void e(View view, int i, int i4, int i5, int i6, int i7) {
|
||||
if (i7 == 0) {
|
||||
onNestedScroll(view, i, i4, i5, i6);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // O.InterfaceC0077s
|
||||
public final boolean f(View view, View view2, int i, int i4) {
|
||||
return i4 == 0 && onStartNestedScroll(view, view2, i);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final boolean fitSystemWindows(Rect rect) {
|
||||
return super.fitSystemWindows(rect);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public final ViewGroup.LayoutParams generateDefaultLayoutParams() {
|
||||
return new ViewGroup.MarginLayoutParams(-1, -1);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public final ViewGroup.LayoutParams generateLayoutParams(AttributeSet attributeSet) {
|
||||
return new ViewGroup.MarginLayoutParams(getContext(), attributeSet);
|
||||
}
|
||||
|
||||
public int getActionBarHideOffset() {
|
||||
ActionBarContainer actionBarContainer = this.f2392d;
|
||||
if (actionBarContainer != null) {
|
||||
return -((int) actionBarContainer.getTranslationY());
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public int getNestedScrollAxes() {
|
||||
C0079u c0079u = this.f2387A;
|
||||
return c0079u.f1299b | c0079u.f1298a;
|
||||
}
|
||||
|
||||
public CharSequence getTitle() {
|
||||
k();
|
||||
return ((V0) this.f2393e).f7624a.getTitle();
|
||||
}
|
||||
|
||||
public final void h() {
|
||||
removeCallbacks(this.f2410y);
|
||||
removeCallbacks(this.f2411z);
|
||||
ViewPropertyAnimator viewPropertyAnimator = this.f2408w;
|
||||
if (viewPropertyAnimator != null) {
|
||||
viewPropertyAnimator.cancel();
|
||||
}
|
||||
}
|
||||
|
||||
public final void i(Context context) {
|
||||
TypedArray obtainStyledAttributes = getContext().getTheme().obtainStyledAttributes(f2384C);
|
||||
this.f2389a = obtainStyledAttributes.getDimensionPixelSize(0, 0);
|
||||
Drawable drawable = obtainStyledAttributes.getDrawable(1);
|
||||
this.f2394f = drawable;
|
||||
setWillNotDraw(drawable == null);
|
||||
obtainStyledAttributes.recycle();
|
||||
this.f2407v = new OverScroller(context);
|
||||
}
|
||||
|
||||
public final void j(int i) {
|
||||
k();
|
||||
if (i == 2) {
|
||||
((V0) this.f2393e).getClass();
|
||||
Log.i("ToolbarWidgetWrapper", "Progress display unsupported");
|
||||
} else if (i == 5) {
|
||||
((V0) this.f2393e).getClass();
|
||||
Log.i("ToolbarWidgetWrapper", "Progress display unsupported");
|
||||
} else {
|
||||
if (i != 109) {
|
||||
return;
|
||||
}
|
||||
setOverlayMode(true);
|
||||
}
|
||||
}
|
||||
|
||||
public final void k() {
|
||||
InterfaceC0459e0 wrapper;
|
||||
if (this.f2391c == null) {
|
||||
this.f2391c = (ContentFrameLayout) findViewById(R.id.action_bar_activity_content);
|
||||
this.f2392d = (ActionBarContainer) findViewById(R.id.action_bar_container);
|
||||
KeyEvent.Callback findViewById = findViewById(R.id.action_bar);
|
||||
if (findViewById instanceof InterfaceC0459e0) {
|
||||
wrapper = (InterfaceC0459e0) findViewById;
|
||||
} else {
|
||||
if (!(findViewById instanceof Toolbar)) {
|
||||
throw new IllegalStateException("Can't make a decor toolbar out of ".concat(findViewById.getClass().getSimpleName()));
|
||||
}
|
||||
wrapper = ((Toolbar) findViewById).getWrapper();
|
||||
}
|
||||
this.f2393e = wrapper;
|
||||
}
|
||||
}
|
||||
|
||||
public final void l(m mVar, x xVar) {
|
||||
k();
|
||||
V0 v02 = (V0) this.f2393e;
|
||||
C0472l c0472l = v02.f7634m;
|
||||
Toolbar toolbar = v02.f7624a;
|
||||
if (c0472l == null) {
|
||||
C0472l c0472l2 = new C0472l(toolbar.getContext());
|
||||
v02.f7634m = c0472l2;
|
||||
c0472l2.i = R.id.action_menu_presenter;
|
||||
}
|
||||
C0472l c0472l3 = v02.f7634m;
|
||||
c0472l3.f7680e = xVar;
|
||||
if (mVar == null && toolbar.f2480a == null) {
|
||||
return;
|
||||
}
|
||||
toolbar.f();
|
||||
m mVar2 = toolbar.f2480a.p;
|
||||
if (mVar2 == mVar) {
|
||||
return;
|
||||
}
|
||||
if (mVar2 != null) {
|
||||
mVar2.r(toolbar.f2471L);
|
||||
mVar2.r(toolbar.f2472M);
|
||||
}
|
||||
if (toolbar.f2472M == null) {
|
||||
toolbar.f2472M = new Q0(toolbar);
|
||||
}
|
||||
c0472l3.f7690r = true;
|
||||
if (mVar != null) {
|
||||
mVar.b(c0472l3, toolbar.f2487j);
|
||||
mVar.b(toolbar.f2472M, toolbar.f2487j);
|
||||
} else {
|
||||
c0472l3.i(toolbar.f2487j, null);
|
||||
toolbar.f2472M.i(toolbar.f2487j, null);
|
||||
c0472l3.h(true);
|
||||
toolbar.f2472M.h(true);
|
||||
}
|
||||
toolbar.f2480a.setPopupTheme(toolbar.f2488k);
|
||||
toolbar.f2480a.setPresenter(c0472l3);
|
||||
toolbar.f2471L = c0472l3;
|
||||
toolbar.w();
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final WindowInsets onApplyWindowInsets(WindowInsets windowInsets) {
|
||||
k();
|
||||
D0 f2 = D0.f(this, windowInsets);
|
||||
boolean g4 = g(this.f2392d, new Rect(f2.b(), f2.d(), f2.c(), f2.a()), false);
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
Rect rect = this.f2399m;
|
||||
L.b(this, f2, rect);
|
||||
int i = rect.left;
|
||||
int i4 = rect.top;
|
||||
int i5 = rect.right;
|
||||
int i6 = rect.bottom;
|
||||
B0 b02 = f2.f1207a;
|
||||
D0 l4 = b02.l(i, i4, i5, i6);
|
||||
this.f2402q = l4;
|
||||
boolean z3 = true;
|
||||
if (!this.f2403r.equals(l4)) {
|
||||
this.f2403r = this.f2402q;
|
||||
g4 = true;
|
||||
}
|
||||
Rect rect2 = this.f2400n;
|
||||
if (rect2.equals(rect)) {
|
||||
z3 = g4;
|
||||
} else {
|
||||
rect2.set(rect);
|
||||
}
|
||||
if (z3) {
|
||||
requestLayout();
|
||||
}
|
||||
return b02.a().f1207a.c().f1207a.b().e();
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onConfigurationChanged(Configuration configuration) {
|
||||
super.onConfigurationChanged(configuration);
|
||||
i(getContext());
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
J.c(this);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final void onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow();
|
||||
h();
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final void onLayout(boolean z3, int i, int i4, int i5, int i6) {
|
||||
int childCount = getChildCount();
|
||||
int paddingLeft = getPaddingLeft();
|
||||
int paddingTop = getPaddingTop();
|
||||
for (int i7 = 0; i7 < childCount; i7++) {
|
||||
View childAt = getChildAt(i7);
|
||||
if (childAt.getVisibility() != 8) {
|
||||
C0458e c0458e = (C0458e) childAt.getLayoutParams();
|
||||
int measuredWidth = childAt.getMeasuredWidth();
|
||||
int measuredHeight = childAt.getMeasuredHeight();
|
||||
int i8 = ((ViewGroup.MarginLayoutParams) c0458e).leftMargin + paddingLeft;
|
||||
int i9 = ((ViewGroup.MarginLayoutParams) c0458e).topMargin + paddingTop;
|
||||
childAt.layout(i8, i9, measuredWidth + i8, measuredHeight + i9);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:0x00f2 */
|
||||
@Override // android.view.View
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final void onMeasure(int r13, int r14) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 361
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.widget.ActionBarOverlayLayout.onMeasure(int, int):void");
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.ViewParent
|
||||
public final boolean onNestedFling(View view, float f2, float f4, boolean z3) {
|
||||
if (!this.i || !z3) {
|
||||
return false;
|
||||
}
|
||||
this.f2407v.fling(0, 0, 0, (int) f4, 0, 0, IntCompanionObject.MIN_VALUE, Integer.MAX_VALUE);
|
||||
if (this.f2407v.getFinalY() > this.f2392d.getHeight()) {
|
||||
h();
|
||||
this.f2411z.run();
|
||||
} else {
|
||||
h();
|
||||
this.f2410y.run();
|
||||
}
|
||||
this.f2396j = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.ViewParent
|
||||
public final boolean onNestedPreFling(View view, float f2, float f4) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.ViewParent
|
||||
public final void onNestedPreScroll(View view, int i, int i4, int[] iArr) {
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.ViewParent
|
||||
public final void onNestedScroll(View view, int i, int i4, int i5, int i6) {
|
||||
int i7 = this.f2397k + i4;
|
||||
this.f2397k = i7;
|
||||
setActionBarHideOffset(i7);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.ViewParent
|
||||
public final void onNestedScrollAccepted(View view, View view2, int i) {
|
||||
T t2;
|
||||
C0414k c0414k;
|
||||
this.f2387A.f1298a = i;
|
||||
this.f2397k = getActionBarHideOffset();
|
||||
h();
|
||||
InterfaceC0456d interfaceC0456d = this.f2406u;
|
||||
if (interfaceC0456d == null || (c0414k = (t2 = (T) interfaceC0456d).f6593s) == null) {
|
||||
return;
|
||||
}
|
||||
c0414k.a();
|
||||
t2.f6593s = null;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.ViewParent
|
||||
public final boolean onStartNestedScroll(View view, View view2, int i) {
|
||||
if ((i & 2) == 0 || this.f2392d.getVisibility() != 0) {
|
||||
return false;
|
||||
}
|
||||
return this.i;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.ViewParent
|
||||
public final void onStopNestedScroll(View view) {
|
||||
if (!this.i || this.f2396j) {
|
||||
return;
|
||||
}
|
||||
if (this.f2397k <= this.f2392d.getHeight()) {
|
||||
h();
|
||||
postDelayed(this.f2410y, 600L);
|
||||
} else {
|
||||
h();
|
||||
postDelayed(this.f2411z, 600L);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onWindowSystemUiVisibilityChanged(int i) {
|
||||
super.onWindowSystemUiVisibilityChanged(i);
|
||||
k();
|
||||
int i4 = this.f2398l ^ i;
|
||||
this.f2398l = i;
|
||||
boolean z3 = (i & 4) == 0;
|
||||
boolean z4 = (i & 256) != 0;
|
||||
InterfaceC0456d interfaceC0456d = this.f2406u;
|
||||
if (interfaceC0456d != null) {
|
||||
T t2 = (T) interfaceC0456d;
|
||||
t2.f6590o = !z4;
|
||||
if (z3 || !z4) {
|
||||
if (t2.p) {
|
||||
t2.p = false;
|
||||
t2.s(true);
|
||||
}
|
||||
} else if (!t2.p) {
|
||||
t2.p = true;
|
||||
t2.s(true);
|
||||
}
|
||||
}
|
||||
if ((i4 & 256) == 0 || this.f2406u == null) {
|
||||
return;
|
||||
}
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
J.c(this);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onWindowVisibilityChanged(int i) {
|
||||
super.onWindowVisibilityChanged(i);
|
||||
this.f2390b = i;
|
||||
InterfaceC0456d interfaceC0456d = this.f2406u;
|
||||
if (interfaceC0456d != null) {
|
||||
((T) interfaceC0456d).f6589n = i;
|
||||
}
|
||||
}
|
||||
|
||||
public void setActionBarHideOffset(int i) {
|
||||
h();
|
||||
this.f2392d.setTranslationY(-Math.max(0, Math.min(i, this.f2392d.getHeight())));
|
||||
}
|
||||
|
||||
public void setActionBarVisibilityCallback(InterfaceC0456d interfaceC0456d) {
|
||||
this.f2406u = interfaceC0456d;
|
||||
if (getWindowToken() != null) {
|
||||
((T) this.f2406u).f6589n = this.f2390b;
|
||||
int i = this.f2398l;
|
||||
if (i != 0) {
|
||||
onWindowSystemUiVisibilityChanged(i);
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
J.c(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setHasNonEmbeddedTabs(boolean z3) {
|
||||
this.h = z3;
|
||||
}
|
||||
|
||||
public void setHideOnContentScrollEnabled(boolean z3) {
|
||||
if (z3 != this.i) {
|
||||
this.i = z3;
|
||||
if (z3) {
|
||||
return;
|
||||
}
|
||||
h();
|
||||
setActionBarHideOffset(0);
|
||||
}
|
||||
}
|
||||
|
||||
public void setIcon(int i) {
|
||||
k();
|
||||
V0 v02 = (V0) this.f2393e;
|
||||
v02.f7627d = i != 0 ? AbstractC0106b.m(v02.f7624a.getContext(), i) : null;
|
||||
v02.c();
|
||||
}
|
||||
|
||||
public void setLogo(int i) {
|
||||
k();
|
||||
V0 v02 = (V0) this.f2393e;
|
||||
v02.f7628e = i != 0 ? AbstractC0106b.m(v02.f7624a.getContext(), i) : null;
|
||||
v02.c();
|
||||
}
|
||||
|
||||
public void setOverlayMode(boolean z3) {
|
||||
this.f2395g = z3;
|
||||
}
|
||||
|
||||
public void setShowingForActionMode(boolean z3) {
|
||||
}
|
||||
|
||||
public void setUiOptions(int i) {
|
||||
}
|
||||
|
||||
@Override // m.InterfaceC0457d0
|
||||
public void setWindowCallback(Window.Callback callback) {
|
||||
k();
|
||||
((V0) this.f2393e).f7632k = callback;
|
||||
}
|
||||
|
||||
@Override // m.InterfaceC0457d0
|
||||
public void setWindowTitle(CharSequence charSequence) {
|
||||
k();
|
||||
V0 v02 = (V0) this.f2393e;
|
||||
if (v02.f7630g) {
|
||||
return;
|
||||
}
|
||||
v02.h = charSequence;
|
||||
if ((v02.f7625b & 8) != 0) {
|
||||
Toolbar toolbar = v02.f7624a;
|
||||
toolbar.setTitle(charSequence);
|
||||
if (v02.f7630g) {
|
||||
X.k(toolbar.getRootView(), charSequence);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public final boolean shouldDelayChildPressedState() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public final ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
||||
return new ViewGroup.MarginLayoutParams(layoutParams);
|
||||
}
|
||||
|
||||
public void setIcon(Drawable drawable) {
|
||||
k();
|
||||
V0 v02 = (V0) this.f2393e;
|
||||
v02.f7627d = drawable;
|
||||
v02.c();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,618 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import M.g;
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.ContextThemeWrapper;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.Menu;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.accessibility.AccessibilityEvent;
|
||||
import android.widget.LinearLayout;
|
||||
import androidx.appcompat.view.menu.ActionMenuItemView;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import f0.C0338b;
|
||||
import h3.d;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import l.InterfaceC0418A;
|
||||
import l.InterfaceC0433k;
|
||||
import l.InterfaceC0434l;
|
||||
import l.m;
|
||||
import l.o;
|
||||
import l.x;
|
||||
import m.C0462g;
|
||||
import m.C0468j;
|
||||
import m.C0472l;
|
||||
import m.C0476n;
|
||||
import m.C0483q0;
|
||||
import m.InterfaceC0474m;
|
||||
import m.InterfaceC0478o;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ActionMenuView extends LinearLayoutCompat implements InterfaceC0434l, InterfaceC0418A {
|
||||
|
||||
/* renamed from: A, reason: collision with root package name */
|
||||
public InterfaceC0478o f2412A;
|
||||
public m p;
|
||||
|
||||
/* renamed from: q, reason: collision with root package name */
|
||||
public Context f2413q;
|
||||
|
||||
/* renamed from: r, reason: collision with root package name */
|
||||
public int f2414r;
|
||||
|
||||
/* renamed from: s, reason: collision with root package name */
|
||||
public boolean f2415s;
|
||||
|
||||
/* renamed from: t, reason: collision with root package name */
|
||||
public C0472l f2416t;
|
||||
|
||||
/* renamed from: u, reason: collision with root package name */
|
||||
public g f2417u;
|
||||
|
||||
/* renamed from: v, reason: collision with root package name */
|
||||
public InterfaceC0433k f2418v;
|
||||
|
||||
/* renamed from: w, reason: collision with root package name */
|
||||
public boolean f2419w;
|
||||
|
||||
/* renamed from: x, reason: collision with root package name */
|
||||
public int f2420x;
|
||||
|
||||
/* renamed from: y, reason: collision with root package name */
|
||||
public final int f2421y;
|
||||
|
||||
/* renamed from: z, reason: collision with root package name */
|
||||
public final int f2422z;
|
||||
|
||||
public ActionMenuView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
setBaselineAligned(false);
|
||||
float f2 = context.getResources().getDisplayMetrics().density;
|
||||
this.f2421y = (int) (56.0f * f2);
|
||||
this.f2422z = (int) (f2 * 4.0f);
|
||||
this.f2413q = context;
|
||||
this.f2414r = 0;
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r0v0, types: [android.widget.LinearLayout$LayoutParams, m.n] */
|
||||
public static C0476n j() {
|
||||
?? layoutParams = new LinearLayout.LayoutParams(-2, -2);
|
||||
layoutParams.f7709a = false;
|
||||
((LinearLayout.LayoutParams) layoutParams).gravity = 16;
|
||||
return layoutParams;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
/* JADX WARN: Type inference failed for: r0v3, types: [android.widget.LinearLayout$LayoutParams, m.n] */
|
||||
public static C0476n k(ViewGroup.LayoutParams layoutParams) {
|
||||
C0476n c0476n;
|
||||
if (layoutParams == null) {
|
||||
return j();
|
||||
}
|
||||
if (layoutParams instanceof C0476n) {
|
||||
C0476n c0476n2 = (C0476n) layoutParams;
|
||||
?? layoutParams2 = new LinearLayout.LayoutParams((ViewGroup.LayoutParams) c0476n2);
|
||||
layoutParams2.f7709a = c0476n2.f7709a;
|
||||
c0476n = layoutParams2;
|
||||
} else {
|
||||
c0476n = new LinearLayout.LayoutParams(layoutParams);
|
||||
}
|
||||
if (((LinearLayout.LayoutParams) c0476n).gravity <= 0) {
|
||||
((LinearLayout.LayoutParams) c0476n).gravity = 16;
|
||||
}
|
||||
return c0476n;
|
||||
}
|
||||
|
||||
@Override // l.InterfaceC0418A
|
||||
public final void a(m mVar) {
|
||||
this.p = mVar;
|
||||
}
|
||||
|
||||
@Override // l.InterfaceC0434l
|
||||
public final boolean c(o oVar) {
|
||||
return this.p.q(oVar, null, 0);
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.LinearLayoutCompat, android.view.ViewGroup
|
||||
public final boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
||||
return layoutParams instanceof C0476n;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent accessibilityEvent) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.LinearLayoutCompat
|
||||
/* renamed from: f */
|
||||
public final /* bridge */ /* synthetic */ C0483q0 generateDefaultLayoutParams() {
|
||||
return j();
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r0v0, types: [m.q0, android.widget.LinearLayout$LayoutParams] */
|
||||
@Override // androidx.appcompat.widget.LinearLayoutCompat
|
||||
/* renamed from: g */
|
||||
public final C0483q0 generateLayoutParams(AttributeSet attributeSet) {
|
||||
return new LinearLayout.LayoutParams(getContext(), attributeSet);
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.LinearLayoutCompat, android.view.ViewGroup
|
||||
public final /* bridge */ /* synthetic */ ViewGroup.LayoutParams generateDefaultLayoutParams() {
|
||||
return j();
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.LinearLayoutCompat, android.view.ViewGroup
|
||||
public final /* bridge */ /* synthetic */ ViewGroup.LayoutParams generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
||||
return k(layoutParams);
|
||||
}
|
||||
|
||||
public Menu getMenu() {
|
||||
if (this.p == null) {
|
||||
Context context = getContext();
|
||||
m mVar = new m(context);
|
||||
this.p = mVar;
|
||||
mVar.f7245e = new d(this, 6);
|
||||
C0472l c0472l = new C0472l(context);
|
||||
this.f2416t = c0472l;
|
||||
c0472l.f7686m = true;
|
||||
c0472l.f7687n = true;
|
||||
x xVar = this.f2417u;
|
||||
if (xVar == null) {
|
||||
xVar = new C0338b(6);
|
||||
}
|
||||
c0472l.f7680e = xVar;
|
||||
this.p.b(c0472l, this.f2413q);
|
||||
C0472l c0472l2 = this.f2416t;
|
||||
c0472l2.h = this;
|
||||
this.p = c0472l2.f7678c;
|
||||
}
|
||||
return this.p;
|
||||
}
|
||||
|
||||
public Drawable getOverflowIcon() {
|
||||
getMenu();
|
||||
C0472l c0472l = this.f2416t;
|
||||
C0468j c0468j = c0472l.f7683j;
|
||||
if (c0468j != null) {
|
||||
return c0468j.getDrawable();
|
||||
}
|
||||
if (c0472l.f7685l) {
|
||||
return c0472l.f7684k;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public int getPopupTheme() {
|
||||
return this.f2414r;
|
||||
}
|
||||
|
||||
public int getWindowAnimations() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.LinearLayoutCompat
|
||||
/* renamed from: h */
|
||||
public final /* bridge */ /* synthetic */ C0483q0 generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
||||
return k(layoutParams);
|
||||
}
|
||||
|
||||
public final boolean l(int i) {
|
||||
boolean z3 = false;
|
||||
if (i == 0) {
|
||||
return false;
|
||||
}
|
||||
KeyEvent.Callback childAt = getChildAt(i - 1);
|
||||
KeyEvent.Callback childAt2 = getChildAt(i);
|
||||
if (i < getChildCount() && (childAt instanceof InterfaceC0474m)) {
|
||||
z3 = ((InterfaceC0474m) childAt).a();
|
||||
}
|
||||
return (i <= 0 || !(childAt2 instanceof InterfaceC0474m)) ? z3 : ((InterfaceC0474m) childAt2).c() | z3;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onConfigurationChanged(Configuration configuration) {
|
||||
super.onConfigurationChanged(configuration);
|
||||
C0472l c0472l = this.f2416t;
|
||||
if (c0472l != null) {
|
||||
c0472l.h(false);
|
||||
if (this.f2416t.f()) {
|
||||
this.f2416t.c();
|
||||
this.f2416t.n();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final void onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow();
|
||||
C0472l c0472l = this.f2416t;
|
||||
if (c0472l != null) {
|
||||
c0472l.c();
|
||||
C0462g c0462g = c0472l.f7693u;
|
||||
if (c0462g == null || !c0462g.b()) {
|
||||
return;
|
||||
}
|
||||
c0462g.i.dismiss();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.LinearLayoutCompat, android.view.ViewGroup, android.view.View
|
||||
public final void onLayout(boolean z3, int i, int i4, int i5, int i6) {
|
||||
int width;
|
||||
int i7;
|
||||
if (!this.f2419w) {
|
||||
super.onLayout(z3, i, i4, i5, i6);
|
||||
return;
|
||||
}
|
||||
int childCount = getChildCount();
|
||||
int i8 = (i6 - i4) / 2;
|
||||
int dividerWidth = getDividerWidth();
|
||||
int i9 = i5 - i;
|
||||
int paddingRight = (i9 - getPaddingRight()) - getPaddingLeft();
|
||||
boolean z4 = getLayoutDirection() == 1;
|
||||
int i10 = 0;
|
||||
int i11 = 0;
|
||||
for (int i12 = 0; i12 < childCount; i12++) {
|
||||
View childAt = getChildAt(i12);
|
||||
if (childAt.getVisibility() != 8) {
|
||||
C0476n c0476n = (C0476n) childAt.getLayoutParams();
|
||||
if (c0476n.f7709a) {
|
||||
int measuredWidth = childAt.getMeasuredWidth();
|
||||
if (l(i12)) {
|
||||
measuredWidth += dividerWidth;
|
||||
}
|
||||
int measuredHeight = childAt.getMeasuredHeight();
|
||||
if (z4) {
|
||||
i7 = getPaddingLeft() + ((LinearLayout.LayoutParams) c0476n).leftMargin;
|
||||
width = i7 + measuredWidth;
|
||||
} else {
|
||||
width = (getWidth() - getPaddingRight()) - ((LinearLayout.LayoutParams) c0476n).rightMargin;
|
||||
i7 = width - measuredWidth;
|
||||
}
|
||||
int i13 = i8 - (measuredHeight / 2);
|
||||
childAt.layout(i7, i13, width, measuredHeight + i13);
|
||||
paddingRight -= measuredWidth;
|
||||
i10 = 1;
|
||||
} else {
|
||||
paddingRight -= (childAt.getMeasuredWidth() + ((LinearLayout.LayoutParams) c0476n).leftMargin) + ((LinearLayout.LayoutParams) c0476n).rightMargin;
|
||||
l(i12);
|
||||
i11++;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (childCount == 1 && i10 == 0) {
|
||||
View childAt2 = getChildAt(0);
|
||||
int measuredWidth2 = childAt2.getMeasuredWidth();
|
||||
int measuredHeight2 = childAt2.getMeasuredHeight();
|
||||
int i14 = (i9 / 2) - (measuredWidth2 / 2);
|
||||
int i15 = i8 - (measuredHeight2 / 2);
|
||||
childAt2.layout(i14, i15, measuredWidth2 + i14, measuredHeight2 + i15);
|
||||
return;
|
||||
}
|
||||
int i16 = i11 - (i10 ^ 1);
|
||||
int max = Math.max(0, i16 > 0 ? paddingRight / i16 : 0);
|
||||
if (z4) {
|
||||
int width2 = getWidth() - getPaddingRight();
|
||||
for (int i17 = 0; i17 < childCount; i17++) {
|
||||
View childAt3 = getChildAt(i17);
|
||||
C0476n c0476n2 = (C0476n) childAt3.getLayoutParams();
|
||||
if (childAt3.getVisibility() != 8 && !c0476n2.f7709a) {
|
||||
int i18 = width2 - ((LinearLayout.LayoutParams) c0476n2).rightMargin;
|
||||
int measuredWidth3 = childAt3.getMeasuredWidth();
|
||||
int measuredHeight3 = childAt3.getMeasuredHeight();
|
||||
int i19 = i8 - (measuredHeight3 / 2);
|
||||
childAt3.layout(i18 - measuredWidth3, i19, i18, measuredHeight3 + i19);
|
||||
width2 = i18 - ((measuredWidth3 + ((LinearLayout.LayoutParams) c0476n2).leftMargin) + max);
|
||||
}
|
||||
}
|
||||
return;
|
||||
}
|
||||
int paddingLeft = getPaddingLeft();
|
||||
for (int i20 = 0; i20 < childCount; i20++) {
|
||||
View childAt4 = getChildAt(i20);
|
||||
C0476n c0476n3 = (C0476n) childAt4.getLayoutParams();
|
||||
if (childAt4.getVisibility() != 8 && !c0476n3.f7709a) {
|
||||
int i21 = paddingLeft + ((LinearLayout.LayoutParams) c0476n3).leftMargin;
|
||||
int measuredWidth4 = childAt4.getMeasuredWidth();
|
||||
int measuredHeight4 = childAt4.getMeasuredHeight();
|
||||
int i22 = i8 - (measuredHeight4 / 2);
|
||||
childAt4.layout(i21, i22, i21 + measuredWidth4, measuredHeight4 + i22);
|
||||
paddingLeft = measuredWidth4 + ((LinearLayout.LayoutParams) c0476n3).rightMargin + max + i21;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r11v14 */
|
||||
/* JADX WARN: Type inference failed for: r11v15, types: [int, boolean] */
|
||||
/* JADX WARN: Type inference failed for: r11v17 */
|
||||
/* JADX WARN: Type inference failed for: r11v40 */
|
||||
@Override // androidx.appcompat.widget.LinearLayoutCompat, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
int i5;
|
||||
int i6;
|
||||
?? r11;
|
||||
int i7;
|
||||
int i8;
|
||||
m mVar;
|
||||
boolean z3 = this.f2419w;
|
||||
boolean z4 = View.MeasureSpec.getMode(i) == 1073741824;
|
||||
this.f2419w = z4;
|
||||
if (z3 != z4) {
|
||||
this.f2420x = 0;
|
||||
}
|
||||
int size = View.MeasureSpec.getSize(i);
|
||||
if (this.f2419w && (mVar = this.p) != null && size != this.f2420x) {
|
||||
this.f2420x = size;
|
||||
mVar.p(true);
|
||||
}
|
||||
int childCount = getChildCount();
|
||||
if (!this.f2419w || childCount <= 0) {
|
||||
for (int i9 = 0; i9 < childCount; i9++) {
|
||||
C0476n c0476n = (C0476n) getChildAt(i9).getLayoutParams();
|
||||
((LinearLayout.LayoutParams) c0476n).rightMargin = 0;
|
||||
((LinearLayout.LayoutParams) c0476n).leftMargin = 0;
|
||||
}
|
||||
super.onMeasure(i, i4);
|
||||
return;
|
||||
}
|
||||
int mode = View.MeasureSpec.getMode(i4);
|
||||
int size2 = View.MeasureSpec.getSize(i);
|
||||
int size3 = View.MeasureSpec.getSize(i4);
|
||||
int paddingRight = getPaddingRight() + getPaddingLeft();
|
||||
int paddingBottom = getPaddingBottom() + getPaddingTop();
|
||||
int childMeasureSpec = ViewGroup.getChildMeasureSpec(i4, paddingBottom, -2);
|
||||
int i10 = size2 - paddingRight;
|
||||
int i11 = this.f2421y;
|
||||
int i12 = i10 / i11;
|
||||
int i13 = i10 % i11;
|
||||
if (i12 == 0) {
|
||||
setMeasuredDimension(i10, 0);
|
||||
return;
|
||||
}
|
||||
int i14 = (i13 / i12) + i11;
|
||||
int childCount2 = getChildCount();
|
||||
int i15 = 0;
|
||||
int i16 = 0;
|
||||
int i17 = 0;
|
||||
int i18 = 0;
|
||||
boolean z5 = false;
|
||||
int i19 = 0;
|
||||
long j4 = 0;
|
||||
while (true) {
|
||||
i5 = this.f2422z;
|
||||
if (i18 >= childCount2) {
|
||||
break;
|
||||
}
|
||||
View childAt = getChildAt(i18);
|
||||
int i20 = size3;
|
||||
int i21 = paddingBottom;
|
||||
if (childAt.getVisibility() == 8) {
|
||||
i7 = i14;
|
||||
} else {
|
||||
boolean z6 = childAt instanceof ActionMenuItemView;
|
||||
i16++;
|
||||
if (z6) {
|
||||
childAt.setPadding(i5, 0, i5, 0);
|
||||
}
|
||||
C0476n c0476n2 = (C0476n) childAt.getLayoutParams();
|
||||
c0476n2.f7714f = false;
|
||||
c0476n2.f7711c = 0;
|
||||
c0476n2.f7710b = 0;
|
||||
c0476n2.f7712d = false;
|
||||
((LinearLayout.LayoutParams) c0476n2).leftMargin = 0;
|
||||
((LinearLayout.LayoutParams) c0476n2).rightMargin = 0;
|
||||
c0476n2.f7713e = z6 && !TextUtils.isEmpty(((ActionMenuItemView) childAt).getText());
|
||||
int i22 = c0476n2.f7709a ? 1 : i12;
|
||||
C0476n c0476n3 = (C0476n) childAt.getLayoutParams();
|
||||
int i23 = i12;
|
||||
i7 = i14;
|
||||
int makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(View.MeasureSpec.getSize(childMeasureSpec) - i21, View.MeasureSpec.getMode(childMeasureSpec));
|
||||
ActionMenuItemView actionMenuItemView = z6 ? (ActionMenuItemView) childAt : null;
|
||||
boolean z7 = (actionMenuItemView == null || TextUtils.isEmpty(actionMenuItemView.getText())) ? false : true;
|
||||
boolean z8 = z7;
|
||||
if (i22 <= 0 || (z7 && i22 < 2)) {
|
||||
i8 = 0;
|
||||
} else {
|
||||
childAt.measure(View.MeasureSpec.makeMeasureSpec(i7 * i22, IntCompanionObject.MIN_VALUE), makeMeasureSpec);
|
||||
int measuredWidth = childAt.getMeasuredWidth();
|
||||
i8 = measuredWidth / i7;
|
||||
if (measuredWidth % i7 != 0) {
|
||||
i8++;
|
||||
}
|
||||
if (z8 && i8 < 2) {
|
||||
i8 = 2;
|
||||
}
|
||||
}
|
||||
c0476n3.f7712d = !c0476n3.f7709a && z8;
|
||||
c0476n3.f7710b = i8;
|
||||
childAt.measure(View.MeasureSpec.makeMeasureSpec(i8 * i7, 1073741824), makeMeasureSpec);
|
||||
i17 = Math.max(i17, i8);
|
||||
if (c0476n2.f7712d) {
|
||||
i19++;
|
||||
}
|
||||
if (c0476n2.f7709a) {
|
||||
z5 = true;
|
||||
}
|
||||
i12 = i23 - i8;
|
||||
i15 = Math.max(i15, childAt.getMeasuredHeight());
|
||||
if (i8 == 1) {
|
||||
j4 |= 1 << i18;
|
||||
}
|
||||
}
|
||||
i18++;
|
||||
size3 = i20;
|
||||
paddingBottom = i21;
|
||||
i14 = i7;
|
||||
}
|
||||
int i24 = size3;
|
||||
int i25 = i12;
|
||||
int i26 = i14;
|
||||
boolean z9 = z5 && i16 == 2;
|
||||
int i27 = i25;
|
||||
boolean z10 = false;
|
||||
while (i19 > 0 && i27 > 0) {
|
||||
int i28 = Integer.MAX_VALUE;
|
||||
long j5 = 0;
|
||||
int i29 = 0;
|
||||
int i30 = 0;
|
||||
while (i30 < childCount2) {
|
||||
boolean z11 = z9;
|
||||
C0476n c0476n4 = (C0476n) getChildAt(i30).getLayoutParams();
|
||||
int i31 = i15;
|
||||
if (c0476n4.f7712d) {
|
||||
int i32 = c0476n4.f7710b;
|
||||
if (i32 < i28) {
|
||||
j5 = 1 << i30;
|
||||
i28 = i32;
|
||||
i29 = 1;
|
||||
} else if (i32 == i28) {
|
||||
j5 |= 1 << i30;
|
||||
i29++;
|
||||
}
|
||||
}
|
||||
i30++;
|
||||
i15 = i31;
|
||||
z9 = z11;
|
||||
}
|
||||
boolean z12 = z9;
|
||||
i6 = i15;
|
||||
j4 |= j5;
|
||||
if (i29 > i27) {
|
||||
break;
|
||||
}
|
||||
int i33 = i28 + 1;
|
||||
int i34 = 0;
|
||||
while (i34 < childCount2) {
|
||||
View childAt2 = getChildAt(i34);
|
||||
C0476n c0476n5 = (C0476n) childAt2.getLayoutParams();
|
||||
boolean z13 = z5;
|
||||
long j6 = 1 << i34;
|
||||
if ((j5 & j6) != 0) {
|
||||
if (z12 && c0476n5.f7713e) {
|
||||
r11 = 1;
|
||||
r11 = 1;
|
||||
if (i27 == 1) {
|
||||
childAt2.setPadding(i5 + i26, 0, i5, 0);
|
||||
}
|
||||
} else {
|
||||
r11 = 1;
|
||||
}
|
||||
c0476n5.f7710b += r11;
|
||||
c0476n5.f7714f = r11;
|
||||
i27--;
|
||||
} else if (c0476n5.f7710b == i33) {
|
||||
j4 |= j6;
|
||||
}
|
||||
i34++;
|
||||
z5 = z13;
|
||||
}
|
||||
i15 = i6;
|
||||
z9 = z12;
|
||||
z10 = true;
|
||||
}
|
||||
i6 = i15;
|
||||
boolean z14 = !z5 && i16 == 1;
|
||||
if (i27 > 0 && j4 != 0 && (i27 < i16 - 1 || z14 || i17 > 1)) {
|
||||
float bitCount = Long.bitCount(j4);
|
||||
if (!z14) {
|
||||
if ((j4 & 1) != 0 && !((C0476n) getChildAt(0).getLayoutParams()).f7713e) {
|
||||
bitCount -= 0.5f;
|
||||
}
|
||||
int i35 = childCount2 - 1;
|
||||
if ((j4 & (1 << i35)) != 0 && !((C0476n) getChildAt(i35).getLayoutParams()).f7713e) {
|
||||
bitCount -= 0.5f;
|
||||
}
|
||||
}
|
||||
int i36 = bitCount > BitmapDescriptorFactory.HUE_RED ? (int) ((i27 * i26) / bitCount) : 0;
|
||||
boolean z15 = z10;
|
||||
for (int i37 = 0; i37 < childCount2; i37++) {
|
||||
if ((j4 & (1 << i37)) != 0) {
|
||||
View childAt3 = getChildAt(i37);
|
||||
C0476n c0476n6 = (C0476n) childAt3.getLayoutParams();
|
||||
if (childAt3 instanceof ActionMenuItemView) {
|
||||
c0476n6.f7711c = i36;
|
||||
c0476n6.f7714f = true;
|
||||
if (i37 == 0 && !c0476n6.f7713e) {
|
||||
((LinearLayout.LayoutParams) c0476n6).leftMargin = (-i36) / 2;
|
||||
}
|
||||
z15 = true;
|
||||
} else if (c0476n6.f7709a) {
|
||||
c0476n6.f7711c = i36;
|
||||
c0476n6.f7714f = true;
|
||||
((LinearLayout.LayoutParams) c0476n6).rightMargin = (-i36) / 2;
|
||||
z15 = true;
|
||||
} else {
|
||||
if (i37 != 0) {
|
||||
((LinearLayout.LayoutParams) c0476n6).leftMargin = i36 / 2;
|
||||
}
|
||||
if (i37 != childCount2 - 1) {
|
||||
((LinearLayout.LayoutParams) c0476n6).rightMargin = i36 / 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
z10 = z15;
|
||||
}
|
||||
if (z10) {
|
||||
for (int i38 = 0; i38 < childCount2; i38++) {
|
||||
View childAt4 = getChildAt(i38);
|
||||
C0476n c0476n7 = (C0476n) childAt4.getLayoutParams();
|
||||
if (c0476n7.f7714f) {
|
||||
childAt4.measure(View.MeasureSpec.makeMeasureSpec((c0476n7.f7710b * i26) + c0476n7.f7711c, 1073741824), childMeasureSpec);
|
||||
}
|
||||
}
|
||||
}
|
||||
setMeasuredDimension(i10, mode != 1073741824 ? i6 : i24);
|
||||
}
|
||||
|
||||
public void setExpandedActionViewsExclusive(boolean z3) {
|
||||
this.f2416t.f7690r = z3;
|
||||
}
|
||||
|
||||
public void setOnMenuItemClickListener(InterfaceC0478o interfaceC0478o) {
|
||||
this.f2412A = interfaceC0478o;
|
||||
}
|
||||
|
||||
public void setOverflowIcon(Drawable drawable) {
|
||||
getMenu();
|
||||
C0472l c0472l = this.f2416t;
|
||||
C0468j c0468j = c0472l.f7683j;
|
||||
if (c0468j != null) {
|
||||
c0468j.setImageDrawable(drawable);
|
||||
} else {
|
||||
c0472l.f7685l = true;
|
||||
c0472l.f7684k = drawable;
|
||||
}
|
||||
}
|
||||
|
||||
public void setOverflowReserved(boolean z3) {
|
||||
this.f2415s = z3;
|
||||
}
|
||||
|
||||
public void setPopupTheme(int i) {
|
||||
if (this.f2414r != i) {
|
||||
this.f2414r = i;
|
||||
if (i == 0) {
|
||||
this.f2413q = getContext();
|
||||
} else {
|
||||
this.f2413q = new ContextThemeWrapper(getContext(), i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setPresenter(C0472l c0472l) {
|
||||
this.f2416t = c0472l;
|
||||
c0472l.h = this;
|
||||
this.p = c0472l.f7678c;
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.LinearLayoutCompat, android.view.ViewGroup
|
||||
public final ViewGroup.LayoutParams generateLayoutParams(AttributeSet attributeSet) {
|
||||
return new LinearLayout.LayoutParams(getContext(), attributeSet);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import a.AbstractC0106b;
|
||||
import android.R;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.LinearLayout;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ActivityChooserView$InnerLayout extends LinearLayout {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public static final int[] f2423a = {R.attr.background};
|
||||
|
||||
public ActivityChooserView$InnerLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
int resourceId;
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, f2423a);
|
||||
setBackgroundDrawable((!obtainStyledAttributes.hasValue(0) || (resourceId = obtainStyledAttributes.getResourceId(0, 0)) == 0) ? obtainStyledAttributes.getDrawable(0) : AbstractC0106b.m(context, resourceId));
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import O.X;
|
||||
import android.content.Context;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.LinearLayout;
|
||||
import com.adif.elcanomovil.R;
|
||||
import java.util.WeakHashMap;
|
||||
import m.C0483q0;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class AlertDialogLayout extends LinearLayoutCompat {
|
||||
public AlertDialogLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
public static int j(View view) {
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
int minimumHeight = view.getMinimumHeight();
|
||||
if (minimumHeight > 0) {
|
||||
return minimumHeight;
|
||||
}
|
||||
if (view instanceof ViewGroup) {
|
||||
ViewGroup viewGroup = (ViewGroup) view;
|
||||
if (viewGroup.getChildCount() == 1) {
|
||||
return j(viewGroup.getChildAt(0));
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:25:0x009e */
|
||||
@Override // androidx.appcompat.widget.LinearLayoutCompat, android.view.ViewGroup, android.view.View
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final void onLayout(boolean r10, int r11, int r12, int r13, int r14) {
|
||||
/*
|
||||
r9 = this;
|
||||
int r10 = r9.getPaddingLeft()
|
||||
int r13 = r13 - r11
|
||||
int r11 = r9.getPaddingRight()
|
||||
int r11 = r13 - r11
|
||||
int r13 = r13 - r10
|
||||
int r0 = r9.getPaddingRight()
|
||||
int r13 = r13 - r0
|
||||
int r0 = r9.getMeasuredHeight()
|
||||
int r1 = r9.getChildCount()
|
||||
int r2 = r9.getGravity()
|
||||
r3 = r2 & 112(0x70, float:1.57E-43)
|
||||
r4 = 8388615(0x800007, float:1.1754953E-38)
|
||||
r2 = r2 & r4
|
||||
r4 = 16
|
||||
if (r3 == r4) goto L39
|
||||
r4 = 80
|
||||
if (r3 == r4) goto L30
|
||||
int r12 = r9.getPaddingTop()
|
||||
goto L43
|
||||
L30:
|
||||
int r3 = r9.getPaddingTop()
|
||||
int r3 = r3 + r14
|
||||
int r3 = r3 - r12
|
||||
int r12 = r3 - r0
|
||||
goto L43
|
||||
L39:
|
||||
int r3 = r9.getPaddingTop()
|
||||
int r14 = r14 - r12
|
||||
int r14 = r14 - r0
|
||||
int r14 = r14 / 2
|
||||
int r12 = r14 + r3
|
||||
L43:
|
||||
android.graphics.drawable.Drawable r14 = r9.getDividerDrawable()
|
||||
r0 = 0
|
||||
if (r14 != 0) goto L4c
|
||||
r14 = r0
|
||||
goto L50
|
||||
L4c:
|
||||
int r14 = r14.getIntrinsicHeight()
|
||||
L50:
|
||||
if (r0 >= r1) goto Lb0
|
||||
android.view.View r3 = r9.getChildAt(r0)
|
||||
if (r3 == 0) goto Lad
|
||||
int r4 = r3.getVisibility()
|
||||
r5 = 8
|
||||
if (r4 == r5) goto Lad
|
||||
int r4 = r3.getMeasuredWidth()
|
||||
int r5 = r3.getMeasuredHeight()
|
||||
android.view.ViewGroup$LayoutParams r6 = r3.getLayoutParams()
|
||||
m.q0 r6 = (m.C0483q0) r6
|
||||
int r7 = r6.gravity
|
||||
if (r7 >= 0) goto L73
|
||||
r7 = r2
|
||||
L73:
|
||||
int r8 = r9.getLayoutDirection()
|
||||
int r7 = android.view.Gravity.getAbsoluteGravity(r7, r8)
|
||||
r7 = r7 & 7
|
||||
r8 = 1
|
||||
if (r7 == r8) goto L8d
|
||||
r8 = 5
|
||||
if (r7 == r8) goto L87
|
||||
int r7 = r6.leftMargin
|
||||
int r7 = r7 + r10
|
||||
goto L98
|
||||
L87:
|
||||
int r7 = r11 - r4
|
||||
int r8 = r6.rightMargin
|
||||
L8b:
|
||||
int r7 = r7 - r8
|
||||
goto L98
|
||||
L8d:
|
||||
int r7 = r13 - r4
|
||||
int r7 = r7 / 2
|
||||
int r7 = r7 + r10
|
||||
int r8 = r6.leftMargin
|
||||
int r7 = r7 + r8
|
||||
int r8 = r6.rightMargin
|
||||
goto L8b
|
||||
L98:
|
||||
boolean r8 = r9.i(r0)
|
||||
if (r8 == 0) goto L9f
|
||||
int r12 = r12 + r14
|
||||
L9f:
|
||||
int r8 = r6.topMargin
|
||||
int r12 = r12 + r8
|
||||
int r4 = r4 + r7
|
||||
int r8 = r12 + r5
|
||||
r3.layout(r7, r12, r4, r8)
|
||||
int r3 = r6.bottomMargin
|
||||
int r5 = r5 + r3
|
||||
int r5 = r5 + r12
|
||||
r12 = r5
|
||||
Lad:
|
||||
int r0 = r0 + 1
|
||||
goto L50
|
||||
Lb0:
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.widget.AlertDialogLayout.onLayout(boolean, int, int, int, int):void");
|
||||
}
|
||||
|
||||
@Override // androidx.appcompat.widget.LinearLayoutCompat, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
int i5;
|
||||
int i6;
|
||||
int i7;
|
||||
int i8;
|
||||
AlertDialogLayout alertDialogLayout = this;
|
||||
int childCount = alertDialogLayout.getChildCount();
|
||||
View view = null;
|
||||
View view2 = null;
|
||||
View view3 = null;
|
||||
for (int i9 = 0; i9 < childCount; i9++) {
|
||||
View childAt = alertDialogLayout.getChildAt(i9);
|
||||
if (childAt.getVisibility() != 8) {
|
||||
int id = childAt.getId();
|
||||
if (id == R.id.topPanel) {
|
||||
view = childAt;
|
||||
} else if (id == R.id.buttonPanel) {
|
||||
view2 = childAt;
|
||||
} else {
|
||||
if ((id != R.id.contentPanel && id != R.id.customPanel) || view3 != null) {
|
||||
super.onMeasure(i, i4);
|
||||
return;
|
||||
}
|
||||
view3 = childAt;
|
||||
}
|
||||
}
|
||||
}
|
||||
int mode = View.MeasureSpec.getMode(i4);
|
||||
int size = View.MeasureSpec.getSize(i4);
|
||||
int mode2 = View.MeasureSpec.getMode(i);
|
||||
int paddingBottom = alertDialogLayout.getPaddingBottom() + alertDialogLayout.getPaddingTop();
|
||||
if (view != null) {
|
||||
view.measure(i, 0);
|
||||
paddingBottom += view.getMeasuredHeight();
|
||||
i5 = View.combineMeasuredStates(0, view.getMeasuredState());
|
||||
} else {
|
||||
i5 = 0;
|
||||
}
|
||||
if (view2 != null) {
|
||||
view2.measure(i, 0);
|
||||
i6 = j(view2);
|
||||
i7 = view2.getMeasuredHeight() - i6;
|
||||
paddingBottom += i6;
|
||||
i5 = View.combineMeasuredStates(i5, view2.getMeasuredState());
|
||||
} else {
|
||||
i6 = 0;
|
||||
i7 = 0;
|
||||
}
|
||||
if (view3 != null) {
|
||||
view3.measure(i, mode == 0 ? 0 : View.MeasureSpec.makeMeasureSpec(Math.max(0, size - paddingBottom), mode));
|
||||
i8 = view3.getMeasuredHeight();
|
||||
paddingBottom += i8;
|
||||
i5 = View.combineMeasuredStates(i5, view3.getMeasuredState());
|
||||
} else {
|
||||
i8 = 0;
|
||||
}
|
||||
int i10 = size - paddingBottom;
|
||||
if (view2 != null) {
|
||||
int i11 = paddingBottom - i6;
|
||||
int min = Math.min(i10, i7);
|
||||
if (min > 0) {
|
||||
i10 -= min;
|
||||
i6 += min;
|
||||
}
|
||||
view2.measure(i, View.MeasureSpec.makeMeasureSpec(i6, 1073741824));
|
||||
paddingBottom = i11 + view2.getMeasuredHeight();
|
||||
i5 = View.combineMeasuredStates(i5, view2.getMeasuredState());
|
||||
}
|
||||
if (view3 != null && i10 > 0) {
|
||||
view3.measure(i, View.MeasureSpec.makeMeasureSpec(i8 + i10, mode));
|
||||
paddingBottom = (paddingBottom - i8) + view3.getMeasuredHeight();
|
||||
i5 = View.combineMeasuredStates(i5, view3.getMeasuredState());
|
||||
}
|
||||
int i12 = 0;
|
||||
for (int i13 = 0; i13 < childCount; i13++) {
|
||||
View childAt2 = alertDialogLayout.getChildAt(i13);
|
||||
if (childAt2.getVisibility() != 8) {
|
||||
i12 = Math.max(i12, childAt2.getMeasuredWidth());
|
||||
}
|
||||
}
|
||||
int i14 = i4;
|
||||
alertDialogLayout.setMeasuredDimension(View.resolveSizeAndState(alertDialogLayout.getPaddingRight() + alertDialogLayout.getPaddingLeft() + i12, i, i5), View.resolveSizeAndState(paddingBottom, i14, 0));
|
||||
if (mode2 != 1073741824) {
|
||||
int makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(alertDialogLayout.getMeasuredWidth(), 1073741824);
|
||||
int i15 = 0;
|
||||
while (i15 < childCount) {
|
||||
View childAt3 = alertDialogLayout.getChildAt(i15);
|
||||
if (childAt3.getVisibility() != 8) {
|
||||
C0483q0 c0483q0 = (C0483q0) childAt3.getLayoutParams();
|
||||
if (((LinearLayout.LayoutParams) c0483q0).width == -1) {
|
||||
int i16 = ((LinearLayout.LayoutParams) c0483q0).height;
|
||||
((LinearLayout.LayoutParams) c0483q0).height = childAt3.getMeasuredHeight();
|
||||
alertDialogLayout.measureChildWithMargins(childAt3, makeMeasureSpec, 0, i14, 0);
|
||||
((LinearLayout.LayoutParams) c0483q0).height = i16;
|
||||
}
|
||||
}
|
||||
i15++;
|
||||
alertDialogLayout = this;
|
||||
i14 = i4;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,237 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.text.InputFilter;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.ActionMode;
|
||||
import android.view.accessibility.AccessibilityEvent;
|
||||
import android.view.accessibility.AccessibilityNodeInfo;
|
||||
import android.widget.Button;
|
||||
import androidx.recyclerview.widget.C0207b;
|
||||
import com.adif.elcanomovil.R;
|
||||
import m.C0491v;
|
||||
import m.K0;
|
||||
import m.L0;
|
||||
import m.T;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class AppCompatButton extends Button {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final C0207b f2424a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final T f2425b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public C0491v f2426c;
|
||||
|
||||
public AppCompatButton(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, R.attr.buttonStyle);
|
||||
}
|
||||
|
||||
private C0491v getEmojiTextViewHelper() {
|
||||
if (this.f2426c == null) {
|
||||
this.f2426c = new C0491v(this);
|
||||
}
|
||||
return this.f2426c;
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public final void drawableStateChanged() {
|
||||
super.drawableStateChanged();
|
||||
C0207b c0207b = this.f2424a;
|
||||
if (c0207b != null) {
|
||||
c0207b.a();
|
||||
}
|
||||
T t2 = this.f2425b;
|
||||
if (t2 != null) {
|
||||
t2.b();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public int getAutoSizeMaxTextSize() {
|
||||
return super.getAutoSizeMaxTextSize();
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public int getAutoSizeMinTextSize() {
|
||||
return super.getAutoSizeMinTextSize();
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public int getAutoSizeStepGranularity() {
|
||||
return super.getAutoSizeStepGranularity();
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public int[] getAutoSizeTextAvailableSizes() {
|
||||
return super.getAutoSizeTextAvailableSizes();
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
@SuppressLint({"WrongConstant"})
|
||||
public int getAutoSizeTextType() {
|
||||
return super.getAutoSizeTextType() == 1 ? 1 : 0;
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public ActionMode.Callback getCustomSelectionActionModeCallback() {
|
||||
return super.getCustomSelectionActionModeCallback();
|
||||
}
|
||||
|
||||
public ColorStateList getSupportBackgroundTintList() {
|
||||
C0207b c0207b = this.f2424a;
|
||||
if (c0207b != null) {
|
||||
return c0207b.h();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public PorterDuff.Mode getSupportBackgroundTintMode() {
|
||||
C0207b c0207b = this.f2424a;
|
||||
if (c0207b != null) {
|
||||
return c0207b.i();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public ColorStateList getSupportCompoundDrawablesTintList() {
|
||||
return this.f2425b.d();
|
||||
}
|
||||
|
||||
public PorterDuff.Mode getSupportCompoundDrawablesTintMode() {
|
||||
return this.f2425b.e();
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void onInitializeAccessibilityEvent(AccessibilityEvent accessibilityEvent) {
|
||||
super.onInitializeAccessibilityEvent(accessibilityEvent);
|
||||
accessibilityEvent.setClassName(Button.class.getName());
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo accessibilityNodeInfo) {
|
||||
super.onInitializeAccessibilityNodeInfo(accessibilityNodeInfo);
|
||||
accessibilityNodeInfo.setClassName(Button.class.getName());
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public void onLayout(boolean z3, int i, int i4, int i5, int i6) {
|
||||
super.onLayout(z3, i, i4, i5, i6);
|
||||
T t2 = this.f2425b;
|
||||
if (t2 != null) {
|
||||
t2.getClass();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public void onTextChanged(CharSequence charSequence, int i, int i4, int i5) {
|
||||
super.onTextChanged(charSequence, i, i4, i5);
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public void setAllCaps(boolean z3) {
|
||||
super.setAllCaps(z3);
|
||||
getEmojiTextViewHelper().c(z3);
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public void setAutoSizeTextTypeWithDefaults(int i) {
|
||||
super.setAutoSizeTextTypeWithDefaults(i);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundDrawable(Drawable drawable) {
|
||||
super.setBackgroundDrawable(drawable);
|
||||
C0207b c0207b = this.f2424a;
|
||||
if (c0207b != null) {
|
||||
c0207b.m();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundResource(int i) {
|
||||
super.setBackgroundResource(i);
|
||||
C0207b c0207b = this.f2424a;
|
||||
if (c0207b != null) {
|
||||
c0207b.n(i);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public void setCustomSelectionActionModeCallback(ActionMode.Callback callback) {
|
||||
super.setCustomSelectionActionModeCallback(callback);
|
||||
}
|
||||
|
||||
public void setEmojiCompatEnabled(boolean z3) {
|
||||
getEmojiTextViewHelper().d(z3);
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public void setFilters(InputFilter[] inputFilterArr) {
|
||||
super.setFilters(getEmojiTextViewHelper().a(inputFilterArr));
|
||||
}
|
||||
|
||||
public void setSupportAllCaps(boolean z3) {
|
||||
T t2 = this.f2425b;
|
||||
if (t2 != null) {
|
||||
t2.f7608a.setAllCaps(z3);
|
||||
}
|
||||
}
|
||||
|
||||
public void setSupportBackgroundTintList(ColorStateList colorStateList) {
|
||||
C0207b c0207b = this.f2424a;
|
||||
if (c0207b != null) {
|
||||
c0207b.s(colorStateList);
|
||||
}
|
||||
}
|
||||
|
||||
public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
|
||||
C0207b c0207b = this.f2424a;
|
||||
if (c0207b != null) {
|
||||
c0207b.t(mode);
|
||||
}
|
||||
}
|
||||
|
||||
public void setSupportCompoundDrawablesTintList(ColorStateList colorStateList) {
|
||||
T t2 = this.f2425b;
|
||||
t2.i(colorStateList);
|
||||
t2.b();
|
||||
}
|
||||
|
||||
public void setSupportCompoundDrawablesTintMode(PorterDuff.Mode mode) {
|
||||
T t2 = this.f2425b;
|
||||
t2.j(mode);
|
||||
t2.b();
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public final void setTextAppearance(Context context, int i) {
|
||||
super.setTextAppearance(context, i);
|
||||
T t2 = this.f2425b;
|
||||
if (t2 != null) {
|
||||
t2.g(context, i);
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public AppCompatButton(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
L0.a(context);
|
||||
K0.a(this, getContext());
|
||||
C0207b c0207b = new C0207b(this);
|
||||
this.f2424a = c0207b;
|
||||
c0207b.k(attributeSet, i);
|
||||
T t2 = new T(this);
|
||||
this.f2425b = t2;
|
||||
t2.f(attributeSet, i);
|
||||
t2.b();
|
||||
getEmojiTextViewHelper().b(attributeSet, i);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,331 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import A.a;
|
||||
import I2.k;
|
||||
import O.C0060d;
|
||||
import O.C0064f;
|
||||
import O.InterfaceC0058c;
|
||||
import O.InterfaceC0082x;
|
||||
import O.X;
|
||||
import T.b;
|
||||
import U.w;
|
||||
import a.AbstractC0106b;
|
||||
import android.app.Activity;
|
||||
import android.content.ClipData;
|
||||
import android.content.ClipboardManager;
|
||||
import android.content.Context;
|
||||
import android.content.ContextWrapper;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Build;
|
||||
import android.text.Editable;
|
||||
import android.text.method.KeyListener;
|
||||
import android.text.method.NumberKeyListener;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.Log;
|
||||
import android.view.ActionMode;
|
||||
import android.view.DragEvent;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputConnection;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.view.textclassifier.TextClassifier;
|
||||
import android.widget.EditText;
|
||||
import androidx.recyclerview.widget.C0207b;
|
||||
import com.adif.elcanomovil.R;
|
||||
import m.AbstractC0444C;
|
||||
import m.C0489u;
|
||||
import m.C0499z;
|
||||
import m.K0;
|
||||
import m.L0;
|
||||
import m.T;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class AppCompatEditText extends EditText implements InterfaceC0082x {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final C0207b f2427a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final T f2428b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public final w f2429c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public final C0499z f2430d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public C0489u f2431e;
|
||||
|
||||
public AppCompatEditText(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, 0);
|
||||
}
|
||||
|
||||
private C0489u getSuperCaller() {
|
||||
if (this.f2431e == null) {
|
||||
this.f2431e = new C0489u(this);
|
||||
}
|
||||
return this.f2431e;
|
||||
}
|
||||
|
||||
@Override // O.InterfaceC0082x
|
||||
public final C0064f a(C0064f c0064f) {
|
||||
return this.f2429c.a(this, c0064f);
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public final void drawableStateChanged() {
|
||||
super.drawableStateChanged();
|
||||
C0207b c0207b = this.f2427a;
|
||||
if (c0207b != null) {
|
||||
c0207b.a();
|
||||
}
|
||||
T t2 = this.f2428b;
|
||||
if (t2 != null) {
|
||||
t2.b();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public ActionMode.Callback getCustomSelectionActionModeCallback() {
|
||||
return super.getCustomSelectionActionModeCallback();
|
||||
}
|
||||
|
||||
public ColorStateList getSupportBackgroundTintList() {
|
||||
C0207b c0207b = this.f2427a;
|
||||
if (c0207b != null) {
|
||||
return c0207b.h();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public PorterDuff.Mode getSupportBackgroundTintMode() {
|
||||
C0207b c0207b = this.f2427a;
|
||||
if (c0207b != null) {
|
||||
return c0207b.i();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public ColorStateList getSupportCompoundDrawablesTintList() {
|
||||
return this.f2428b.d();
|
||||
}
|
||||
|
||||
public PorterDuff.Mode getSupportCompoundDrawablesTintMode() {
|
||||
return this.f2428b.e();
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public TextClassifier getTextClassifier() {
|
||||
return super.getTextClassifier();
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public InputConnection onCreateInputConnection(EditorInfo editorInfo) {
|
||||
String[] d4;
|
||||
InputConnection onCreateInputConnection = super.onCreateInputConnection(editorInfo);
|
||||
this.f2428b.getClass();
|
||||
T.h(editorInfo, onCreateInputConnection, this);
|
||||
AbstractC0106b.x(editorInfo, onCreateInputConnection, this);
|
||||
if (onCreateInputConnection != null && Build.VERSION.SDK_INT <= 30 && (d4 = X.d(this)) != null) {
|
||||
editorInfo.contentMimeTypes = d4;
|
||||
onCreateInputConnection = new b(onCreateInputConnection, new k(this, 1));
|
||||
}
|
||||
return this.f2430d.f(onCreateInputConnection, editorInfo);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow();
|
||||
int i = Build.VERSION.SDK_INT;
|
||||
if (i < 30 || i >= 33) {
|
||||
return;
|
||||
}
|
||||
((InputMethodManager) getContext().getSystemService("input_method")).isActive(this);
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public final boolean onDragEvent(DragEvent dragEvent) {
|
||||
Activity activity;
|
||||
boolean z3 = false;
|
||||
if (Build.VERSION.SDK_INT < 31 && dragEvent.getLocalState() == null && X.d(this) != null) {
|
||||
Context context = getContext();
|
||||
while (true) {
|
||||
if (!(context instanceof ContextWrapper)) {
|
||||
activity = null;
|
||||
break;
|
||||
}
|
||||
if (context instanceof Activity) {
|
||||
activity = (Activity) context;
|
||||
break;
|
||||
}
|
||||
context = ((ContextWrapper) context).getBaseContext();
|
||||
}
|
||||
if (activity == null) {
|
||||
Log.i("ReceiveContent", "Can't handle drop: no activity: view=" + this);
|
||||
} else if (dragEvent.getAction() != 1 && dragEvent.getAction() == 3) {
|
||||
z3 = AbstractC0444C.a(dragEvent, this, activity);
|
||||
}
|
||||
}
|
||||
if (z3) {
|
||||
return true;
|
||||
}
|
||||
return super.onDragEvent(dragEvent);
|
||||
}
|
||||
|
||||
@Override // android.widget.EditText, android.widget.TextView
|
||||
public final boolean onTextContextMenuItem(int i) {
|
||||
InterfaceC0058c interfaceC0058c;
|
||||
int i4 = Build.VERSION.SDK_INT;
|
||||
if (i4 >= 31 || X.d(this) == null || !(i == 16908322 || i == 16908337)) {
|
||||
return super.onTextContextMenuItem(i);
|
||||
}
|
||||
ClipboardManager clipboardManager = (ClipboardManager) getContext().getSystemService("clipboard");
|
||||
ClipData primaryClip = clipboardManager == null ? null : clipboardManager.getPrimaryClip();
|
||||
if (primaryClip != null && primaryClip.getItemCount() > 0) {
|
||||
if (i4 >= 31) {
|
||||
interfaceC0058c = new a(primaryClip, 1);
|
||||
} else {
|
||||
C0060d c0060d = new C0060d();
|
||||
c0060d.f1236b = primaryClip;
|
||||
c0060d.f1237c = 1;
|
||||
interfaceC0058c = c0060d;
|
||||
}
|
||||
interfaceC0058c.k(i == 16908322 ? 0 : 1);
|
||||
X.g(this, interfaceC0058c.build());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundDrawable(Drawable drawable) {
|
||||
super.setBackgroundDrawable(drawable);
|
||||
C0207b c0207b = this.f2427a;
|
||||
if (c0207b != null) {
|
||||
c0207b.m();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundResource(int i) {
|
||||
super.setBackgroundResource(i);
|
||||
C0207b c0207b = this.f2427a;
|
||||
if (c0207b != null) {
|
||||
c0207b.n(i);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public final void setCompoundDrawables(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
|
||||
super.setCompoundDrawables(drawable, drawable2, drawable3, drawable4);
|
||||
T t2 = this.f2428b;
|
||||
if (t2 != null) {
|
||||
t2.b();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public final void setCompoundDrawablesRelative(Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
|
||||
super.setCompoundDrawablesRelative(drawable, drawable2, drawable3, drawable4);
|
||||
T t2 = this.f2428b;
|
||||
if (t2 != null) {
|
||||
t2.b();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public void setCustomSelectionActionModeCallback(ActionMode.Callback callback) {
|
||||
super.setCustomSelectionActionModeCallback(callback);
|
||||
}
|
||||
|
||||
public void setEmojiCompatEnabled(boolean z3) {
|
||||
this.f2430d.g(z3);
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public void setKeyListener(KeyListener keyListener) {
|
||||
super.setKeyListener(this.f2430d.d(keyListener));
|
||||
}
|
||||
|
||||
public void setSupportBackgroundTintList(ColorStateList colorStateList) {
|
||||
C0207b c0207b = this.f2427a;
|
||||
if (c0207b != null) {
|
||||
c0207b.s(colorStateList);
|
||||
}
|
||||
}
|
||||
|
||||
public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
|
||||
C0207b c0207b = this.f2427a;
|
||||
if (c0207b != null) {
|
||||
c0207b.t(mode);
|
||||
}
|
||||
}
|
||||
|
||||
public void setSupportCompoundDrawablesTintList(ColorStateList colorStateList) {
|
||||
T t2 = this.f2428b;
|
||||
t2.i(colorStateList);
|
||||
t2.b();
|
||||
}
|
||||
|
||||
public void setSupportCompoundDrawablesTintMode(PorterDuff.Mode mode) {
|
||||
T t2 = this.f2428b;
|
||||
t2.j(mode);
|
||||
t2.b();
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public final void setTextAppearance(Context context, int i) {
|
||||
super.setTextAppearance(context, i);
|
||||
T t2 = this.f2428b;
|
||||
if (t2 != null) {
|
||||
t2.g(context, i);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView
|
||||
public void setTextClassifier(TextClassifier textClassifier) {
|
||||
super.setTextClassifier(textClassifier);
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
/* JADX WARN: Type inference failed for: r4v4, types: [java.lang.Object, U.w] */
|
||||
public AppCompatEditText(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, R.attr.editTextStyle);
|
||||
L0.a(context);
|
||||
K0.a(this, getContext());
|
||||
C0207b c0207b = new C0207b(this);
|
||||
this.f2427a = c0207b;
|
||||
c0207b.k(attributeSet, R.attr.editTextStyle);
|
||||
T t2 = new T(this);
|
||||
this.f2428b = t2;
|
||||
t2.f(attributeSet, R.attr.editTextStyle);
|
||||
t2.b();
|
||||
this.f2429c = new Object();
|
||||
C0499z c0499z = new C0499z(this);
|
||||
this.f2430d = c0499z;
|
||||
c0499z.e(attributeSet, R.attr.editTextStyle);
|
||||
KeyListener keyListener = getKeyListener();
|
||||
if (keyListener instanceof NumberKeyListener) {
|
||||
return;
|
||||
}
|
||||
boolean isFocusable = super.isFocusable();
|
||||
boolean isClickable = super.isClickable();
|
||||
boolean isLongClickable = super.isLongClickable();
|
||||
int inputType = super.getInputType();
|
||||
KeyListener d4 = c0499z.d(keyListener);
|
||||
if (d4 == keyListener) {
|
||||
return;
|
||||
}
|
||||
super.setKeyListener(d4);
|
||||
super.setRawInputType(inputType);
|
||||
super.setFocusable(isFocusable);
|
||||
super.setClickable(isClickable);
|
||||
super.setLongClickable(isLongClickable);
|
||||
}
|
||||
|
||||
@Override // android.widget.EditText, android.widget.TextView
|
||||
public Editable getText() {
|
||||
return super.getText();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,220 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import B0.G;
|
||||
import a.AbstractC0106b;
|
||||
import android.content.Context;
|
||||
import android.content.res.ColorStateList;
|
||||
import android.graphics.Bitmap;
|
||||
import android.graphics.PorterDuff;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.graphics.drawable.RippleDrawable;
|
||||
import android.net.Uri;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.ImageView;
|
||||
import androidx.recyclerview.widget.C0207b;
|
||||
import e3.C0325k;
|
||||
import m.AbstractC0463g0;
|
||||
import m.K0;
|
||||
import m.L0;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class AppCompatImageView extends ImageView {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public final C0207b f2432a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public final G f2433b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public boolean f2434c;
|
||||
|
||||
public AppCompatImageView(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, 0);
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView, android.view.View
|
||||
public final void drawableStateChanged() {
|
||||
super.drawableStateChanged();
|
||||
C0207b c0207b = this.f2432a;
|
||||
if (c0207b != null) {
|
||||
c0207b.a();
|
||||
}
|
||||
G g4 = this.f2433b;
|
||||
if (g4 != null) {
|
||||
g4.b();
|
||||
}
|
||||
}
|
||||
|
||||
public ColorStateList getSupportBackgroundTintList() {
|
||||
C0207b c0207b = this.f2432a;
|
||||
if (c0207b != null) {
|
||||
return c0207b.h();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public PorterDuff.Mode getSupportBackgroundTintMode() {
|
||||
C0207b c0207b = this.f2432a;
|
||||
if (c0207b != null) {
|
||||
return c0207b.i();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public ColorStateList getSupportImageTintList() {
|
||||
C0325k c0325k;
|
||||
G g4 = this.f2433b;
|
||||
if (g4 == null || (c0325k = (C0325k) g4.f104d) == null) {
|
||||
return null;
|
||||
}
|
||||
return (ColorStateList) c0325k.f6368c;
|
||||
}
|
||||
|
||||
public PorterDuff.Mode getSupportImageTintMode() {
|
||||
C0325k c0325k;
|
||||
G g4 = this.f2433b;
|
||||
if (g4 == null || (c0325k = (C0325k) g4.f104d) == null) {
|
||||
return null;
|
||||
}
|
||||
return (PorterDuff.Mode) c0325k.f6369d;
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView, android.view.View
|
||||
public final boolean hasOverlappingRendering() {
|
||||
return !(((ImageView) this.f2433b.f103c).getBackground() instanceof RippleDrawable) && super.hasOverlappingRendering();
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundDrawable(Drawable drawable) {
|
||||
super.setBackgroundDrawable(drawable);
|
||||
C0207b c0207b = this.f2432a;
|
||||
if (c0207b != null) {
|
||||
c0207b.m();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setBackgroundResource(int i) {
|
||||
super.setBackgroundResource(i);
|
||||
C0207b c0207b = this.f2432a;
|
||||
if (c0207b != null) {
|
||||
c0207b.n(i);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView
|
||||
public void setImageBitmap(Bitmap bitmap) {
|
||||
super.setImageBitmap(bitmap);
|
||||
G g4 = this.f2433b;
|
||||
if (g4 != null) {
|
||||
g4.b();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView
|
||||
public void setImageDrawable(Drawable drawable) {
|
||||
G g4 = this.f2433b;
|
||||
if (g4 != null && drawable != null && !this.f2434c) {
|
||||
g4.f102b = drawable.getLevel();
|
||||
}
|
||||
super.setImageDrawable(drawable);
|
||||
if (g4 != null) {
|
||||
g4.b();
|
||||
if (this.f2434c) {
|
||||
return;
|
||||
}
|
||||
ImageView imageView = (ImageView) g4.f103c;
|
||||
if (imageView.getDrawable() != null) {
|
||||
imageView.getDrawable().setLevel(g4.f102b);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView
|
||||
public void setImageLevel(int i) {
|
||||
super.setImageLevel(i);
|
||||
this.f2434c = true;
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView
|
||||
public void setImageResource(int i) {
|
||||
G g4 = this.f2433b;
|
||||
if (g4 != null) {
|
||||
ImageView imageView = (ImageView) g4.f103c;
|
||||
if (i != 0) {
|
||||
Drawable m4 = AbstractC0106b.m(imageView.getContext(), i);
|
||||
if (m4 != null) {
|
||||
AbstractC0463g0.a(m4);
|
||||
}
|
||||
imageView.setImageDrawable(m4);
|
||||
} else {
|
||||
imageView.setImageDrawable(null);
|
||||
}
|
||||
g4.b();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.ImageView
|
||||
public void setImageURI(Uri uri) {
|
||||
super.setImageURI(uri);
|
||||
G g4 = this.f2433b;
|
||||
if (g4 != null) {
|
||||
g4.b();
|
||||
}
|
||||
}
|
||||
|
||||
public void setSupportBackgroundTintList(ColorStateList colorStateList) {
|
||||
C0207b c0207b = this.f2432a;
|
||||
if (c0207b != null) {
|
||||
c0207b.s(colorStateList);
|
||||
}
|
||||
}
|
||||
|
||||
public void setSupportBackgroundTintMode(PorterDuff.Mode mode) {
|
||||
C0207b c0207b = this.f2432a;
|
||||
if (c0207b != null) {
|
||||
c0207b.t(mode);
|
||||
}
|
||||
}
|
||||
|
||||
public void setSupportImageTintList(ColorStateList colorStateList) {
|
||||
G g4 = this.f2433b;
|
||||
if (g4 != null) {
|
||||
if (((C0325k) g4.f104d) == null) {
|
||||
g4.f104d = new Object();
|
||||
}
|
||||
C0325k c0325k = (C0325k) g4.f104d;
|
||||
c0325k.f6368c = colorStateList;
|
||||
c0325k.f6367b = true;
|
||||
g4.b();
|
||||
}
|
||||
}
|
||||
|
||||
public void setSupportImageTintMode(PorterDuff.Mode mode) {
|
||||
G g4 = this.f2433b;
|
||||
if (g4 != null) {
|
||||
if (((C0325k) g4.f104d) == null) {
|
||||
g4.f104d = new Object();
|
||||
}
|
||||
C0325k c0325k = (C0325k) g4.f104d;
|
||||
c0325k.f6369d = mode;
|
||||
c0325k.f6366a = true;
|
||||
g4.b();
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public AppCompatImageView(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, i);
|
||||
L0.a(context);
|
||||
this.f2434c = false;
|
||||
K0.a(this, getContext());
|
||||
C0207b c0207b = new C0207b(this);
|
||||
this.f2432a = c0207b;
|
||||
c0207b.k(attributeSet, i);
|
||||
G g4 = new G(this);
|
||||
this.f2433b = g4;
|
||||
g4.e(attributeSet, i);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import O.S;
|
||||
import O.X;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.widget.LinearLayout;
|
||||
import com.adif.elcanomovil.R;
|
||||
import f.AbstractC0336a;
|
||||
import java.util.WeakHashMap;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ButtonBarLayout extends LinearLayout {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public boolean f2435a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public boolean f2436b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public int f2437c;
|
||||
|
||||
public ButtonBarLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.f2437c = -1;
|
||||
int[] iArr = AbstractC0336a.f6430k;
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, iArr);
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
S.d(this, context, iArr, attributeSet, obtainStyledAttributes, 0, 0);
|
||||
this.f2435a = obtainStyledAttributes.getBoolean(0, true);
|
||||
obtainStyledAttributes.recycle();
|
||||
if (getOrientation() == 1) {
|
||||
setStacked(this.f2435a);
|
||||
}
|
||||
}
|
||||
|
||||
private void setStacked(boolean z3) {
|
||||
if (this.f2436b != z3) {
|
||||
if (!z3 || this.f2435a) {
|
||||
this.f2436b = z3;
|
||||
setOrientation(z3 ? 1 : 0);
|
||||
setGravity(z3 ? 8388613 : 80);
|
||||
View findViewById = findViewById(R.id.spacer);
|
||||
if (findViewById != null) {
|
||||
findViewById.setVisibility(z3 ? 8 : 4);
|
||||
}
|
||||
for (int childCount = getChildCount() - 2; childCount >= 0; childCount--) {
|
||||
bringChildToFront(getChildAt(childCount));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.LinearLayout, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
int i5;
|
||||
boolean z3;
|
||||
int i6;
|
||||
int size = View.MeasureSpec.getSize(i);
|
||||
int i7 = 0;
|
||||
if (this.f2435a) {
|
||||
if (size > this.f2437c && this.f2436b) {
|
||||
setStacked(false);
|
||||
}
|
||||
this.f2437c = size;
|
||||
}
|
||||
if (this.f2436b || View.MeasureSpec.getMode(i) != 1073741824) {
|
||||
i5 = i;
|
||||
z3 = false;
|
||||
} else {
|
||||
i5 = View.MeasureSpec.makeMeasureSpec(size, IntCompanionObject.MIN_VALUE);
|
||||
z3 = true;
|
||||
}
|
||||
super.onMeasure(i5, i4);
|
||||
if (this.f2435a && !this.f2436b && (getMeasuredWidthAndState() & (-16777216)) == 16777216) {
|
||||
setStacked(true);
|
||||
z3 = true;
|
||||
}
|
||||
if (z3) {
|
||||
super.onMeasure(i, i4);
|
||||
}
|
||||
int childCount = getChildCount();
|
||||
int i8 = 0;
|
||||
while (true) {
|
||||
i6 = -1;
|
||||
if (i8 >= childCount) {
|
||||
i8 = -1;
|
||||
break;
|
||||
} else if (getChildAt(i8).getVisibility() == 0) {
|
||||
break;
|
||||
} else {
|
||||
i8++;
|
||||
}
|
||||
}
|
||||
if (i8 >= 0) {
|
||||
View childAt = getChildAt(i8);
|
||||
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) childAt.getLayoutParams();
|
||||
int measuredHeight = childAt.getMeasuredHeight() + getPaddingTop() + layoutParams.topMargin + layoutParams.bottomMargin;
|
||||
if (this.f2436b) {
|
||||
int i9 = i8 + 1;
|
||||
int childCount2 = getChildCount();
|
||||
while (true) {
|
||||
if (i9 >= childCount2) {
|
||||
break;
|
||||
}
|
||||
if (getChildAt(i9).getVisibility() == 0) {
|
||||
i6 = i9;
|
||||
break;
|
||||
}
|
||||
i9++;
|
||||
}
|
||||
i7 = i6 >= 0 ? getChildAt(i6).getPaddingTop() + ((int) (getResources().getDisplayMetrics().density * 16.0f)) + measuredHeight : measuredHeight;
|
||||
} else {
|
||||
i7 = getPaddingBottom() + measuredHeight;
|
||||
}
|
||||
}
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
if (getMinimumHeight() != i7) {
|
||||
setMinimumHeight(i7);
|
||||
if (i4 == 0) {
|
||||
super.onMeasure(i, i4);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setAllowStacking(boolean z3) {
|
||||
if (this.f2435a != z3) {
|
||||
this.f2435a = z3;
|
||||
if (!z3 && this.f2436b) {
|
||||
setStacked(false);
|
||||
}
|
||||
requestLayout();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,168 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import O.h0;
|
||||
import android.content.Context;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.TypedValue;
|
||||
import android.widget.FrameLayout;
|
||||
import g.C0372t;
|
||||
import g.LayoutInflaterFactory2C0351E;
|
||||
import l.m;
|
||||
import m.C0462g;
|
||||
import m.C0472l;
|
||||
import m.InterfaceC0455c0;
|
||||
import m.InterfaceC0457d0;
|
||||
import m.V0;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ContentFrameLayout extends FrameLayout {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public TypedValue f2438a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public TypedValue f2439b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public TypedValue f2440c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public TypedValue f2441d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public TypedValue f2442e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public TypedValue f2443f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final Rect f2444g;
|
||||
public InterfaceC0455c0 h;
|
||||
|
||||
public ContentFrameLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet, 0);
|
||||
this.f2444g = new Rect();
|
||||
}
|
||||
|
||||
public TypedValue getFixedHeightMajor() {
|
||||
if (this.f2442e == null) {
|
||||
this.f2442e = new TypedValue();
|
||||
}
|
||||
return this.f2442e;
|
||||
}
|
||||
|
||||
public TypedValue getFixedHeightMinor() {
|
||||
if (this.f2443f == null) {
|
||||
this.f2443f = new TypedValue();
|
||||
}
|
||||
return this.f2443f;
|
||||
}
|
||||
|
||||
public TypedValue getFixedWidthMajor() {
|
||||
if (this.f2440c == null) {
|
||||
this.f2440c = new TypedValue();
|
||||
}
|
||||
return this.f2440c;
|
||||
}
|
||||
|
||||
public TypedValue getFixedWidthMinor() {
|
||||
if (this.f2441d == null) {
|
||||
this.f2441d = new TypedValue();
|
||||
}
|
||||
return this.f2441d;
|
||||
}
|
||||
|
||||
public TypedValue getMinWidthMajor() {
|
||||
if (this.f2438a == null) {
|
||||
this.f2438a = new TypedValue();
|
||||
}
|
||||
return this.f2438a;
|
||||
}
|
||||
|
||||
public TypedValue getMinWidthMinor() {
|
||||
if (this.f2439b == null) {
|
||||
this.f2439b = new TypedValue();
|
||||
}
|
||||
return this.f2439b;
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final void onAttachedToWindow() {
|
||||
super.onAttachedToWindow();
|
||||
InterfaceC0455c0 interfaceC0455c0 = this.h;
|
||||
if (interfaceC0455c0 != null) {
|
||||
interfaceC0455c0.getClass();
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
public final void onDetachedFromWindow() {
|
||||
C0472l c0472l;
|
||||
super.onDetachedFromWindow();
|
||||
InterfaceC0455c0 interfaceC0455c0 = this.h;
|
||||
if (interfaceC0455c0 != null) {
|
||||
LayoutInflaterFactory2C0351E layoutInflaterFactory2C0351E = ((C0372t) interfaceC0455c0).f6668b;
|
||||
InterfaceC0457d0 interfaceC0457d0 = layoutInflaterFactory2C0351E.f6533r;
|
||||
if (interfaceC0457d0 != null) {
|
||||
ActionBarOverlayLayout actionBarOverlayLayout = (ActionBarOverlayLayout) interfaceC0457d0;
|
||||
actionBarOverlayLayout.k();
|
||||
ActionMenuView actionMenuView = ((V0) actionBarOverlayLayout.f2393e).f7624a.f2480a;
|
||||
if (actionMenuView != null && (c0472l = actionMenuView.f2416t) != null) {
|
||||
c0472l.c();
|
||||
C0462g c0462g = c0472l.f7693u;
|
||||
if (c0462g != null && c0462g.b()) {
|
||||
c0462g.i.dismiss();
|
||||
}
|
||||
}
|
||||
}
|
||||
if (layoutInflaterFactory2C0351E.f6538w != null) {
|
||||
layoutInflaterFactory2C0351E.f6528l.getDecorView().removeCallbacks(layoutInflaterFactory2C0351E.f6539x);
|
||||
if (layoutInflaterFactory2C0351E.f6538w.isShowing()) {
|
||||
try {
|
||||
layoutInflaterFactory2C0351E.f6538w.dismiss();
|
||||
} catch (IllegalArgumentException unused) {
|
||||
}
|
||||
}
|
||||
layoutInflaterFactory2C0351E.f6538w = null;
|
||||
}
|
||||
h0 h0Var = layoutInflaterFactory2C0351E.f6540y;
|
||||
if (h0Var != null) {
|
||||
h0Var.b();
|
||||
}
|
||||
m mVar = layoutInflaterFactory2C0351E.A(0).h;
|
||||
if (mVar != null) {
|
||||
mVar.c(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x004e */
|
||||
/* JADX WARN: Removed duplicated region for block: B:17:0x0067 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:26:0x008a */
|
||||
/* JADX WARN: Removed duplicated region for block: B:29:0x00ac A[ADDED_TO_REGION] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:31:0x00b0 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:36:0x00bd */
|
||||
/* JADX WARN: Removed duplicated region for block: B:39:0x00d1 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:41:0x00d9 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:43:0x00e1 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:46:? A[RETURN, SYNTHETIC] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:47:0x00c3 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:50:0x00b3 */
|
||||
@Override // android.widget.FrameLayout, android.view.View
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final void onMeasure(int r17, int r18) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 229
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.widget.ContentFrameLayout.onMeasure(int, int):void");
|
||||
}
|
||||
|
||||
public void setAttachListener(InterfaceC0455c0 interfaceC0455c0) {
|
||||
this.h = interfaceC0455c0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import android.R;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.text.Layout;
|
||||
import android.util.AttributeSet;
|
||||
import f.AbstractC0336a;
|
||||
import m.W;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class DialogTitle extends W {
|
||||
public DialogTitle(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
@Override // m.W, android.widget.TextView, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
int lineCount;
|
||||
super.onMeasure(i, i4);
|
||||
Layout layout = getLayout();
|
||||
if (layout == null || (lineCount = layout.getLineCount()) <= 0 || layout.getEllipsisCount(lineCount - 1) <= 0) {
|
||||
return;
|
||||
}
|
||||
setSingleLine(false);
|
||||
setMaxLines(2);
|
||||
TypedArray obtainStyledAttributes = getContext().obtainStyledAttributes(null, AbstractC0336a.f6441w, R.attr.textAppearanceMedium, R.style.TextAppearance.Medium);
|
||||
int dimensionPixelSize = obtainStyledAttributes.getDimensionPixelSize(0, 0);
|
||||
if (dimensionPixelSize != 0) {
|
||||
setTextSize(0, dimensionPixelSize);
|
||||
}
|
||||
obtainStyledAttributes.recycle();
|
||||
super.onMeasure(i, i4);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.FrameLayout;
|
||||
import m.InterfaceC0477n0;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class FitWindowsFrameLayout extends FrameLayout {
|
||||
public FitWindowsFrameLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final boolean fitSystemWindows(Rect rect) {
|
||||
return super.fitSystemWindows(rect);
|
||||
}
|
||||
|
||||
public void setOnFitSystemWindowsListener(InterfaceC0477n0 interfaceC0477n0) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.widget.LinearLayout;
|
||||
import m.InterfaceC0477n0;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class FitWindowsLinearLayout extends LinearLayout {
|
||||
public FitWindowsLinearLayout(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final boolean fitSystemWindows(Rect rect) {
|
||||
return super.fitSystemWindows(rect);
|
||||
}
|
||||
|
||||
public void setOnFitSystemWindowsListener(InterfaceC0477n0 interfaceC0477n0) {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,426 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import O.S;
|
||||
import O.X;
|
||||
import R0.h;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Canvas;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.accessibility.AccessibilityEvent;
|
||||
import android.view.accessibility.AccessibilityNodeInfo;
|
||||
import android.widget.LinearLayout;
|
||||
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
|
||||
import f.AbstractC0336a;
|
||||
import java.util.WeakHashMap;
|
||||
import m.C0483q0;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class LinearLayoutCompat extends ViewGroup {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public boolean f2445a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public int f2446b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public int f2447c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public int f2448d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public int f2449e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public int f2450f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public float f2451g;
|
||||
public boolean h;
|
||||
public int[] i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public int[] f2452j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public Drawable f2453k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public int f2454l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public int f2455m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public int f2456n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public int f2457o;
|
||||
|
||||
public LinearLayoutCompat(Context context, AttributeSet attributeSet) {
|
||||
this(context, attributeSet, 0);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public boolean checkLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
||||
return layoutParams instanceof C0483q0;
|
||||
}
|
||||
|
||||
public final void d(Canvas canvas, int i) {
|
||||
this.f2453k.setBounds(getPaddingLeft() + this.f2457o, i, (getWidth() - getPaddingRight()) - this.f2457o, this.f2455m + i);
|
||||
this.f2453k.draw(canvas);
|
||||
}
|
||||
|
||||
public final void e(Canvas canvas, int i) {
|
||||
this.f2453k.setBounds(i, getPaddingTop() + this.f2457o, this.f2454l + i, (getHeight() - getPaddingBottom()) - this.f2457o);
|
||||
this.f2453k.draw(canvas);
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r2v3, types: [m.q0, android.widget.LinearLayout$LayoutParams] */
|
||||
/* JADX WARN: Type inference failed for: r2v4, types: [m.q0, android.widget.LinearLayout$LayoutParams] */
|
||||
@Override // android.view.ViewGroup
|
||||
/* renamed from: f, reason: merged with bridge method [inline-methods] */
|
||||
public C0483q0 generateDefaultLayoutParams() {
|
||||
int i = this.f2448d;
|
||||
if (i == 0) {
|
||||
return new LinearLayout.LayoutParams(-2, -2);
|
||||
}
|
||||
if (i == 1) {
|
||||
return new LinearLayout.LayoutParams(-1, -2);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r0v0, types: [m.q0, android.widget.LinearLayout$LayoutParams] */
|
||||
@Override // android.view.ViewGroup
|
||||
/* renamed from: g, reason: merged with bridge method [inline-methods] */
|
||||
public C0483q0 generateLayoutParams(AttributeSet attributeSet) {
|
||||
return new LinearLayout.LayoutParams(getContext(), attributeSet);
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public int getBaseline() {
|
||||
int i;
|
||||
if (this.f2446b < 0) {
|
||||
return super.getBaseline();
|
||||
}
|
||||
int childCount = getChildCount();
|
||||
int i4 = this.f2446b;
|
||||
if (childCount <= i4) {
|
||||
throw new RuntimeException("mBaselineAlignedChildIndex of LinearLayout set to an index that is out of bounds.");
|
||||
}
|
||||
View childAt = getChildAt(i4);
|
||||
int baseline = childAt.getBaseline();
|
||||
if (baseline == -1) {
|
||||
if (this.f2446b == 0) {
|
||||
return -1;
|
||||
}
|
||||
throw new RuntimeException("mBaselineAlignedChildIndex of LinearLayout points to a View that doesn't know how to get its baseline.");
|
||||
}
|
||||
int i5 = this.f2447c;
|
||||
if (this.f2448d == 1 && (i = this.f2449e & 112) != 48) {
|
||||
if (i == 16) {
|
||||
i5 += ((((getBottom() - getTop()) - getPaddingTop()) - getPaddingBottom()) - this.f2450f) / 2;
|
||||
} else if (i == 80) {
|
||||
i5 = ((getBottom() - getTop()) - getPaddingBottom()) - this.f2450f;
|
||||
}
|
||||
}
|
||||
return i5 + ((LinearLayout.LayoutParams) ((C0483q0) childAt.getLayoutParams())).topMargin + baseline;
|
||||
}
|
||||
|
||||
public int getBaselineAlignedChildIndex() {
|
||||
return this.f2446b;
|
||||
}
|
||||
|
||||
public Drawable getDividerDrawable() {
|
||||
return this.f2453k;
|
||||
}
|
||||
|
||||
public int getDividerPadding() {
|
||||
return this.f2457o;
|
||||
}
|
||||
|
||||
public int getDividerWidth() {
|
||||
return this.f2454l;
|
||||
}
|
||||
|
||||
public int getGravity() {
|
||||
return this.f2449e;
|
||||
}
|
||||
|
||||
public int getOrientation() {
|
||||
return this.f2448d;
|
||||
}
|
||||
|
||||
public int getShowDividers() {
|
||||
return this.f2456n;
|
||||
}
|
||||
|
||||
public int getVirtualChildCount() {
|
||||
return getChildCount();
|
||||
}
|
||||
|
||||
public float getWeightSum() {
|
||||
return this.f2451g;
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r0v3, types: [m.q0, android.widget.LinearLayout$LayoutParams] */
|
||||
/* JADX WARN: Type inference failed for: r0v4, types: [m.q0, android.widget.LinearLayout$LayoutParams] */
|
||||
/* JADX WARN: Type inference failed for: r0v5, types: [m.q0, android.widget.LinearLayout$LayoutParams] */
|
||||
@Override // android.view.ViewGroup
|
||||
/* renamed from: h, reason: merged with bridge method [inline-methods] */
|
||||
public C0483q0 generateLayoutParams(ViewGroup.LayoutParams layoutParams) {
|
||||
return layoutParams instanceof C0483q0 ? new LinearLayout.LayoutParams((ViewGroup.MarginLayoutParams) layoutParams) : layoutParams instanceof ViewGroup.MarginLayoutParams ? new LinearLayout.LayoutParams((ViewGroup.MarginLayoutParams) layoutParams) : new LinearLayout.LayoutParams(layoutParams);
|
||||
}
|
||||
|
||||
public final boolean i(int i) {
|
||||
if (i == 0) {
|
||||
return (this.f2456n & 1) != 0;
|
||||
}
|
||||
if (i == getChildCount()) {
|
||||
return (this.f2456n & 4) != 0;
|
||||
}
|
||||
if ((this.f2456n & 2) != 0) {
|
||||
for (int i4 = i - 1; i4 >= 0; i4--) {
|
||||
if (getChildAt(i4).getVisibility() != 8) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onDraw(Canvas canvas) {
|
||||
int right;
|
||||
int left;
|
||||
int i;
|
||||
if (this.f2453k == null) {
|
||||
return;
|
||||
}
|
||||
int i4 = 0;
|
||||
if (this.f2448d == 1) {
|
||||
int virtualChildCount = getVirtualChildCount();
|
||||
while (i4 < virtualChildCount) {
|
||||
View childAt = getChildAt(i4);
|
||||
if (childAt != null && childAt.getVisibility() != 8 && i(i4)) {
|
||||
d(canvas, (childAt.getTop() - ((LinearLayout.LayoutParams) ((C0483q0) childAt.getLayoutParams())).topMargin) - this.f2455m);
|
||||
}
|
||||
i4++;
|
||||
}
|
||||
if (i(virtualChildCount)) {
|
||||
View childAt2 = getChildAt(virtualChildCount - 1);
|
||||
d(canvas, childAt2 == null ? (getHeight() - getPaddingBottom()) - this.f2455m : childAt2.getBottom() + ((LinearLayout.LayoutParams) ((C0483q0) childAt2.getLayoutParams())).bottomMargin);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
int virtualChildCount2 = getVirtualChildCount();
|
||||
boolean z3 = getLayoutDirection() == 1;
|
||||
while (i4 < virtualChildCount2) {
|
||||
View childAt3 = getChildAt(i4);
|
||||
if (childAt3 != null && childAt3.getVisibility() != 8 && i(i4)) {
|
||||
C0483q0 c0483q0 = (C0483q0) childAt3.getLayoutParams();
|
||||
e(canvas, z3 ? childAt3.getRight() + ((LinearLayout.LayoutParams) c0483q0).rightMargin : (childAt3.getLeft() - ((LinearLayout.LayoutParams) c0483q0).leftMargin) - this.f2454l);
|
||||
}
|
||||
i4++;
|
||||
}
|
||||
if (i(virtualChildCount2)) {
|
||||
View childAt4 = getChildAt(virtualChildCount2 - 1);
|
||||
if (childAt4 != null) {
|
||||
C0483q0 c0483q02 = (C0483q0) childAt4.getLayoutParams();
|
||||
if (z3) {
|
||||
left = childAt4.getLeft() - ((LinearLayout.LayoutParams) c0483q02).leftMargin;
|
||||
i = this.f2454l;
|
||||
right = left - i;
|
||||
} else {
|
||||
right = childAt4.getRight() + ((LinearLayout.LayoutParams) c0483q02).rightMargin;
|
||||
}
|
||||
} else if (z3) {
|
||||
right = getPaddingLeft();
|
||||
} else {
|
||||
left = getWidth() - getPaddingRight();
|
||||
i = this.f2454l;
|
||||
right = left - i;
|
||||
}
|
||||
e(canvas, right);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onInitializeAccessibilityEvent(AccessibilityEvent accessibilityEvent) {
|
||||
super.onInitializeAccessibilityEvent(accessibilityEvent);
|
||||
accessibilityEvent.setClassName("androidx.appcompat.widget.LinearLayoutCompat");
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onInitializeAccessibilityNodeInfo(AccessibilityNodeInfo accessibilityNodeInfo) {
|
||||
super.onInitializeAccessibilityNodeInfo(accessibilityNodeInfo);
|
||||
accessibilityNodeInfo.setClassName("androidx.appcompat.widget.LinearLayoutCompat");
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:25:0x009d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:62:0x0158 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:65:0x0161 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:72:0x01a2 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:75:0x01a7 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:83:0x018f */
|
||||
@Override // android.view.ViewGroup, android.view.View
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public void onLayout(boolean r23, int r24, int r25, int r26, int r27) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 459
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.widget.LinearLayoutCompat.onLayout(boolean, int, int, int, int):void");
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:222:0x04f9 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:235:0x053e */
|
||||
/* JADX WARN: Removed duplicated region for block: B:240:0x0548 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:244:0x0527 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:46:0x013f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:51:0x0148 */
|
||||
@Override // android.view.View
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public void onMeasure(int r39, int r40) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 2151
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.widget.LinearLayoutCompat.onMeasure(int, int):void");
|
||||
}
|
||||
|
||||
public void setBaselineAligned(boolean z3) {
|
||||
this.f2445a = z3;
|
||||
}
|
||||
|
||||
public void setBaselineAlignedChildIndex(int i) {
|
||||
if (i >= 0 && i < getChildCount()) {
|
||||
this.f2446b = i;
|
||||
return;
|
||||
}
|
||||
throw new IllegalArgumentException("base aligned child index out of range (0, " + getChildCount() + ")");
|
||||
}
|
||||
|
||||
public void setDividerDrawable(Drawable drawable) {
|
||||
if (drawable == this.f2453k) {
|
||||
return;
|
||||
}
|
||||
this.f2453k = drawable;
|
||||
if (drawable != null) {
|
||||
this.f2454l = drawable.getIntrinsicWidth();
|
||||
this.f2455m = drawable.getIntrinsicHeight();
|
||||
} else {
|
||||
this.f2454l = 0;
|
||||
this.f2455m = 0;
|
||||
}
|
||||
setWillNotDraw(drawable == null);
|
||||
requestLayout();
|
||||
}
|
||||
|
||||
public void setDividerPadding(int i) {
|
||||
this.f2457o = i;
|
||||
}
|
||||
|
||||
public void setGravity(int i) {
|
||||
if (this.f2449e != i) {
|
||||
if ((8388615 & i) == 0) {
|
||||
i |= 8388611;
|
||||
}
|
||||
if ((i & 112) == 0) {
|
||||
i |= 48;
|
||||
}
|
||||
this.f2449e = i;
|
||||
requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
public void setHorizontalGravity(int i) {
|
||||
int i4 = i & 8388615;
|
||||
int i5 = this.f2449e;
|
||||
if ((8388615 & i5) != i4) {
|
||||
this.f2449e = i4 | ((-8388616) & i5);
|
||||
requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
public void setMeasureWithLargestChildEnabled(boolean z3) {
|
||||
this.h = z3;
|
||||
}
|
||||
|
||||
public void setOrientation(int i) {
|
||||
if (this.f2448d != i) {
|
||||
this.f2448d = i;
|
||||
requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
public void setShowDividers(int i) {
|
||||
if (i != this.f2456n) {
|
||||
requestLayout();
|
||||
}
|
||||
this.f2456n = i;
|
||||
}
|
||||
|
||||
public void setVerticalGravity(int i) {
|
||||
int i4 = i & 112;
|
||||
int i5 = this.f2449e;
|
||||
if ((i5 & 112) != i4) {
|
||||
this.f2449e = i4 | (i5 & (-113));
|
||||
requestLayout();
|
||||
}
|
||||
}
|
||||
|
||||
public void setWeightSum(float f2) {
|
||||
this.f2451g = Math.max(BitmapDescriptorFactory.HUE_RED, f2);
|
||||
}
|
||||
|
||||
@Override // android.view.ViewGroup
|
||||
public final boolean shouldDelayChildPressedState() {
|
||||
return false;
|
||||
}
|
||||
|
||||
public LinearLayoutCompat(Context context, AttributeSet attributeSet, int i) {
|
||||
super(context, attributeSet, 0);
|
||||
this.f2445a = true;
|
||||
this.f2446b = -1;
|
||||
this.f2447c = 0;
|
||||
this.f2449e = 8388659;
|
||||
int[] iArr = AbstractC0336a.f6433n;
|
||||
h l4 = h.l(context, attributeSet, iArr, 0);
|
||||
WeakHashMap weakHashMap = X.f1226a;
|
||||
S.d(this, context, iArr, attributeSet, (TypedArray) l4.f1414b, 0, 0);
|
||||
TypedArray typedArray = (TypedArray) l4.f1414b;
|
||||
int i4 = typedArray.getInt(1, -1);
|
||||
if (i4 >= 0) {
|
||||
setOrientation(i4);
|
||||
}
|
||||
int i5 = typedArray.getInt(0, -1);
|
||||
if (i5 >= 0) {
|
||||
setGravity(i5);
|
||||
}
|
||||
boolean z3 = typedArray.getBoolean(2, true);
|
||||
if (!z3) {
|
||||
setBaselineAligned(z3);
|
||||
}
|
||||
this.f2451g = typedArray.getFloat(4, -1.0f);
|
||||
this.f2446b = typedArray.getInt(3, -1);
|
||||
this.h = typedArray.getBoolean(7, false);
|
||||
setDividerDrawable(l4.f(5));
|
||||
this.f2456n = typedArray.getInt(8, 0);
|
||||
this.f2457o = typedArray.getDimensionPixelSize(6, 0);
|
||||
l4.n();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import F0.c;
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.graphics.Rect;
|
||||
import android.util.AttributeSet;
|
||||
import android.util.TypedValue;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputConnection;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import m.C0480p;
|
||||
import m.I0;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class SearchView$SearchAutoComplete extends C0480p {
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public int f2458e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public boolean f2459f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public final c f2460g;
|
||||
|
||||
public SearchView$SearchAutoComplete(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
this.f2460g = new c(this, 10);
|
||||
this.f2458e = getThreshold();
|
||||
}
|
||||
|
||||
private int getSearchViewTextMinWidthDp() {
|
||||
Configuration configuration = getResources().getConfiguration();
|
||||
int i = configuration.screenWidthDp;
|
||||
int i4 = configuration.screenHeightDp;
|
||||
if (i >= 960 && i4 >= 720 && configuration.orientation == 2) {
|
||||
return 256;
|
||||
}
|
||||
if (i < 600) {
|
||||
return (i < 640 || i4 < 480) ? 160 : 192;
|
||||
}
|
||||
return 192;
|
||||
}
|
||||
|
||||
@Override // android.widget.AutoCompleteTextView
|
||||
public final boolean enoughToFilter() {
|
||||
return this.f2458e <= 0 || super.enoughToFilter();
|
||||
}
|
||||
|
||||
@Override // m.C0480p, android.widget.TextView, android.view.View
|
||||
public final InputConnection onCreateInputConnection(EditorInfo editorInfo) {
|
||||
InputConnection onCreateInputConnection = super.onCreateInputConnection(editorInfo);
|
||||
if (this.f2459f) {
|
||||
c cVar = this.f2460g;
|
||||
removeCallbacks(cVar);
|
||||
post(cVar);
|
||||
}
|
||||
return onCreateInputConnection;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onFinishInflate() {
|
||||
super.onFinishInflate();
|
||||
setMinWidth((int) TypedValue.applyDimension(1, getSearchViewTextMinWidthDp(), getResources().getDisplayMetrics()));
|
||||
}
|
||||
|
||||
@Override // android.widget.AutoCompleteTextView, android.widget.TextView, android.view.View
|
||||
public final void onFocusChanged(boolean z3, int i, Rect rect) {
|
||||
super.onFocusChanged(z3, i, rect);
|
||||
throw null;
|
||||
}
|
||||
|
||||
@Override // android.widget.AutoCompleteTextView, android.widget.TextView, android.view.View
|
||||
public final boolean onKeyPreIme(int i, KeyEvent keyEvent) {
|
||||
if (i == 4) {
|
||||
if (keyEvent.getAction() == 0 && keyEvent.getRepeatCount() == 0) {
|
||||
KeyEvent.DispatcherState keyDispatcherState = getKeyDispatcherState();
|
||||
if (keyDispatcherState != null) {
|
||||
keyDispatcherState.startTracking(keyEvent, this);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
if (keyEvent.getAction() == 1) {
|
||||
KeyEvent.DispatcherState keyDispatcherState2 = getKeyDispatcherState();
|
||||
if (keyDispatcherState2 != null) {
|
||||
keyDispatcherState2.handleUpEvent(keyEvent);
|
||||
}
|
||||
if (keyEvent.isTracking() && !keyEvent.isCanceled()) {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
}
|
||||
return super.onKeyPreIme(i, keyEvent);
|
||||
}
|
||||
|
||||
@Override // android.widget.AutoCompleteTextView, android.widget.TextView, android.view.View
|
||||
public final void onWindowFocusChanged(boolean z3) {
|
||||
super.onWindowFocusChanged(z3);
|
||||
if (z3) {
|
||||
throw null;
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.AutoCompleteTextView
|
||||
public final void performCompletion() {
|
||||
}
|
||||
|
||||
@Override // android.widget.AutoCompleteTextView
|
||||
public final void replaceText(CharSequence charSequence) {
|
||||
}
|
||||
|
||||
public void setImeVisibility(boolean z3) {
|
||||
InputMethodManager inputMethodManager = (InputMethodManager) getContext().getSystemService("input_method");
|
||||
c cVar = this.f2460g;
|
||||
if (!z3) {
|
||||
this.f2459f = false;
|
||||
removeCallbacks(cVar);
|
||||
inputMethodManager.hideSoftInputFromWindow(getWindowToken(), 0);
|
||||
} else {
|
||||
if (!inputMethodManager.isActive(this)) {
|
||||
this.f2459f = true;
|
||||
return;
|
||||
}
|
||||
this.f2459f = false;
|
||||
removeCallbacks(cVar);
|
||||
inputMethodManager.showSoftInput(this, 0);
|
||||
}
|
||||
}
|
||||
|
||||
public void setSearchView(I0 i02) {
|
||||
}
|
||||
|
||||
@Override // android.widget.AutoCompleteTextView
|
||||
public void setThreshold(int i) {
|
||||
super.setThreshold(i);
|
||||
this.f2458e = i;
|
||||
}
|
||||
}
|
||||
1395
apk_decompiled/sources/androidx/appcompat/widget/Toolbar.java
Normal file
1395
apk_decompiled/sources/androidx/appcompat/widget/Toolbar.java
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,128 @@
|
||||
package androidx.appcompat.widget;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Canvas;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.view.ViewParent;
|
||||
import f.AbstractC0336a;
|
||||
import java.lang.ref.WeakReference;
|
||||
import m.Y0;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class ViewStubCompat extends View {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public int f2503a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public int f2504b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public WeakReference f2505c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public LayoutInflater f2506d;
|
||||
|
||||
public ViewStubCompat(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet, 0);
|
||||
this.f2503a = 0;
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC0336a.f6421A, 0, 0);
|
||||
this.f2504b = obtainStyledAttributes.getResourceId(2, -1);
|
||||
this.f2503a = obtainStyledAttributes.getResourceId(1, 0);
|
||||
setId(obtainStyledAttributes.getResourceId(0, -1));
|
||||
obtainStyledAttributes.recycle();
|
||||
setVisibility(8);
|
||||
setWillNotDraw(true);
|
||||
}
|
||||
|
||||
public final View a() {
|
||||
ViewParent parent = getParent();
|
||||
if (!(parent instanceof ViewGroup)) {
|
||||
throw new IllegalStateException("ViewStub must have a non-null ViewGroup viewParent");
|
||||
}
|
||||
if (this.f2503a == 0) {
|
||||
throw new IllegalArgumentException("ViewStub must have a valid layoutResource");
|
||||
}
|
||||
ViewGroup viewGroup = (ViewGroup) parent;
|
||||
LayoutInflater layoutInflater = this.f2506d;
|
||||
if (layoutInflater == null) {
|
||||
layoutInflater = LayoutInflater.from(getContext());
|
||||
}
|
||||
View inflate = layoutInflater.inflate(this.f2503a, viewGroup, false);
|
||||
int i = this.f2504b;
|
||||
if (i != -1) {
|
||||
inflate.setId(i);
|
||||
}
|
||||
int indexOfChild = viewGroup.indexOfChild(this);
|
||||
viewGroup.removeViewInLayout(this);
|
||||
ViewGroup.LayoutParams layoutParams = getLayoutParams();
|
||||
if (layoutParams != null) {
|
||||
viewGroup.addView(inflate, indexOfChild, layoutParams);
|
||||
} else {
|
||||
viewGroup.addView(inflate, indexOfChild);
|
||||
}
|
||||
this.f2505c = new WeakReference(inflate);
|
||||
return inflate;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void dispatchDraw(Canvas canvas) {
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void draw(Canvas canvas) {
|
||||
}
|
||||
|
||||
public int getInflatedId() {
|
||||
return this.f2504b;
|
||||
}
|
||||
|
||||
public LayoutInflater getLayoutInflater() {
|
||||
return this.f2506d;
|
||||
}
|
||||
|
||||
public int getLayoutResource() {
|
||||
return this.f2503a;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
setMeasuredDimension(0, 0);
|
||||
}
|
||||
|
||||
public void setInflatedId(int i) {
|
||||
this.f2504b = i;
|
||||
}
|
||||
|
||||
public void setLayoutInflater(LayoutInflater layoutInflater) {
|
||||
this.f2506d = layoutInflater;
|
||||
}
|
||||
|
||||
public void setLayoutResource(int i) {
|
||||
this.f2503a = i;
|
||||
}
|
||||
|
||||
public void setOnInflateListener(Y0 y02) {
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public void setVisibility(int i) {
|
||||
WeakReference weakReference = this.f2505c;
|
||||
if (weakReference != null) {
|
||||
View view = (View) weakReference.get();
|
||||
if (view == null) {
|
||||
throw new IllegalStateException("setVisibility called on un-referenced view");
|
||||
}
|
||||
view.setVisibility(i);
|
||||
return;
|
||||
}
|
||||
super.setVisibility(i);
|
||||
if (i == 0 || i == 4) {
|
||||
a();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user