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:
2025-12-04 13:59:54 +01:00
parent f2fd1c3bf5
commit e0133d2ca2
10432 changed files with 1019085 additions and 1 deletions

View File

@@ -0,0 +1,6 @@
package l;
/* renamed from: l.c, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC0425c {
}

View File

@@ -0,0 +1,402 @@
package l;
import android.R;
import android.content.Context;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.view.ActionProvider;
import android.view.ContextMenu;
import android.view.KeyEvent;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
/* renamed from: l.a, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0423a implements I.a {
/* renamed from: a, reason: collision with root package name */
public CharSequence f7180a;
/* renamed from: b, reason: collision with root package name */
public CharSequence f7181b;
/* renamed from: c, reason: collision with root package name */
public Intent f7182c;
/* renamed from: d, reason: collision with root package name */
public char f7183d;
/* renamed from: e, reason: collision with root package name */
public int f7184e;
/* renamed from: f, reason: collision with root package name */
public char f7185f;
/* renamed from: g, reason: collision with root package name */
public int f7186g;
public Drawable h;
public Context i;
/* renamed from: j, reason: collision with root package name */
public CharSequence f7187j;
/* renamed from: k, reason: collision with root package name */
public CharSequence f7188k;
/* renamed from: l, reason: collision with root package name */
public ColorStateList f7189l;
/* renamed from: m, reason: collision with root package name */
public PorterDuff.Mode f7190m;
/* renamed from: n, reason: collision with root package name */
public boolean f7191n;
/* renamed from: o, reason: collision with root package name */
public boolean f7192o;
public int p;
@Override // I.a
public final p a() {
return null;
}
@Override // I.a
public final I.a b(p pVar) {
throw new UnsupportedOperationException();
}
public final void c() {
Drawable drawable = this.h;
if (drawable != null) {
if (this.f7191n || this.f7192o) {
this.h = drawable;
Drawable mutate = drawable.mutate();
this.h = mutate;
if (this.f7191n) {
H.a.h(mutate, this.f7189l);
}
if (this.f7192o) {
H.a.i(this.h, this.f7190m);
}
}
}
}
@Override // android.view.MenuItem
public final boolean collapseActionView() {
return false;
}
@Override // android.view.MenuItem
public final boolean expandActionView() {
return false;
}
@Override // android.view.MenuItem
public final ActionProvider getActionProvider() {
throw new UnsupportedOperationException();
}
@Override // android.view.MenuItem
public final View getActionView() {
return null;
}
@Override // I.a, android.view.MenuItem
public final int getAlphabeticModifiers() {
return this.f7186g;
}
@Override // android.view.MenuItem
public final char getAlphabeticShortcut() {
return this.f7185f;
}
@Override // I.a, android.view.MenuItem
public final CharSequence getContentDescription() {
return this.f7187j;
}
@Override // android.view.MenuItem
public final int getGroupId() {
return 0;
}
@Override // android.view.MenuItem
public final Drawable getIcon() {
return this.h;
}
@Override // I.a, android.view.MenuItem
public final ColorStateList getIconTintList() {
return this.f7189l;
}
@Override // I.a, android.view.MenuItem
public final PorterDuff.Mode getIconTintMode() {
return this.f7190m;
}
@Override // android.view.MenuItem
public final Intent getIntent() {
return this.f7182c;
}
@Override // android.view.MenuItem
public final int getItemId() {
return R.id.home;
}
@Override // android.view.MenuItem
public final ContextMenu.ContextMenuInfo getMenuInfo() {
return null;
}
@Override // I.a, android.view.MenuItem
public final int getNumericModifiers() {
return this.f7184e;
}
@Override // android.view.MenuItem
public final char getNumericShortcut() {
return this.f7183d;
}
@Override // android.view.MenuItem
public final int getOrder() {
return 0;
}
@Override // android.view.MenuItem
public final SubMenu getSubMenu() {
return null;
}
@Override // android.view.MenuItem
public final CharSequence getTitle() {
return this.f7180a;
}
@Override // android.view.MenuItem
public final CharSequence getTitleCondensed() {
CharSequence charSequence = this.f7181b;
return charSequence != null ? charSequence : this.f7180a;
}
@Override // I.a, android.view.MenuItem
public final CharSequence getTooltipText() {
return this.f7188k;
}
@Override // android.view.MenuItem
public final boolean hasSubMenu() {
return false;
}
@Override // android.view.MenuItem
public final boolean isActionViewExpanded() {
return false;
}
@Override // android.view.MenuItem
public final boolean isCheckable() {
return (this.p & 1) != 0;
}
@Override // android.view.MenuItem
public final boolean isChecked() {
return (this.p & 2) != 0;
}
@Override // android.view.MenuItem
public final boolean isEnabled() {
return (this.p & 16) != 0;
}
@Override // android.view.MenuItem
public final boolean isVisible() {
return (this.p & 8) == 0;
}
@Override // android.view.MenuItem
public final MenuItem setActionProvider(ActionProvider actionProvider) {
throw new UnsupportedOperationException();
}
@Override // android.view.MenuItem
public final MenuItem setActionView(View view) {
throw new UnsupportedOperationException();
}
@Override // android.view.MenuItem
public final MenuItem setAlphabeticShortcut(char c4) {
this.f7185f = Character.toLowerCase(c4);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setCheckable(boolean z3) {
this.p = (z3 ? 1 : 0) | (this.p & (-2));
return this;
}
@Override // android.view.MenuItem
public final MenuItem setChecked(boolean z3) {
this.p = (z3 ? 2 : 0) | (this.p & (-3));
return this;
}
@Override // I.a, android.view.MenuItem
public final I.a setContentDescription(CharSequence charSequence) {
this.f7187j = charSequence;
return this;
}
@Override // android.view.MenuItem
public final MenuItem setEnabled(boolean z3) {
this.p = (z3 ? 16 : 0) | (this.p & (-17));
return this;
}
@Override // android.view.MenuItem
public final MenuItem setIcon(Drawable drawable) {
this.h = drawable;
c();
return this;
}
@Override // I.a, android.view.MenuItem
public final MenuItem setIconTintList(ColorStateList colorStateList) {
this.f7189l = colorStateList;
this.f7191n = true;
c();
return this;
}
@Override // I.a, android.view.MenuItem
public final MenuItem setIconTintMode(PorterDuff.Mode mode) {
this.f7190m = mode;
this.f7192o = true;
c();
return this;
}
@Override // android.view.MenuItem
public final MenuItem setIntent(Intent intent) {
this.f7182c = intent;
return this;
}
@Override // android.view.MenuItem
public final MenuItem setNumericShortcut(char c4) {
this.f7183d = c4;
return this;
}
@Override // android.view.MenuItem
public final MenuItem setOnActionExpandListener(MenuItem.OnActionExpandListener onActionExpandListener) {
throw new UnsupportedOperationException();
}
@Override // android.view.MenuItem
public final MenuItem setOnMenuItemClickListener(MenuItem.OnMenuItemClickListener onMenuItemClickListener) {
return this;
}
@Override // android.view.MenuItem
public final MenuItem setShortcut(char c4, char c5) {
this.f7183d = c4;
this.f7185f = Character.toLowerCase(c5);
return this;
}
@Override // android.view.MenuItem
public final void setShowAsAction(int i) {
}
@Override // android.view.MenuItem
public final MenuItem setShowAsActionFlags(int i) {
return this;
}
@Override // android.view.MenuItem
public final MenuItem setTitle(CharSequence charSequence) {
this.f7180a = charSequence;
return this;
}
@Override // android.view.MenuItem
public final MenuItem setTitleCondensed(CharSequence charSequence) {
this.f7181b = charSequence;
return this;
}
@Override // I.a, android.view.MenuItem
public final I.a setTooltipText(CharSequence charSequence) {
this.f7188k = charSequence;
return this;
}
@Override // android.view.MenuItem
public final MenuItem setVisible(boolean z3) {
this.p = (this.p & 8) | (z3 ? 0 : 8);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setActionView(int i) {
throw new UnsupportedOperationException();
}
@Override // I.a, android.view.MenuItem
public final MenuItem setAlphabeticShortcut(char c4, int i) {
this.f7185f = Character.toLowerCase(c4);
this.f7186g = KeyEvent.normalizeMetaState(i);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setContentDescription(CharSequence charSequence) {
this.f7187j = charSequence;
return this;
}
@Override // I.a, android.view.MenuItem
public final MenuItem setNumericShortcut(char c4, int i) {
this.f7183d = c4;
this.f7184e = KeyEvent.normalizeMetaState(i);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setTitle(int i) {
this.f7180a = this.i.getResources().getString(i);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setTooltipText(CharSequence charSequence) {
this.f7188k = charSequence;
return this;
}
@Override // android.view.MenuItem
public final MenuItem setIcon(int i) {
this.h = D.h.getDrawable(this.i, i);
c();
return this;
}
@Override // I.a, android.view.MenuItem
public final MenuItem setShortcut(char c4, char c5, int i, int i4) {
this.f7183d = c4;
this.f7184e = KeyEvent.normalizeMetaState(i);
this.f7185f = Character.toLowerCase(c5);
this.f7186g = KeyEvent.normalizeMetaState(i4);
return this;
}
}

View File

@@ -0,0 +1,80 @@
package l;
import android.view.View;
import androidx.appcompat.view.menu.ActionMenuItemView;
import m.AbstractViewOnTouchListenerC0481p0;
import m.C0462g;
import m.C0464h;
import m.C0468j;
import m.C0472l;
/* renamed from: l.b, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0424b extends AbstractViewOnTouchListenerC0481p0 {
/* renamed from: j, reason: collision with root package name */
public final /* synthetic */ int f7193j = 0;
/* renamed from: k, reason: collision with root package name */
public final /* synthetic */ View f7194k;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public C0424b(ActionMenuItemView actionMenuItemView) {
super(actionMenuItemView);
this.f7194k = actionMenuItemView;
}
@Override // m.AbstractViewOnTouchListenerC0481p0
public final InterfaceC0420C b() {
C0462g c0462g;
switch (this.f7193j) {
case 0:
AbstractC0425c abstractC0425c = ((ActionMenuItemView) this.f7194k).f2339l;
if (abstractC0425c == null || (c0462g = ((C0464h) abstractC0425c).f7665a.f7693u) == null) {
return null;
}
return c0462g.a();
default:
C0462g c0462g2 = ((C0468j) this.f7194k).f7672d.f7692t;
if (c0462g2 == null) {
return null;
}
return c0462g2.a();
}
}
@Override // m.AbstractViewOnTouchListenerC0481p0
public final boolean c() {
InterfaceC0420C b4;
switch (this.f7193j) {
case 0:
ActionMenuItemView actionMenuItemView = (ActionMenuItemView) this.f7194k;
InterfaceC0434l interfaceC0434l = actionMenuItemView.f2337j;
return interfaceC0434l != null && interfaceC0434l.c(actionMenuItemView.f2336g) && (b4 = b()) != null && b4.a();
default:
((C0468j) this.f7194k).f7672d.n();
return true;
}
}
@Override // m.AbstractViewOnTouchListenerC0481p0
public boolean d() {
switch (this.f7193j) {
case 1:
C0472l c0472l = ((C0468j) this.f7194k).f7672d;
if (c0472l.f7694v != null) {
return false;
}
c0472l.c();
return true;
default:
return super.d();
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public C0424b(C0468j c0468j, C0468j c0468j2) {
super(c0468j2);
this.f7194k = c0468j;
}
}

View File

@@ -0,0 +1,23 @@
package l;
import m.C0;
/* renamed from: l.f, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0428f {
/* renamed from: a, reason: collision with root package name */
public final C0 f7201a;
/* renamed from: b, reason: collision with root package name */
public final m f7202b;
/* renamed from: c, reason: collision with root package name */
public final int f7203c;
public C0428f(C0 c02, m mVar, int i) {
this.f7201a = c02;
this.f7202b = mVar;
this.f7203c = i;
}
}

View File

@@ -0,0 +1,85 @@
package l;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import com.adif.elcanomovil.R;
import java.util.ArrayList;
/* renamed from: l.h, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0430h extends BaseAdapter {
/* renamed from: a, reason: collision with root package name */
public int f7226a = -1;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ C0431i f7227b;
public C0430h(C0431i c0431i) {
this.f7227b = c0431i;
a();
}
public final void a() {
m mVar = this.f7227b.f7230c;
o oVar = mVar.f7259v;
if (oVar != null) {
mVar.i();
ArrayList arrayList = mVar.f7248j;
int size = arrayList.size();
for (int i = 0; i < size; i++) {
if (((o) arrayList.get(i)) == oVar) {
this.f7226a = i;
return;
}
}
}
this.f7226a = -1;
}
@Override // android.widget.Adapter
/* renamed from: b, reason: merged with bridge method [inline-methods] */
public final o getItem(int i) {
C0431i c0431i = this.f7227b;
m mVar = c0431i.f7230c;
mVar.i();
ArrayList arrayList = mVar.f7248j;
c0431i.getClass();
int i4 = this.f7226a;
if (i4 >= 0 && i >= i4) {
i++;
}
return (o) arrayList.get(i);
}
@Override // android.widget.Adapter
public final int getCount() {
C0431i c0431i = this.f7227b;
m mVar = c0431i.f7230c;
mVar.i();
int size = mVar.f7248j.size();
c0431i.getClass();
return this.f7226a < 0 ? size : size - 1;
}
@Override // android.widget.Adapter
public final long getItemId(int i) {
return i;
}
@Override // android.widget.Adapter
public final View getView(int i, View view, ViewGroup viewGroup) {
if (view == null) {
view = this.f7227b.f7229b.inflate(R.layout.abc_list_menu_item_layout, viewGroup, false);
}
((z) view).b(getItem(i));
return view;
}
@Override // android.widget.BaseAdapter
public final void notifyDataSetChanged() {
a();
super.notifyDataSetChanged();
}
}

View File

@@ -0,0 +1,172 @@
package l;
import android.content.Context;
import android.content.ContextWrapper;
import android.os.Bundle;
import android.os.Parcelable;
import android.util.SparseArray;
import android.view.LayoutInflater;
import android.view.View;
import android.view.WindowManager;
import android.widget.AdapterView;
import androidx.appcompat.view.menu.ExpandedMenuView;
import g.C0357d;
import g.C0361h;
import g.DialogInterfaceC0362i;
/* renamed from: l.i, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0431i implements y, AdapterView.OnItemClickListener {
/* renamed from: a, reason: collision with root package name */
public Context f7228a;
/* renamed from: b, reason: collision with root package name */
public LayoutInflater f7229b;
/* renamed from: c, reason: collision with root package name */
public m f7230c;
/* renamed from: d, reason: collision with root package name */
public ExpandedMenuView f7231d;
/* renamed from: e, reason: collision with root package name */
public x f7232e;
/* renamed from: f, reason: collision with root package name */
public C0430h f7233f;
public C0431i(ContextWrapper contextWrapper) {
this.f7228a = contextWrapper;
this.f7229b = LayoutInflater.from(contextWrapper);
}
@Override // l.y
public final void b(m mVar, boolean z3) {
x xVar = this.f7232e;
if (xVar != null) {
xVar.b(mVar, z3);
}
}
@Override // l.y
public final void d(Parcelable parcelable) {
SparseArray<Parcelable> sparseParcelableArray = ((Bundle) parcelable).getSparseParcelableArray("android:menu:list");
if (sparseParcelableArray != null) {
this.f7231d.restoreHierarchyState(sparseParcelableArray);
}
}
@Override // l.y
public final void e(x xVar) {
throw null;
}
@Override // l.y
public final boolean g(o oVar) {
return false;
}
@Override // l.y
public final int getId() {
return 0;
}
@Override // l.y
public final void h(boolean z3) {
C0430h c0430h = this.f7233f;
if (c0430h != null) {
c0430h.notifyDataSetChanged();
}
}
@Override // l.y
public final void i(Context context, m mVar) {
if (this.f7228a != null) {
this.f7228a = context;
if (this.f7229b == null) {
this.f7229b = LayoutInflater.from(context);
}
}
this.f7230c = mVar;
C0430h c0430h = this.f7233f;
if (c0430h != null) {
c0430h.notifyDataSetChanged();
}
}
@Override // l.y
public final boolean j() {
return false;
}
@Override // l.y
public final Parcelable k() {
if (this.f7231d == null) {
return null;
}
Bundle bundle = new Bundle();
SparseArray<Parcelable> sparseArray = new SparseArray<>();
ExpandedMenuView expandedMenuView = this.f7231d;
if (expandedMenuView != null) {
expandedMenuView.saveHierarchyState(sparseArray);
}
bundle.putSparseParcelableArray("android:menu:list", sparseArray);
return bundle;
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r0v1, types: [android.content.DialogInterface$OnClickListener, l.x, java.lang.Object, l.n, android.content.DialogInterface$OnDismissListener] */
@Override // l.y
public final boolean l(SubMenuC0422E subMenuC0422E) {
if (!subMenuC0422E.hasVisibleItems()) {
return false;
}
?? obj = new Object();
obj.f7262a = subMenuC0422E;
Context context = subMenuC0422E.f7241a;
C0361h c0361h = new C0361h(context);
C0357d c0357d = c0361h.f6647a;
C0431i c0431i = new C0431i(c0357d.f6601a);
obj.f7264c = c0431i;
c0431i.f7232e = obj;
subMenuC0422E.b(c0431i, context);
C0431i c0431i2 = obj.f7264c;
if (c0431i2.f7233f == null) {
c0431i2.f7233f = new C0430h(c0431i2);
}
c0357d.f6613o = c0431i2.f7233f;
c0357d.p = obj;
View view = subMenuC0422E.f7253o;
if (view != null) {
c0357d.f6605e = view;
} else {
c0357d.f6603c = subMenuC0422E.f7252n;
c0357d.f6604d = subMenuC0422E.f7251m;
}
c0357d.f6612n = obj;
DialogInterfaceC0362i a2 = c0361h.a();
obj.f7263b = a2;
a2.setOnDismissListener(obj);
WindowManager.LayoutParams attributes = obj.f7263b.getWindow().getAttributes();
attributes.type = 1003;
attributes.flags |= 131072;
obj.f7263b.show();
x xVar = this.f7232e;
if (xVar == null) {
return true;
}
xVar.f(subMenuC0422E);
return true;
}
@Override // l.y
public final boolean m(o oVar) {
return false;
}
@Override // android.widget.AdapterView.OnItemClickListener
public final void onItemClick(AdapterView adapterView, View view, int i, long j4) {
this.f7230c.q(this.f7233f.getItem(i), this, 0);
}
}

View File

@@ -0,0 +1,120 @@
package l;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import androidx.appcompat.view.menu.ListMenuItemView;
import java.util.ArrayList;
/* renamed from: l.j, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class C0432j extends BaseAdapter {
/* renamed from: a, reason: collision with root package name */
public final m f7234a;
/* renamed from: b, reason: collision with root package name */
public int f7235b = -1;
/* renamed from: c, reason: collision with root package name */
public boolean f7236c;
/* renamed from: d, reason: collision with root package name */
public final boolean f7237d;
/* renamed from: e, reason: collision with root package name */
public final LayoutInflater f7238e;
/* renamed from: f, reason: collision with root package name */
public final int f7239f;
public C0432j(m mVar, LayoutInflater layoutInflater, boolean z3, int i) {
this.f7237d = z3;
this.f7238e = layoutInflater;
this.f7234a = mVar;
this.f7239f = i;
a();
}
public final void a() {
m mVar = this.f7234a;
o oVar = mVar.f7259v;
if (oVar != null) {
mVar.i();
ArrayList arrayList = mVar.f7248j;
int size = arrayList.size();
for (int i = 0; i < size; i++) {
if (((o) arrayList.get(i)) == oVar) {
this.f7235b = i;
return;
}
}
}
this.f7235b = -1;
}
@Override // android.widget.Adapter
/* renamed from: b, reason: merged with bridge method [inline-methods] */
public final o getItem(int i) {
ArrayList l4;
m mVar = this.f7234a;
if (this.f7237d) {
mVar.i();
l4 = mVar.f7248j;
} else {
l4 = mVar.l();
}
int i4 = this.f7235b;
if (i4 >= 0 && i >= i4) {
i++;
}
return (o) l4.get(i);
}
@Override // android.widget.Adapter
public final int getCount() {
ArrayList l4;
m mVar = this.f7234a;
if (this.f7237d) {
mVar.i();
l4 = mVar.f7248j;
} else {
l4 = mVar.l();
}
return this.f7235b < 0 ? l4.size() : l4.size() - 1;
}
@Override // android.widget.Adapter
public final long getItemId(int i) {
return i;
}
@Override // android.widget.Adapter
public final View getView(int i, View view, ViewGroup viewGroup) {
boolean z3 = false;
if (view == null) {
view = this.f7238e.inflate(this.f7239f, viewGroup, false);
}
int i4 = getItem(i).f7269b;
int i5 = i - 1;
int i6 = i5 >= 0 ? getItem(i5).f7269b : i4;
ListMenuItemView listMenuItemView = (ListMenuItemView) view;
if (this.f7234a.m() && i4 != i6) {
z3 = true;
}
listMenuItemView.setGroupDividerEnabled(z3);
z zVar = (z) view;
if (this.f7236c) {
listMenuItemView.setForceShowIcon(true);
}
zVar.b(getItem(i));
return view;
}
@Override // android.widget.BaseAdapter
public final void notifyDataSetChanged() {
a();
super.notifyDataSetChanged();
}
}

View File

@@ -0,0 +1,7 @@
package l;
/* renamed from: l.A, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public interface InterfaceC0418A {
void a(m mVar);
}

View File

@@ -0,0 +1,15 @@
package l;
import m.C0475m0;
/* renamed from: l.C, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public interface InterfaceC0420C {
boolean a();
void c();
void dismiss();
C0475m0 f();
}

View File

@@ -0,0 +1,11 @@
package l;
import android.view.MenuItem;
/* renamed from: l.k, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public interface InterfaceC0433k {
boolean c(m mVar, MenuItem menuItem);
void i(m mVar);
}

View File

@@ -0,0 +1,7 @@
package l;
/* renamed from: l.l, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public interface InterfaceC0434l {
boolean c(o oVar);
}

View File

@@ -0,0 +1,186 @@
package l;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.SubMenu;
import g.AbstractC0348B;
/* renamed from: l.B, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public class MenuC0419B extends AbstractC0348B implements Menu {
/* renamed from: c, reason: collision with root package name */
public final m f7161c;
public MenuC0419B(Context context, m mVar) {
super(context);
if (mVar == null) {
throw new IllegalArgumentException("Wrapped Object can not be null.");
}
this.f7161c = mVar;
}
@Override // android.view.Menu
public final MenuItem add(CharSequence charSequence) {
return f(this.f7161c.a(0, 0, 0, charSequence));
}
@Override // android.view.Menu
public final int addIntentOptions(int i, int i4, int i5, ComponentName componentName, Intent[] intentArr, Intent intent, int i6, MenuItem[] menuItemArr) {
MenuItem[] menuItemArr2 = menuItemArr != null ? new MenuItem[menuItemArr.length] : null;
int addIntentOptions = this.f7161c.addIntentOptions(i, i4, i5, componentName, intentArr, intent, i6, menuItemArr2);
if (menuItemArr2 != null) {
int length = menuItemArr2.length;
for (int i7 = 0; i7 < length; i7++) {
menuItemArr[i7] = f(menuItemArr2[i7]);
}
}
return addIntentOptions;
}
@Override // android.view.Menu
public final SubMenu addSubMenu(CharSequence charSequence) {
return this.f7161c.addSubMenu(0, 0, 0, charSequence);
}
@Override // android.view.Menu
public final void clear() {
s.j jVar = (s.j) this.f6478b;
if (jVar != null) {
jVar.clear();
}
this.f7161c.clear();
}
@Override // android.view.Menu
public final void close() {
this.f7161c.close();
}
@Override // android.view.Menu
public final MenuItem findItem(int i) {
return f(this.f7161c.findItem(i));
}
@Override // android.view.Menu
public final MenuItem getItem(int i) {
return f(this.f7161c.getItem(i));
}
@Override // android.view.Menu
public final boolean hasVisibleItems() {
return this.f7161c.hasVisibleItems();
}
@Override // android.view.Menu
public final boolean isShortcutKey(int i, KeyEvent keyEvent) {
return this.f7161c.isShortcutKey(i, keyEvent);
}
@Override // android.view.Menu
public final boolean performIdentifierAction(int i, int i4) {
return this.f7161c.performIdentifierAction(i, i4);
}
@Override // android.view.Menu
public final boolean performShortcut(int i, KeyEvent keyEvent, int i4) {
return this.f7161c.performShortcut(i, keyEvent, i4);
}
@Override // android.view.Menu
public final void removeGroup(int i) {
if (((s.j) this.f6478b) != null) {
int i4 = 0;
while (true) {
s.j jVar = (s.j) this.f6478b;
if (i4 >= jVar.f8352c) {
break;
}
if (((I.a) jVar.f(i4)).getGroupId() == i) {
((s.j) this.f6478b).g(i4);
i4--;
}
i4++;
}
}
this.f7161c.removeGroup(i);
}
@Override // android.view.Menu
public final void removeItem(int i) {
if (((s.j) this.f6478b) != null) {
int i4 = 0;
while (true) {
s.j jVar = (s.j) this.f6478b;
if (i4 >= jVar.f8352c) {
break;
}
if (((I.a) jVar.f(i4)).getItemId() == i) {
((s.j) this.f6478b).g(i4);
break;
}
i4++;
}
}
this.f7161c.removeItem(i);
}
@Override // android.view.Menu
public final void setGroupCheckable(int i, boolean z3, boolean z4) {
this.f7161c.setGroupCheckable(i, z3, z4);
}
@Override // android.view.Menu
public final void setGroupEnabled(int i, boolean z3) {
this.f7161c.setGroupEnabled(i, z3);
}
@Override // android.view.Menu
public final void setGroupVisible(int i, boolean z3) {
this.f7161c.setGroupVisible(i, z3);
}
@Override // android.view.Menu
public final void setQwertyMode(boolean z3) {
this.f7161c.setQwertyMode(z3);
}
@Override // android.view.Menu
public final int size() {
return this.f7161c.size();
}
@Override // android.view.Menu
public final SubMenu addSubMenu(int i) {
return this.f7161c.addSubMenu(i);
}
@Override // android.view.Menu
public final MenuItem add(int i) {
return f(this.f7161c.add(i));
}
@Override // android.view.Menu
public final SubMenu addSubMenu(int i, int i4, int i5, CharSequence charSequence) {
return this.f7161c.addSubMenu(i, i4, i5, charSequence);
}
@Override // android.view.Menu
public final MenuItem add(int i, int i4, int i5, CharSequence charSequence) {
return f(this.f7161c.a(i, i4, i5, charSequence));
}
@Override // android.view.Menu
public final SubMenu addSubMenu(int i, int i4, int i5, int i6) {
return this.f7161c.addSubMenu(i, i4, i5, i6);
}
@Override // android.view.Menu
public final MenuItem add(int i, int i4, int i5, int i6) {
return f(this.f7161c.add(i, i4, i5, i6));
}
}

View File

@@ -0,0 +1,40 @@
package l;
/* renamed from: l.e, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class RunnableC0427e implements Runnable {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ C0428f f7197a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ o f7198b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ m f7199c;
/* renamed from: d, reason: collision with root package name */
public final /* synthetic */ h3.d f7200d;
public RunnableC0427e(h3.d dVar, C0428f c0428f, o oVar, m mVar) {
this.f7200d = dVar;
this.f7197a = c0428f;
this.f7198b = oVar;
this.f7199c = mVar;
}
@Override // java.lang.Runnable
public final void run() {
C0428f c0428f = this.f7197a;
if (c0428f != null) {
h3.d dVar = this.f7200d;
((ViewOnKeyListenerC0429g) dVar.f6791b).f7225z = true;
c0428f.f7202b.c(false);
((ViewOnKeyListenerC0429g) dVar.f6791b).f7225z = false;
}
o oVar = this.f7198b;
if (oVar.isEnabled() && oVar.hasSubMenu()) {
this.f7199c.q(oVar, null, 4);
}
}
}

View File

@@ -0,0 +1,126 @@
package l;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
/* renamed from: l.E, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class SubMenuC0422E extends m implements SubMenu {
/* renamed from: A, reason: collision with root package name */
public final o f7178A;
/* renamed from: z, reason: collision with root package name */
public final m f7179z;
public SubMenuC0422E(Context context, m mVar, o oVar) {
super(context);
this.f7179z = mVar;
this.f7178A = oVar;
}
@Override // l.m
public final boolean d(o oVar) {
return this.f7179z.d(oVar);
}
@Override // l.m
public final boolean e(m mVar, MenuItem menuItem) {
return super.e(mVar, menuItem) || this.f7179z.e(mVar, menuItem);
}
@Override // l.m
public final boolean f(o oVar) {
return this.f7179z.f(oVar);
}
@Override // android.view.SubMenu
public final MenuItem getItem() {
return this.f7178A;
}
@Override // l.m
public final String j() {
o oVar = this.f7178A;
int i = oVar != null ? oVar.f7268a : 0;
if (i == 0) {
return null;
}
return com.google.android.gms.measurement.internal.a.l(i, "android:menu:actionviewstates:");
}
@Override // l.m
public final m k() {
return this.f7179z.k();
}
@Override // l.m
public final boolean m() {
return this.f7179z.m();
}
@Override // l.m
public final boolean n() {
return this.f7179z.n();
}
@Override // l.m
public final boolean o() {
return this.f7179z.o();
}
@Override // l.m, android.view.Menu
public final void setGroupDividerEnabled(boolean z3) {
this.f7179z.setGroupDividerEnabled(z3);
}
@Override // android.view.SubMenu
public final SubMenu setHeaderIcon(Drawable drawable) {
u(0, null, 0, drawable, null);
return this;
}
@Override // android.view.SubMenu
public final SubMenu setHeaderTitle(CharSequence charSequence) {
u(0, charSequence, 0, null, null);
return this;
}
@Override // android.view.SubMenu
public final SubMenu setHeaderView(View view) {
u(0, null, 0, null, view);
return this;
}
@Override // android.view.SubMenu
public final SubMenu setIcon(Drawable drawable) {
this.f7178A.setIcon(drawable);
return this;
}
@Override // l.m, android.view.Menu
public final void setQwertyMode(boolean z3) {
this.f7179z.setQwertyMode(z3);
}
@Override // android.view.SubMenu
public final SubMenu setHeaderIcon(int i) {
u(0, null, i, null, null);
return this;
}
@Override // android.view.SubMenu
public final SubMenu setHeaderTitle(int i) {
u(i, null, 0, null, null);
return this;
}
@Override // android.view.SubMenu
public final SubMenu setIcon(int i) {
this.f7178A.setIcon(i);
return this;
}
}

View File

@@ -0,0 +1,308 @@
package l;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Rect;
import android.os.Parcelable;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewTreeObserver;
import android.widget.FrameLayout;
import android.widget.PopupWindow;
import android.widget.TextView;
import com.adif.elcanomovil.R;
import m.C0;
import m.C0475m0;
import m.C0496x0;
/* renamed from: l.D, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class ViewOnKeyListenerC0421D extends u implements PopupWindow.OnDismissListener, View.OnKeyListener {
/* renamed from: b, reason: collision with root package name */
public final Context f7162b;
/* renamed from: c, reason: collision with root package name */
public final m f7163c;
/* renamed from: d, reason: collision with root package name */
public final C0432j f7164d;
/* renamed from: e, reason: collision with root package name */
public final boolean f7165e;
/* renamed from: f, reason: collision with root package name */
public final int f7166f;
/* renamed from: g, reason: collision with root package name */
public final int f7167g;
public final C0 h;
/* renamed from: k, reason: collision with root package name */
public v f7169k;
/* renamed from: l, reason: collision with root package name */
public View f7170l;
/* renamed from: m, reason: collision with root package name */
public View f7171m;
/* renamed from: n, reason: collision with root package name */
public x f7172n;
/* renamed from: o, reason: collision with root package name */
public ViewTreeObserver f7173o;
public boolean p;
/* renamed from: q, reason: collision with root package name */
public boolean f7174q;
/* renamed from: r, reason: collision with root package name */
public int f7175r;
/* renamed from: t, reason: collision with root package name */
public boolean f7177t;
public final ViewTreeObserverOnGlobalLayoutListenerC0426d i = new ViewTreeObserverOnGlobalLayoutListenerC0426d(this, 1);
/* renamed from: j, reason: collision with root package name */
public final I2.o f7168j = new I2.o(this, 2);
/* renamed from: s, reason: collision with root package name */
public int f7176s = 0;
/* JADX WARN: Type inference failed for: r6v1, types: [m.x0, m.C0] */
public ViewOnKeyListenerC0421D(int i, Context context, View view, m mVar, boolean z3) {
this.f7162b = context;
this.f7163c = mVar;
this.f7165e = z3;
this.f7164d = new C0432j(mVar, LayoutInflater.from(context), z3, R.layout.abc_popup_menu_item_layout);
this.f7167g = i;
Resources resources = context.getResources();
this.f7166f = Math.max(resources.getDisplayMetrics().widthPixels / 2, resources.getDimensionPixelSize(R.dimen.abc_config_prefDialogWidth));
this.f7170l = view;
this.h = new C0496x0(context, null, i);
mVar.b(this, context);
}
@Override // l.InterfaceC0420C
public final boolean a() {
return !this.p && this.h.f7782z.isShowing();
}
@Override // l.y
public final void b(m mVar, boolean z3) {
if (mVar != this.f7163c) {
return;
}
dismiss();
x xVar = this.f7172n;
if (xVar != null) {
xVar.b(mVar, z3);
}
}
@Override // l.InterfaceC0420C
public final void c() {
View view;
if (a()) {
return;
}
if (this.p || (view = this.f7170l) == null) {
throw new IllegalStateException("StandardMenuPopup cannot be used without an anchor");
}
this.f7171m = view;
C0 c02 = this.h;
c02.f7782z.setOnDismissListener(this);
c02.p = this;
c02.f7781y = true;
c02.f7782z.setFocusable(true);
View view2 = this.f7171m;
boolean z3 = this.f7173o == null;
ViewTreeObserver viewTreeObserver = view2.getViewTreeObserver();
this.f7173o = viewTreeObserver;
if (z3) {
viewTreeObserver.addOnGlobalLayoutListener(this.i);
}
view2.addOnAttachStateChangeListener(this.f7168j);
c02.f7772o = view2;
c02.f7769l = this.f7176s;
boolean z4 = this.f7174q;
Context context = this.f7162b;
C0432j c0432j = this.f7164d;
if (!z4) {
this.f7175r = u.o(c0432j, context, this.f7166f);
this.f7174q = true;
}
c02.r(this.f7175r);
c02.f7782z.setInputMethodMode(2);
Rect rect = this.f7301a;
c02.f7780x = rect != null ? new Rect(rect) : null;
c02.c();
C0475m0 c0475m0 = c02.f7762c;
c0475m0.setOnKeyListener(this);
if (this.f7177t) {
m mVar = this.f7163c;
if (mVar.f7251m != null) {
FrameLayout frameLayout = (FrameLayout) LayoutInflater.from(context).inflate(R.layout.abc_popup_menu_header_item_layout, (ViewGroup) c0475m0, false);
TextView textView = (TextView) frameLayout.findViewById(android.R.id.title);
if (textView != null) {
textView.setText(mVar.f7251m);
}
frameLayout.setEnabled(false);
c0475m0.addHeaderView(frameLayout, null, false);
}
}
c02.p(c0432j);
c02.c();
}
@Override // l.y
public final void d(Parcelable parcelable) {
}
@Override // l.InterfaceC0420C
public final void dismiss() {
if (a()) {
this.h.dismiss();
}
}
@Override // l.y
public final void e(x xVar) {
this.f7172n = xVar;
}
@Override // l.InterfaceC0420C
public final C0475m0 f() {
return this.h.f7762c;
}
@Override // l.y
public final void h(boolean z3) {
this.f7174q = false;
C0432j c0432j = this.f7164d;
if (c0432j != null) {
c0432j.notifyDataSetChanged();
}
}
@Override // l.y
public final boolean j() {
return false;
}
@Override // l.y
public final Parcelable k() {
return null;
}
@Override // l.y
public final boolean l(SubMenuC0422E subMenuC0422E) {
if (subMenuC0422E.hasVisibleItems()) {
View view = this.f7171m;
w wVar = new w(this.f7167g, this.f7162b, view, subMenuC0422E, this.f7165e);
x xVar = this.f7172n;
wVar.h = xVar;
u uVar = wVar.i;
if (uVar != null) {
uVar.e(xVar);
}
boolean w3 = u.w(subMenuC0422E);
wVar.f7309g = w3;
u uVar2 = wVar.i;
if (uVar2 != null) {
uVar2.q(w3);
}
wVar.f7310j = this.f7169k;
this.f7169k = null;
this.f7163c.c(false);
C0 c02 = this.h;
int i = c02.f7765f;
int n4 = c02.n();
if ((Gravity.getAbsoluteGravity(this.f7176s, this.f7170l.getLayoutDirection()) & 7) == 5) {
i += this.f7170l.getWidth();
}
if (!wVar.b()) {
if (wVar.f7307e != null) {
wVar.d(i, n4, true, true);
}
}
x xVar2 = this.f7172n;
if (xVar2 != null) {
xVar2.f(subMenuC0422E);
}
return true;
}
return false;
}
@Override // l.u
public final void n(m mVar) {
}
@Override // android.widget.PopupWindow.OnDismissListener
public final void onDismiss() {
this.p = true;
this.f7163c.c(true);
ViewTreeObserver viewTreeObserver = this.f7173o;
if (viewTreeObserver != null) {
if (!viewTreeObserver.isAlive()) {
this.f7173o = this.f7171m.getViewTreeObserver();
}
this.f7173o.removeGlobalOnLayoutListener(this.i);
this.f7173o = null;
}
this.f7171m.removeOnAttachStateChangeListener(this.f7168j);
v vVar = this.f7169k;
if (vVar != null) {
vVar.onDismiss();
}
}
@Override // android.view.View.OnKeyListener
public final boolean onKey(View view, int i, KeyEvent keyEvent) {
if (keyEvent.getAction() != 1 || i != 82) {
return false;
}
dismiss();
return true;
}
@Override // l.u
public final void p(View view) {
this.f7170l = view;
}
@Override // l.u
public final void q(boolean z3) {
this.f7164d.f7236c = z3;
}
@Override // l.u
public final void r(int i) {
this.f7176s = i;
}
@Override // l.u
public final void s(int i) {
this.h.f7765f = i;
}
@Override // l.u
public final void t(PopupWindow.OnDismissListener onDismissListener) {
this.f7169k = (v) onDismissListener;
}
@Override // l.u
public final void u(boolean z3) {
this.f7177t = z3;
}
@Override // l.u
public final void v(int i) {
this.h.i(i);
}
}

View File

@@ -0,0 +1,388 @@
package l;
import android.content.Context;
import android.content.res.Resources;
import android.os.Handler;
import android.os.Parcelable;
import android.view.Gravity;
import android.view.KeyEvent;
import android.view.View;
import android.view.ViewTreeObserver;
import android.widget.HeaderViewListAdapter;
import android.widget.ListAdapter;
import android.widget.PopupWindow;
import com.adif.elcanomovil.R;
import java.util.ArrayList;
import java.util.Iterator;
import m.AbstractC0500z0;
import m.C0;
import m.C0475m0;
/* renamed from: l.g, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class ViewOnKeyListenerC0429g extends u implements View.OnKeyListener, PopupWindow.OnDismissListener {
/* renamed from: b, reason: collision with root package name */
public final Context f7204b;
/* renamed from: c, reason: collision with root package name */
public final int f7205c;
/* renamed from: d, reason: collision with root package name */
public final int f7206d;
/* renamed from: e, reason: collision with root package name */
public final boolean f7207e;
/* renamed from: f, reason: collision with root package name */
public final Handler f7208f;
/* renamed from: n, reason: collision with root package name */
public View f7214n;
/* renamed from: o, reason: collision with root package name */
public View f7215o;
public int p;
/* renamed from: q, reason: collision with root package name */
public boolean f7216q;
/* renamed from: r, reason: collision with root package name */
public boolean f7217r;
/* renamed from: s, reason: collision with root package name */
public int f7218s;
/* renamed from: t, reason: collision with root package name */
public int f7219t;
/* renamed from: v, reason: collision with root package name */
public boolean f7221v;
/* renamed from: w, reason: collision with root package name */
public x f7222w;
/* renamed from: x, reason: collision with root package name */
public ViewTreeObserver f7223x;
/* renamed from: y, reason: collision with root package name */
public v f7224y;
/* renamed from: z, reason: collision with root package name */
public boolean f7225z;
/* renamed from: g, reason: collision with root package name */
public final ArrayList f7209g = new ArrayList();
public final ArrayList h = new ArrayList();
public final ViewTreeObserverOnGlobalLayoutListenerC0426d i = new ViewTreeObserverOnGlobalLayoutListenerC0426d(this, 0);
/* renamed from: j, reason: collision with root package name */
public final I2.o f7210j = new I2.o(this, 1);
/* renamed from: k, reason: collision with root package name */
public final h3.d f7211k = new h3.d(this, 2);
/* renamed from: l, reason: collision with root package name */
public int f7212l = 0;
/* renamed from: m, reason: collision with root package name */
public int f7213m = 0;
/* renamed from: u, reason: collision with root package name */
public boolean f7220u = false;
public ViewOnKeyListenerC0429g(Context context, View view, int i, boolean z3) {
this.f7204b = context;
this.f7214n = view;
this.f7206d = i;
this.f7207e = z3;
this.p = view.getLayoutDirection() != 1 ? 1 : 0;
Resources resources = context.getResources();
this.f7205c = Math.max(resources.getDisplayMetrics().widthPixels / 2, resources.getDimensionPixelSize(R.dimen.abc_config_prefDialogWidth));
this.f7208f = new Handler();
}
@Override // l.InterfaceC0420C
public final boolean a() {
ArrayList arrayList = this.h;
return arrayList.size() > 0 && ((C0428f) arrayList.get(0)).f7201a.f7782z.isShowing();
}
@Override // l.y
public final void b(m mVar, boolean z3) {
ArrayList arrayList = this.h;
int size = arrayList.size();
int i = 0;
while (true) {
if (i >= size) {
i = -1;
break;
} else if (mVar == ((C0428f) arrayList.get(i)).f7202b) {
break;
} else {
i++;
}
}
if (i < 0) {
return;
}
int i4 = i + 1;
if (i4 < arrayList.size()) {
((C0428f) arrayList.get(i4)).f7202b.c(false);
}
C0428f c0428f = (C0428f) arrayList.remove(i);
c0428f.f7202b.r(this);
boolean z4 = this.f7225z;
C0 c02 = c0428f.f7201a;
if (z4) {
AbstractC0500z0.b(c02.f7782z, null);
c02.f7782z.setAnimationStyle(0);
}
c02.dismiss();
int size2 = arrayList.size();
if (size2 > 0) {
this.p = ((C0428f) arrayList.get(size2 - 1)).f7203c;
} else {
this.p = this.f7214n.getLayoutDirection() == 1 ? 0 : 1;
}
if (size2 != 0) {
if (z3) {
((C0428f) arrayList.get(0)).f7202b.c(false);
return;
}
return;
}
dismiss();
x xVar = this.f7222w;
if (xVar != null) {
xVar.b(mVar, true);
}
ViewTreeObserver viewTreeObserver = this.f7223x;
if (viewTreeObserver != null) {
if (viewTreeObserver.isAlive()) {
this.f7223x.removeGlobalOnLayoutListener(this.i);
}
this.f7223x = null;
}
this.f7215o.removeOnAttachStateChangeListener(this.f7210j);
this.f7224y.onDismiss();
}
@Override // l.InterfaceC0420C
public final void c() {
if (a()) {
return;
}
ArrayList arrayList = this.f7209g;
Iterator it = arrayList.iterator();
while (it.hasNext()) {
x((m) it.next());
}
arrayList.clear();
View view = this.f7214n;
this.f7215o = view;
if (view != null) {
boolean z3 = this.f7223x == null;
ViewTreeObserver viewTreeObserver = view.getViewTreeObserver();
this.f7223x = viewTreeObserver;
if (z3) {
viewTreeObserver.addOnGlobalLayoutListener(this.i);
}
this.f7215o.addOnAttachStateChangeListener(this.f7210j);
}
}
@Override // l.y
public final void d(Parcelable parcelable) {
}
@Override // l.InterfaceC0420C
public final void dismiss() {
ArrayList arrayList = this.h;
int size = arrayList.size();
if (size > 0) {
C0428f[] c0428fArr = (C0428f[]) arrayList.toArray(new C0428f[size]);
for (int i = size - 1; i >= 0; i--) {
C0428f c0428f = c0428fArr[i];
if (c0428f.f7201a.f7782z.isShowing()) {
c0428f.f7201a.dismiss();
}
}
}
}
@Override // l.y
public final void e(x xVar) {
this.f7222w = xVar;
}
@Override // l.InterfaceC0420C
public final C0475m0 f() {
ArrayList arrayList = this.h;
if (arrayList.isEmpty()) {
return null;
}
return ((C0428f) arrayList.get(arrayList.size() - 1)).f7201a.f7762c;
}
@Override // l.y
public final void h(boolean z3) {
Iterator it = this.h.iterator();
while (it.hasNext()) {
ListAdapter adapter = ((C0428f) it.next()).f7201a.f7762c.getAdapter();
if (adapter instanceof HeaderViewListAdapter) {
adapter = ((HeaderViewListAdapter) adapter).getWrappedAdapter();
}
((C0432j) adapter).notifyDataSetChanged();
}
}
@Override // l.y
public final boolean j() {
return false;
}
@Override // l.y
public final Parcelable k() {
return null;
}
@Override // l.y
public final boolean l(SubMenuC0422E subMenuC0422E) {
Iterator it = this.h.iterator();
while (it.hasNext()) {
C0428f c0428f = (C0428f) it.next();
if (subMenuC0422E == c0428f.f7202b) {
c0428f.f7201a.f7762c.requestFocus();
return true;
}
}
if (!subMenuC0422E.hasVisibleItems()) {
return false;
}
n(subMenuC0422E);
x xVar = this.f7222w;
if (xVar != null) {
xVar.f(subMenuC0422E);
}
return true;
}
@Override // l.u
public final void n(m mVar) {
mVar.b(this, this.f7204b);
if (a()) {
x(mVar);
} else {
this.f7209g.add(mVar);
}
}
@Override // android.widget.PopupWindow.OnDismissListener
public final void onDismiss() {
C0428f c0428f;
ArrayList arrayList = this.h;
int size = arrayList.size();
int i = 0;
while (true) {
if (i >= size) {
c0428f = null;
break;
}
c0428f = (C0428f) arrayList.get(i);
if (!c0428f.f7201a.f7782z.isShowing()) {
break;
} else {
i++;
}
}
if (c0428f != null) {
c0428f.f7202b.c(false);
}
}
@Override // android.view.View.OnKeyListener
public final boolean onKey(View view, int i, KeyEvent keyEvent) {
if (keyEvent.getAction() != 1 || i != 82) {
return false;
}
dismiss();
return true;
}
@Override // l.u
public final void p(View view) {
if (this.f7214n != view) {
this.f7214n = view;
this.f7213m = Gravity.getAbsoluteGravity(this.f7212l, view.getLayoutDirection());
}
}
@Override // l.u
public final void q(boolean z3) {
this.f7220u = z3;
}
@Override // l.u
public final void r(int i) {
if (this.f7212l != i) {
this.f7212l = i;
this.f7213m = Gravity.getAbsoluteGravity(i, this.f7214n.getLayoutDirection());
}
}
@Override // l.u
public final void s(int i) {
this.f7216q = true;
this.f7218s = i;
}
@Override // l.u
public final void t(PopupWindow.OnDismissListener onDismissListener) {
this.f7224y = (v) onDismissListener;
}
@Override // l.u
public final void u(boolean z3) {
this.f7221v = z3;
}
@Override // l.u
public final void v(int i) {
this.f7217r = true;
this.f7219t = i;
}
/* JADX WARN: Code restructure failed: missing block: B:21:0x012a, code lost:
if (((r8.getWidth() + r9[0]) + r5) > r11.right) goto L50;
*/
/* JADX WARN: Code restructure failed: missing block: B:22:0x012c, code lost:
r13 = 0;
r8 = 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:46:0x012f, code lost:
r8 = 1;
r13 = 1;
*/
/* JADX WARN: Code restructure failed: missing block: B:48:0x0135, code lost:
if ((r9[0] - r5) < 0) goto L51;
*/
/* JADX WARN: Removed duplicated region for block: B:18:0x00ef */
/* JADX WARN: Removed duplicated region for block: B:49:0x0165 */
/* JADX WARN: Type inference failed for: r7v0, types: [m.x0, m.C0] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void x(l.m r18) {
/*
Method dump skipped, instructions count: 449
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: l.ViewOnKeyListenerC0429g.x(l.m):void");
}
}

View File

@@ -0,0 +1,90 @@
package l;
import android.view.View;
import android.view.ViewTreeObserver;
import java.util.ArrayList;
import java.util.Iterator;
import m.C0;
import m.K;
import m.N;
/* renamed from: l.d, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public final class ViewTreeObserverOnGlobalLayoutListenerC0426d implements ViewTreeObserver.OnGlobalLayoutListener {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ int f7195a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ Object f7196b;
public /* synthetic */ ViewTreeObserverOnGlobalLayoutListenerC0426d(Object obj, int i) {
this.f7195a = i;
this.f7196b = obj;
}
@Override // android.view.ViewTreeObserver.OnGlobalLayoutListener
public final void onGlobalLayout() {
switch (this.f7195a) {
case 0:
ViewOnKeyListenerC0429g viewOnKeyListenerC0429g = (ViewOnKeyListenerC0429g) this.f7196b;
if (viewOnKeyListenerC0429g.a()) {
ArrayList arrayList = viewOnKeyListenerC0429g.h;
if (arrayList.size() <= 0 || ((C0428f) arrayList.get(0)).f7201a.f7781y) {
return;
}
View view = viewOnKeyListenerC0429g.f7215o;
if (view == null || !view.isShown()) {
viewOnKeyListenerC0429g.dismiss();
return;
}
Iterator it = arrayList.iterator();
while (it.hasNext()) {
((C0428f) it.next()).f7201a.c();
}
return;
}
return;
case 1:
ViewOnKeyListenerC0421D viewOnKeyListenerC0421D = (ViewOnKeyListenerC0421D) this.f7196b;
if (viewOnKeyListenerC0421D.a()) {
C0 c02 = viewOnKeyListenerC0421D.h;
if (c02.f7781y) {
return;
}
View view2 = viewOnKeyListenerC0421D.f7171m;
if (view2 == null || !view2.isShown()) {
viewOnKeyListenerC0421D.dismiss();
return;
} else {
c02.c();
return;
}
}
return;
case 2:
N n4 = (N) this.f7196b;
if (!n4.getInternalPopup().a()) {
n4.f7595f.l(n4.getTextDirection(), n4.getTextAlignment());
}
ViewTreeObserver viewTreeObserver = n4.getViewTreeObserver();
if (viewTreeObserver != null) {
viewTreeObserver.removeOnGlobalLayoutListener(this);
return;
}
return;
default:
K k4 = (K) this.f7196b;
N n5 = k4.f7580E;
k4.getClass();
if (!n5.isAttachedToWindow() || !n5.getGlobalVisibleRect(k4.f7578C)) {
k4.dismiss();
return;
} else {
k4.s();
k4.c();
return;
}
}
}
}

View File

@@ -0,0 +1,883 @@
package l;
import O.Z;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.content.pm.PackageManager;
import android.content.pm.ResolveInfo;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.os.Parcelable;
import android.util.SparseArray;
import android.view.KeyCharacterMap;
import android.view.KeyEvent;
import android.view.Menu;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
import android.view.ViewConfiguration;
import java.lang.ref.WeakReference;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
/* loaded from: classes.dex */
public class m implements Menu {
/* renamed from: y, reason: collision with root package name */
public static final int[] f7240y = {1, 4, 5, 3, 2, 0};
/* renamed from: a, reason: collision with root package name */
public final Context f7241a;
/* renamed from: b, reason: collision with root package name */
public final Resources f7242b;
/* renamed from: c, reason: collision with root package name */
public boolean f7243c;
/* renamed from: d, reason: collision with root package name */
public final boolean f7244d;
/* renamed from: e, reason: collision with root package name */
public InterfaceC0433k f7245e;
/* renamed from: f, reason: collision with root package name */
public final ArrayList f7246f;
/* renamed from: g, reason: collision with root package name */
public final ArrayList f7247g;
public boolean h;
public final ArrayList i;
/* renamed from: j, reason: collision with root package name */
public final ArrayList f7248j;
/* renamed from: k, reason: collision with root package name */
public boolean f7249k;
/* renamed from: m, reason: collision with root package name */
public CharSequence f7251m;
/* renamed from: n, reason: collision with root package name */
public Drawable f7252n;
/* renamed from: o, reason: collision with root package name */
public View f7253o;
/* renamed from: v, reason: collision with root package name */
public o f7259v;
/* renamed from: x, reason: collision with root package name */
public boolean f7261x;
/* renamed from: l, reason: collision with root package name */
public int f7250l = 0;
public boolean p = false;
/* renamed from: q, reason: collision with root package name */
public boolean f7254q = false;
/* renamed from: r, reason: collision with root package name */
public boolean f7255r = false;
/* renamed from: s, reason: collision with root package name */
public boolean f7256s = false;
/* renamed from: t, reason: collision with root package name */
public final ArrayList f7257t = new ArrayList();
/* renamed from: u, reason: collision with root package name */
public final CopyOnWriteArrayList f7258u = new CopyOnWriteArrayList();
/* renamed from: w, reason: collision with root package name */
public boolean f7260w = false;
public m(Context context) {
boolean z3 = false;
this.f7241a = context;
Resources resources = context.getResources();
this.f7242b = resources;
this.f7246f = new ArrayList();
this.f7247g = new ArrayList();
this.h = true;
this.i = new ArrayList();
this.f7248j = new ArrayList();
this.f7249k = true;
if (resources.getConfiguration().keyboard != 1 && Z.b(ViewConfiguration.get(context))) {
z3 = true;
}
this.f7244d = z3;
}
public o a(int i, int i4, int i5, CharSequence charSequence) {
int i6;
int i7 = ((-65536) & i5) >> 16;
if (i7 < 0 || i7 >= 6) {
throw new IllegalArgumentException("order does not contain a valid category.");
}
int i8 = (f7240y[i7] << 16) | (65535 & i5);
o oVar = new o(this, i, i4, i5, i8, charSequence, this.f7250l);
ArrayList arrayList = this.f7246f;
int size = arrayList.size() - 1;
while (true) {
if (size < 0) {
i6 = 0;
break;
}
if (((o) arrayList.get(size)).f7271d <= i8) {
i6 = size + 1;
break;
}
size--;
}
arrayList.add(i6, oVar);
p(true);
return oVar;
}
@Override // android.view.Menu
public final MenuItem add(CharSequence charSequence) {
return a(0, 0, 0, charSequence);
}
@Override // android.view.Menu
public final int addIntentOptions(int i, int i4, int i5, ComponentName componentName, Intent[] intentArr, Intent intent, int i6, MenuItem[] menuItemArr) {
int i7;
PackageManager packageManager = this.f7241a.getPackageManager();
List<ResolveInfo> queryIntentActivityOptions = packageManager.queryIntentActivityOptions(componentName, intentArr, intent, 0);
int size = queryIntentActivityOptions != null ? queryIntentActivityOptions.size() : 0;
if ((i6 & 1) == 0) {
removeGroup(i);
}
for (int i8 = 0; i8 < size; i8++) {
ResolveInfo resolveInfo = queryIntentActivityOptions.get(i8);
int i9 = resolveInfo.specificIndex;
Intent intent2 = new Intent(i9 < 0 ? intent : intentArr[i9]);
ActivityInfo activityInfo = resolveInfo.activityInfo;
intent2.setComponent(new ComponentName(activityInfo.applicationInfo.packageName, activityInfo.name));
o a2 = a(i, i4, i5, resolveInfo.loadLabel(packageManager));
a2.setIcon(resolveInfo.loadIcon(packageManager));
a2.f7274g = intent2;
if (menuItemArr != null && (i7 = resolveInfo.specificIndex) >= 0) {
menuItemArr[i7] = a2;
}
}
return size;
}
@Override // android.view.Menu
public final SubMenu addSubMenu(CharSequence charSequence) {
return addSubMenu(0, 0, 0, charSequence);
}
public final void b(y yVar, Context context) {
this.f7258u.add(new WeakReference(yVar));
yVar.i(context, this);
this.f7249k = true;
}
public final void c(boolean z3) {
if (this.f7256s) {
return;
}
this.f7256s = true;
CopyOnWriteArrayList copyOnWriteArrayList = this.f7258u;
Iterator it = copyOnWriteArrayList.iterator();
while (it.hasNext()) {
WeakReference weakReference = (WeakReference) it.next();
y yVar = (y) weakReference.get();
if (yVar == null) {
copyOnWriteArrayList.remove(weakReference);
} else {
yVar.b(this, z3);
}
}
this.f7256s = false;
}
@Override // android.view.Menu
public final void clear() {
o oVar = this.f7259v;
if (oVar != null) {
d(oVar);
}
this.f7246f.clear();
p(true);
}
public final void clearHeader() {
this.f7252n = null;
this.f7251m = null;
this.f7253o = null;
p(false);
}
@Override // android.view.Menu
public final void close() {
c(true);
}
public boolean d(o oVar) {
CopyOnWriteArrayList copyOnWriteArrayList = this.f7258u;
boolean z3 = false;
if (!copyOnWriteArrayList.isEmpty() && this.f7259v == oVar) {
w();
Iterator it = copyOnWriteArrayList.iterator();
while (it.hasNext()) {
WeakReference weakReference = (WeakReference) it.next();
y yVar = (y) weakReference.get();
if (yVar == null) {
copyOnWriteArrayList.remove(weakReference);
} else {
z3 = yVar.m(oVar);
if (z3) {
break;
}
}
}
v();
if (z3) {
this.f7259v = null;
}
}
return z3;
}
public boolean e(m mVar, MenuItem menuItem) {
InterfaceC0433k interfaceC0433k = this.f7245e;
return interfaceC0433k != null && interfaceC0433k.c(mVar, menuItem);
}
public boolean f(o oVar) {
CopyOnWriteArrayList copyOnWriteArrayList = this.f7258u;
boolean z3 = false;
if (copyOnWriteArrayList.isEmpty()) {
return false;
}
w();
Iterator it = copyOnWriteArrayList.iterator();
while (it.hasNext()) {
WeakReference weakReference = (WeakReference) it.next();
y yVar = (y) weakReference.get();
if (yVar == null) {
copyOnWriteArrayList.remove(weakReference);
} else {
z3 = yVar.g(oVar);
if (z3) {
break;
}
}
}
v();
if (z3) {
this.f7259v = oVar;
}
return z3;
}
@Override // android.view.Menu
public final MenuItem findItem(int i) {
MenuItem findItem;
ArrayList arrayList = this.f7246f;
int size = arrayList.size();
for (int i4 = 0; i4 < size; i4++) {
o oVar = (o) arrayList.get(i4);
if (oVar.f7268a == i) {
return oVar;
}
if (oVar.hasSubMenu() && (findItem = oVar.f7280o.findItem(i)) != null) {
return findItem;
}
}
return null;
}
public final o g(int i, KeyEvent keyEvent) {
ArrayList arrayList = this.f7257t;
arrayList.clear();
h(arrayList, i, keyEvent);
if (arrayList.isEmpty()) {
return null;
}
int metaState = keyEvent.getMetaState();
KeyCharacterMap.KeyData keyData = new KeyCharacterMap.KeyData();
keyEvent.getKeyData(keyData);
int size = arrayList.size();
if (size == 1) {
return (o) arrayList.get(0);
}
boolean n4 = n();
for (int i4 = 0; i4 < size; i4++) {
o oVar = (o) arrayList.get(i4);
char c4 = n4 ? oVar.f7275j : oVar.h;
char[] cArr = keyData.meta;
if ((c4 == cArr[0] && (metaState & 2) == 0) || ((c4 == cArr[2] && (metaState & 2) != 0) || (n4 && c4 == '\b' && i == 67))) {
return oVar;
}
}
return null;
}
@Override // android.view.Menu
public final MenuItem getItem(int i) {
return (MenuItem) this.f7246f.get(i);
}
public final void h(ArrayList arrayList, int i, KeyEvent keyEvent) {
boolean n4 = n();
int modifiers = keyEvent.getModifiers();
KeyCharacterMap.KeyData keyData = new KeyCharacterMap.KeyData();
if (keyEvent.getKeyData(keyData) || i == 67) {
ArrayList arrayList2 = this.f7246f;
int size = arrayList2.size();
for (int i4 = 0; i4 < size; i4++) {
o oVar = (o) arrayList2.get(i4);
if (oVar.hasSubMenu()) {
oVar.f7280o.h(arrayList, i, keyEvent);
}
char c4 = n4 ? oVar.f7275j : oVar.h;
if ((modifiers & 69647) == ((n4 ? oVar.f7276k : oVar.i) & 69647) && c4 != 0) {
char[] cArr = keyData.meta;
if ((c4 == cArr[0] || c4 == cArr[2] || (n4 && c4 == '\b' && i == 67)) && oVar.isEnabled()) {
arrayList.add(oVar);
}
}
}
}
}
@Override // android.view.Menu
public final boolean hasVisibleItems() {
if (this.f7261x) {
return true;
}
ArrayList arrayList = this.f7246f;
int size = arrayList.size();
for (int i = 0; i < size; i++) {
if (((o) arrayList.get(i)).isVisible()) {
return true;
}
}
return false;
}
public final void i() {
ArrayList l4 = l();
if (this.f7249k) {
CopyOnWriteArrayList copyOnWriteArrayList = this.f7258u;
Iterator it = copyOnWriteArrayList.iterator();
boolean z3 = false;
while (it.hasNext()) {
WeakReference weakReference = (WeakReference) it.next();
y yVar = (y) weakReference.get();
if (yVar == null) {
copyOnWriteArrayList.remove(weakReference);
} else {
z3 |= yVar.j();
}
}
ArrayList arrayList = this.i;
ArrayList arrayList2 = this.f7248j;
if (z3) {
arrayList.clear();
arrayList2.clear();
int size = l4.size();
for (int i = 0; i < size; i++) {
o oVar = (o) l4.get(i);
if ((oVar.f7288x & 32) == 32) {
arrayList.add(oVar);
} else {
arrayList2.add(oVar);
}
}
} else {
arrayList.clear();
arrayList2.clear();
arrayList2.addAll(l());
}
this.f7249k = false;
}
}
@Override // android.view.Menu
public final boolean isShortcutKey(int i, KeyEvent keyEvent) {
return g(i, keyEvent) != null;
}
public String j() {
return "android:menu:actionviewstates";
}
public m k() {
return this;
}
public final ArrayList l() {
boolean z3 = this.h;
ArrayList arrayList = this.f7247g;
if (!z3) {
return arrayList;
}
arrayList.clear();
ArrayList arrayList2 = this.f7246f;
int size = arrayList2.size();
for (int i = 0; i < size; i++) {
o oVar = (o) arrayList2.get(i);
if (oVar.isVisible()) {
arrayList.add(oVar);
}
}
this.h = false;
this.f7249k = true;
return arrayList;
}
public boolean m() {
return this.f7260w;
}
public boolean n() {
return this.f7243c;
}
public boolean o() {
return this.f7244d;
}
public final void p(boolean z3) {
if (this.p) {
this.f7254q = true;
if (z3) {
this.f7255r = true;
return;
}
return;
}
if (z3) {
this.h = true;
this.f7249k = true;
}
CopyOnWriteArrayList copyOnWriteArrayList = this.f7258u;
if (copyOnWriteArrayList.isEmpty()) {
return;
}
w();
Iterator it = copyOnWriteArrayList.iterator();
while (it.hasNext()) {
WeakReference weakReference = (WeakReference) it.next();
y yVar = (y) weakReference.get();
if (yVar == null) {
copyOnWriteArrayList.remove(weakReference);
} else {
yVar.h(z3);
}
}
v();
}
@Override // android.view.Menu
public final boolean performIdentifierAction(int i, int i4) {
return q(findItem(i), null, i4);
}
@Override // android.view.Menu
public final boolean performShortcut(int i, KeyEvent keyEvent, int i4) {
o g4 = g(i, keyEvent);
boolean q4 = g4 != null ? q(g4, null, i4) : false;
if ((i4 & 2) != 0) {
c(true);
}
return q4;
}
/* JADX WARN: Removed duplicated region for block: B:17:0x0058 */
/* JADX WARN: Removed duplicated region for block: B:22:0x0064 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final boolean q(android.view.MenuItem r7, l.y r8, int r9) {
/*
r6 = this;
l.o r7 = (l.o) r7
r0 = 0
if (r7 == 0) goto Ld4
boolean r1 = r7.isEnabled()
if (r1 != 0) goto Ld
goto Ld4
Ld:
android.view.MenuItem$OnMenuItemClickListener r1 = r7.p
r2 = 1
if (r1 == 0) goto L1a
boolean r1 = r1.onMenuItemClick(r7)
if (r1 == 0) goto L1a
L18:
r1 = r2
goto L43
L1a:
l.m r1 = r7.f7279n
boolean r3 = r1.e(r1, r7)
if (r3 == 0) goto L23
goto L18
L23:
android.content.Intent r3 = r7.f7274g
if (r3 == 0) goto L35
android.content.Context r1 = r1.f7241a // Catch: android.content.ActivityNotFoundException -> L2d
r1.startActivity(r3) // Catch: android.content.ActivityNotFoundException -> L2d
goto L18
L2d:
r1 = move-exception
java.lang.String r3 = "MenuItemImpl"
java.lang.String r4 = "Can't find activity to handle intent; ignoring"
android.util.Log.e(r3, r4, r1)
L35:
l.p r1 = r7.f7265A
if (r1 == 0) goto L42
android.view.ActionProvider r1 = r1.f7292b
boolean r1 = r1.onPerformDefaultAction()
if (r1 == 0) goto L42
goto L18
L42:
r1 = r0
L43:
l.p r3 = r7.f7265A
if (r3 == 0) goto L51
android.view.ActionProvider r4 = r3.f7292b
boolean r4 = r4.hasSubMenu()
if (r4 == 0) goto L51
r4 = r2
goto L52
L51:
r4 = r0
L52:
boolean r5 = r7.e()
if (r5 == 0) goto L64
boolean r7 = r7.expandActionView()
r1 = r1 | r7
if (r1 == 0) goto Ld3
r6.c(r2)
goto Ld3
L64:
boolean r5 = r7.hasSubMenu()
if (r5 != 0) goto L75
if (r4 == 0) goto L6d
goto L75
L6d:
r7 = r9 & 1
if (r7 != 0) goto Ld3
r6.c(r2)
goto Ld3
L75:
r9 = r9 & 4
if (r9 != 0) goto L7c
r6.c(r0)
L7c:
boolean r9 = r7.hasSubMenu()
if (r9 != 0) goto L90
l.E r9 = new l.E
android.content.Context r5 = r6.f7241a
r9.<init>(r5, r6, r7)
r7.f7280o = r9
java.lang.CharSequence r5 = r7.f7272e
r9.setHeaderTitle(r5)
L90:
l.E r7 = r7.f7280o
if (r4 == 0) goto L9b
l.t r9 = r3.f7293c
android.view.ActionProvider r9 = r3.f7292b
r9.onPrepareSubMenu(r7)
L9b:
java.util.concurrent.CopyOnWriteArrayList r9 = r6.f7258u
boolean r3 = r9.isEmpty()
if (r3 == 0) goto La4
goto Lcd
La4:
if (r8 == 0) goto Laa
boolean r0 = r8.l(r7)
Laa:
java.util.Iterator r8 = r9.iterator()
Lae:
boolean r3 = r8.hasNext()
if (r3 == 0) goto Lcd
java.lang.Object r3 = r8.next()
java.lang.ref.WeakReference r3 = (java.lang.ref.WeakReference) r3
java.lang.Object r4 = r3.get()
l.y r4 = (l.y) r4
if (r4 != 0) goto Lc6
r9.remove(r3)
goto Lae
Lc6:
if (r0 != 0) goto Lae
boolean r0 = r4.l(r7)
goto Lae
Lcd:
r1 = r1 | r0
if (r1 != 0) goto Ld3
r6.c(r2)
Ld3:
return r1
Ld4:
return r0
*/
throw new UnsupportedOperationException("Method not decompiled: l.m.q(android.view.MenuItem, l.y, int):boolean");
}
public final void r(y yVar) {
CopyOnWriteArrayList copyOnWriteArrayList = this.f7258u;
Iterator it = copyOnWriteArrayList.iterator();
while (it.hasNext()) {
WeakReference weakReference = (WeakReference) it.next();
y yVar2 = (y) weakReference.get();
if (yVar2 == null || yVar2 == yVar) {
copyOnWriteArrayList.remove(weakReference);
}
}
}
@Override // android.view.Menu
public final void removeGroup(int i) {
ArrayList arrayList = this.f7246f;
int size = arrayList.size();
int i4 = 0;
int i5 = 0;
while (true) {
if (i5 >= size) {
i5 = -1;
break;
} else if (((o) arrayList.get(i5)).f7269b == i) {
break;
} else {
i5++;
}
}
if (i5 >= 0) {
int size2 = arrayList.size() - i5;
while (true) {
int i6 = i4 + 1;
if (i4 >= size2 || ((o) arrayList.get(i5)).f7269b != i) {
break;
}
if (i5 >= 0) {
ArrayList arrayList2 = this.f7246f;
if (i5 < arrayList2.size()) {
arrayList2.remove(i5);
}
}
i4 = i6;
}
p(true);
}
}
@Override // android.view.Menu
public final void removeItem(int i) {
ArrayList arrayList = this.f7246f;
int size = arrayList.size();
int i4 = 0;
while (true) {
if (i4 >= size) {
i4 = -1;
break;
} else if (((o) arrayList.get(i4)).f7268a == i) {
break;
} else {
i4++;
}
}
if (i4 >= 0) {
ArrayList arrayList2 = this.f7246f;
if (i4 >= arrayList2.size()) {
return;
}
arrayList2.remove(i4);
p(true);
}
}
public final void s(Bundle bundle) {
MenuItem findItem;
if (bundle == null) {
return;
}
SparseArray<Parcelable> sparseParcelableArray = bundle.getSparseParcelableArray(j());
int size = this.f7246f.size();
for (int i = 0; i < size; i++) {
MenuItem item = getItem(i);
View actionView = item.getActionView();
if (actionView != null && actionView.getId() != -1) {
actionView.restoreHierarchyState(sparseParcelableArray);
}
if (item.hasSubMenu()) {
((SubMenuC0422E) item.getSubMenu()).s(bundle);
}
}
int i4 = bundle.getInt("android:menu:expandedactionview");
if (i4 <= 0 || (findItem = findItem(i4)) == null) {
return;
}
findItem.expandActionView();
}
@Override // android.view.Menu
public final void setGroupCheckable(int i, boolean z3, boolean z4) {
ArrayList arrayList = this.f7246f;
int size = arrayList.size();
for (int i4 = 0; i4 < size; i4++) {
o oVar = (o) arrayList.get(i4);
if (oVar.f7269b == i) {
oVar.f(z4);
oVar.setCheckable(z3);
}
}
}
@Override // android.view.Menu
public void setGroupDividerEnabled(boolean z3) {
this.f7260w = z3;
}
@Override // android.view.Menu
public final void setGroupEnabled(int i, boolean z3) {
ArrayList arrayList = this.f7246f;
int size = arrayList.size();
for (int i4 = 0; i4 < size; i4++) {
o oVar = (o) arrayList.get(i4);
if (oVar.f7269b == i) {
oVar.setEnabled(z3);
}
}
}
@Override // android.view.Menu
public final void setGroupVisible(int i, boolean z3) {
ArrayList arrayList = this.f7246f;
int size = arrayList.size();
boolean z4 = false;
for (int i4 = 0; i4 < size; i4++) {
o oVar = (o) arrayList.get(i4);
if (oVar.f7269b == i) {
int i5 = oVar.f7288x;
int i6 = (i5 & (-9)) | (z3 ? 0 : 8);
oVar.f7288x = i6;
if (i5 != i6) {
z4 = true;
}
}
}
if (z4) {
p(true);
}
}
@Override // android.view.Menu
public void setQwertyMode(boolean z3) {
this.f7243c = z3;
p(false);
}
@Override // android.view.Menu
public final int size() {
return this.f7246f.size();
}
public final void t(Bundle bundle) {
int size = this.f7246f.size();
SparseArray<? extends Parcelable> sparseArray = null;
for (int i = 0; i < size; i++) {
MenuItem item = getItem(i);
View actionView = item.getActionView();
if (actionView != null && actionView.getId() != -1) {
if (sparseArray == null) {
sparseArray = new SparseArray<>();
}
actionView.saveHierarchyState(sparseArray);
if (item.isActionViewExpanded()) {
bundle.putInt("android:menu:expandedactionview", item.getItemId());
}
}
if (item.hasSubMenu()) {
((SubMenuC0422E) item.getSubMenu()).t(bundle);
}
}
if (sparseArray != null) {
bundle.putSparseParcelableArray(j(), sparseArray);
}
}
public final void u(int i, CharSequence charSequence, int i4, Drawable drawable, View view) {
if (view != null) {
this.f7253o = view;
this.f7251m = null;
this.f7252n = null;
} else {
if (i > 0) {
this.f7251m = this.f7242b.getText(i);
} else if (charSequence != null) {
this.f7251m = charSequence;
}
if (i4 > 0) {
this.f7252n = D.h.getDrawable(this.f7241a, i4);
} else if (drawable != null) {
this.f7252n = drawable;
}
this.f7253o = null;
}
p(false);
}
public final void v() {
this.p = false;
if (this.f7254q) {
this.f7254q = false;
p(this.f7255r);
}
}
public final void w() {
if (this.p) {
return;
}
this.p = true;
this.f7254q = false;
this.f7255r = false;
}
@Override // android.view.Menu
public final MenuItem add(int i) {
return a(0, 0, 0, this.f7242b.getString(i));
}
@Override // android.view.Menu
public final SubMenu addSubMenu(int i) {
return addSubMenu(0, 0, 0, this.f7242b.getString(i));
}
@Override // android.view.Menu
public final MenuItem add(int i, int i4, int i5, CharSequence charSequence) {
return a(i, i4, i5, charSequence);
}
@Override // android.view.Menu
public SubMenu addSubMenu(int i, int i4, int i5, CharSequence charSequence) {
o a2 = a(i, i4, i5, charSequence);
SubMenuC0422E subMenuC0422E = new SubMenuC0422E(this.f7241a, this, a2);
a2.f7280o = subMenuC0422E;
subMenuC0422E.setHeaderTitle(a2.f7272e);
return subMenuC0422E;
}
@Override // android.view.Menu
public final MenuItem add(int i, int i4, int i5, int i6) {
return a(i, i4, i5, this.f7242b.getString(i6));
}
@Override // android.view.Menu
public final SubMenu addSubMenu(int i, int i4, int i5, int i6) {
return addSubMenu(i, i4, i5, this.f7242b.getString(i6));
}
}

View File

@@ -0,0 +1,71 @@
package l;
import android.content.DialogInterface;
import android.view.KeyEvent;
import android.view.View;
import android.view.Window;
import g.DialogInterfaceC0362i;
/* loaded from: classes.dex */
public final class n implements DialogInterface.OnKeyListener, DialogInterface.OnClickListener, DialogInterface.OnDismissListener, x {
/* renamed from: a, reason: collision with root package name */
public SubMenuC0422E f7262a;
/* renamed from: b, reason: collision with root package name */
public DialogInterfaceC0362i f7263b;
/* renamed from: c, reason: collision with root package name */
public C0431i f7264c;
@Override // l.x
public final void b(m mVar, boolean z3) {
DialogInterfaceC0362i dialogInterfaceC0362i;
if ((z3 || mVar == this.f7262a) && (dialogInterfaceC0362i = this.f7263b) != null) {
dialogInterfaceC0362i.dismiss();
}
}
@Override // l.x
public final boolean f(m mVar) {
return false;
}
@Override // android.content.DialogInterface.OnClickListener
public final void onClick(DialogInterface dialogInterface, int i) {
C0431i c0431i = this.f7264c;
if (c0431i.f7233f == null) {
c0431i.f7233f = new C0430h(c0431i);
}
this.f7262a.q(c0431i.f7233f.getItem(i), null, 0);
}
@Override // android.content.DialogInterface.OnDismissListener
public final void onDismiss(DialogInterface dialogInterface) {
this.f7264c.b(this.f7262a, true);
}
@Override // android.content.DialogInterface.OnKeyListener
public final boolean onKey(DialogInterface dialogInterface, int i, KeyEvent keyEvent) {
Window window;
View decorView;
KeyEvent.DispatcherState keyDispatcherState;
View decorView2;
KeyEvent.DispatcherState keyDispatcherState2;
SubMenuC0422E subMenuC0422E = this.f7262a;
if (i == 82 || i == 4) {
if (keyEvent.getAction() == 0 && keyEvent.getRepeatCount() == 0) {
Window window2 = this.f7263b.getWindow();
if (window2 != null && (decorView2 = window2.getDecorView()) != null && (keyDispatcherState2 = decorView2.getKeyDispatcherState()) != null) {
keyDispatcherState2.startTracking(keyEvent, this);
return true;
}
} else if (keyEvent.getAction() == 1 && !keyEvent.isCanceled() && (window = this.f7263b.getWindow()) != null && (decorView = window.getDecorView()) != null && (keyDispatcherState = decorView.getKeyDispatcherState()) != null && keyDispatcherState.isTracking(keyEvent)) {
subMenuC0422E.c(true);
dialogInterface.dismiss();
return true;
}
}
return subMenuC0422E.performShortcut(i, keyEvent, 0);
}
}

View File

@@ -0,0 +1,644 @@
package l;
import a.AbstractC0106b;
import android.content.Context;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.view.ActionProvider;
import android.view.ContextMenu;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
import android.view.ViewGroup;
import android.widget.LinearLayout;
import java.util.ArrayList;
import kotlin.io.ConstantsKt;
/* loaded from: classes.dex */
public final class o implements I.a {
/* renamed from: A, reason: collision with root package name */
public p f7265A;
/* renamed from: B, reason: collision with root package name */
public MenuItem.OnActionExpandListener f7266B;
/* renamed from: a, reason: collision with root package name */
public final int f7268a;
/* renamed from: b, reason: collision with root package name */
public final int f7269b;
/* renamed from: c, reason: collision with root package name */
public final int f7270c;
/* renamed from: d, reason: collision with root package name */
public final int f7271d;
/* renamed from: e, reason: collision with root package name */
public CharSequence f7272e;
/* renamed from: f, reason: collision with root package name */
public CharSequence f7273f;
/* renamed from: g, reason: collision with root package name */
public Intent f7274g;
public char h;
/* renamed from: j, reason: collision with root package name */
public char f7275j;
/* renamed from: l, reason: collision with root package name */
public Drawable f7277l;
/* renamed from: n, reason: collision with root package name */
public final m f7279n;
/* renamed from: o, reason: collision with root package name */
public SubMenuC0422E f7280o;
public MenuItem.OnMenuItemClickListener p;
/* renamed from: q, reason: collision with root package name */
public CharSequence f7281q;
/* renamed from: r, reason: collision with root package name */
public CharSequence f7282r;
/* renamed from: y, reason: collision with root package name */
public int f7289y;
/* renamed from: z, reason: collision with root package name */
public View f7290z;
public int i = ConstantsKt.DEFAULT_BLOCK_SIZE;
/* renamed from: k, reason: collision with root package name */
public int f7276k = ConstantsKt.DEFAULT_BLOCK_SIZE;
/* renamed from: m, reason: collision with root package name */
public int f7278m = 0;
/* renamed from: s, reason: collision with root package name */
public ColorStateList f7283s = null;
/* renamed from: t, reason: collision with root package name */
public PorterDuff.Mode f7284t = null;
/* renamed from: u, reason: collision with root package name */
public boolean f7285u = false;
/* renamed from: v, reason: collision with root package name */
public boolean f7286v = false;
/* renamed from: w, reason: collision with root package name */
public boolean f7287w = false;
/* renamed from: x, reason: collision with root package name */
public int f7288x = 16;
/* renamed from: C, reason: collision with root package name */
public boolean f7267C = false;
public o(m mVar, int i, int i4, int i5, int i6, CharSequence charSequence, int i7) {
this.f7279n = mVar;
this.f7268a = i4;
this.f7269b = i;
this.f7270c = i5;
this.f7271d = i6;
this.f7272e = charSequence;
this.f7289y = i7;
}
public static void c(StringBuilder sb, int i, int i4, String str) {
if ((i & i4) == i4) {
sb.append(str);
}
}
@Override // I.a
public final p a() {
return this.f7265A;
}
@Override // I.a
public final I.a b(p pVar) {
this.f7290z = null;
this.f7265A = pVar;
this.f7279n.p(true);
p pVar2 = this.f7265A;
if (pVar2 != null) {
pVar2.f7291a = new h3.d(this, 3);
pVar2.f7292b.setVisibilityListener(pVar2);
}
return this;
}
@Override // android.view.MenuItem
public final boolean collapseActionView() {
if ((this.f7289y & 8) == 0) {
return false;
}
if (this.f7290z == null) {
return true;
}
MenuItem.OnActionExpandListener onActionExpandListener = this.f7266B;
if (onActionExpandListener == null || onActionExpandListener.onMenuItemActionCollapse(this)) {
return this.f7279n.d(this);
}
return false;
}
public final Drawable d(Drawable drawable) {
if (drawable != null && this.f7287w && (this.f7285u || this.f7286v)) {
drawable = drawable.mutate();
if (this.f7285u) {
H.a.h(drawable, this.f7283s);
}
if (this.f7286v) {
H.a.i(drawable, this.f7284t);
}
this.f7287w = false;
}
return drawable;
}
public final boolean e() {
p pVar;
if ((this.f7289y & 8) != 0) {
if (this.f7290z == null && (pVar = this.f7265A) != null) {
this.f7290z = pVar.f7292b.onCreateActionView(this);
}
if (this.f7290z != null) {
return true;
}
}
return false;
}
@Override // android.view.MenuItem
public final boolean expandActionView() {
if (!e()) {
return false;
}
MenuItem.OnActionExpandListener onActionExpandListener = this.f7266B;
if (onActionExpandListener == null || onActionExpandListener.onMenuItemActionExpand(this)) {
return this.f7279n.f(this);
}
return false;
}
public final void f(boolean z3) {
this.f7288x = (z3 ? 4 : 0) | (this.f7288x & (-5));
}
public final void g(boolean z3) {
if (z3) {
this.f7288x |= 32;
} else {
this.f7288x &= -33;
}
}
@Override // android.view.MenuItem
public final ActionProvider getActionProvider() {
throw new UnsupportedOperationException("This is not supported, use MenuItemCompat.getActionProvider()");
}
@Override // android.view.MenuItem
public final View getActionView() {
View view = this.f7290z;
if (view != null) {
return view;
}
p pVar = this.f7265A;
if (pVar == null) {
return null;
}
View onCreateActionView = pVar.f7292b.onCreateActionView(this);
this.f7290z = onCreateActionView;
return onCreateActionView;
}
@Override // I.a, android.view.MenuItem
public final int getAlphabeticModifiers() {
return this.f7276k;
}
@Override // android.view.MenuItem
public final char getAlphabeticShortcut() {
return this.f7275j;
}
@Override // I.a, android.view.MenuItem
public final CharSequence getContentDescription() {
return this.f7281q;
}
@Override // android.view.MenuItem
public final int getGroupId() {
return this.f7269b;
}
@Override // android.view.MenuItem
public final Drawable getIcon() {
Drawable drawable = this.f7277l;
if (drawable != null) {
return d(drawable);
}
int i = this.f7278m;
if (i == 0) {
return null;
}
Drawable m4 = AbstractC0106b.m(this.f7279n.f7241a, i);
this.f7278m = 0;
this.f7277l = m4;
return d(m4);
}
@Override // I.a, android.view.MenuItem
public final ColorStateList getIconTintList() {
return this.f7283s;
}
@Override // I.a, android.view.MenuItem
public final PorterDuff.Mode getIconTintMode() {
return this.f7284t;
}
@Override // android.view.MenuItem
public final Intent getIntent() {
return this.f7274g;
}
@Override // android.view.MenuItem
public final int getItemId() {
return this.f7268a;
}
@Override // android.view.MenuItem
public final ContextMenu.ContextMenuInfo getMenuInfo() {
return null;
}
@Override // I.a, android.view.MenuItem
public final int getNumericModifiers() {
return this.i;
}
@Override // android.view.MenuItem
public final char getNumericShortcut() {
return this.h;
}
@Override // android.view.MenuItem
public final int getOrder() {
return this.f7270c;
}
@Override // android.view.MenuItem
public final SubMenu getSubMenu() {
return this.f7280o;
}
@Override // android.view.MenuItem
public final CharSequence getTitle() {
return this.f7272e;
}
@Override // android.view.MenuItem
public final CharSequence getTitleCondensed() {
CharSequence charSequence = this.f7273f;
return charSequence != null ? charSequence : this.f7272e;
}
@Override // I.a, android.view.MenuItem
public final CharSequence getTooltipText() {
return this.f7282r;
}
@Override // android.view.MenuItem
public final boolean hasSubMenu() {
return this.f7280o != null;
}
@Override // android.view.MenuItem
public final boolean isActionViewExpanded() {
return this.f7267C;
}
@Override // android.view.MenuItem
public final boolean isCheckable() {
return (this.f7288x & 1) == 1;
}
@Override // android.view.MenuItem
public final boolean isChecked() {
return (this.f7288x & 2) == 2;
}
@Override // android.view.MenuItem
public final boolean isEnabled() {
return (this.f7288x & 16) != 0;
}
@Override // android.view.MenuItem
public final boolean isVisible() {
p pVar = this.f7265A;
return (pVar == null || !pVar.f7292b.overridesItemVisibility()) ? (this.f7288x & 8) == 0 : (this.f7288x & 8) == 0 && this.f7265A.f7292b.isVisible();
}
@Override // android.view.MenuItem
public final MenuItem setActionProvider(ActionProvider actionProvider) {
throw new UnsupportedOperationException("This is not supported, use MenuItemCompat.setActionProvider()");
}
@Override // android.view.MenuItem
public final MenuItem setActionView(View view) {
int i;
this.f7290z = view;
this.f7265A = null;
if (view != null && view.getId() == -1 && (i = this.f7268a) > 0) {
view.setId(i);
}
m mVar = this.f7279n;
mVar.f7249k = true;
mVar.p(true);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setAlphabeticShortcut(char c4) {
if (this.f7275j == c4) {
return this;
}
this.f7275j = Character.toLowerCase(c4);
this.f7279n.p(false);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setCheckable(boolean z3) {
int i = this.f7288x;
int i4 = (z3 ? 1 : 0) | (i & (-2));
this.f7288x = i4;
if (i != i4) {
this.f7279n.p(false);
}
return this;
}
@Override // android.view.MenuItem
public final MenuItem setChecked(boolean z3) {
int i = this.f7288x;
if ((i & 4) == 0) {
int i4 = (i & (-3)) | (z3 ? 2 : 0);
this.f7288x = i4;
if (i != i4) {
this.f7279n.p(false);
}
return this;
}
m mVar = this.f7279n;
mVar.getClass();
ArrayList arrayList = mVar.f7246f;
int size = arrayList.size();
mVar.w();
for (int i5 = 0; i5 < size; i5++) {
o oVar = (o) arrayList.get(i5);
if (oVar.f7269b == this.f7269b && (oVar.f7288x & 4) != 0 && oVar.isCheckable()) {
boolean z4 = oVar == this;
int i6 = oVar.f7288x;
int i7 = (z4 ? 2 : 0) | (i6 & (-3));
oVar.f7288x = i7;
if (i6 != i7) {
oVar.f7279n.p(false);
}
}
}
mVar.v();
return this;
}
@Override // android.view.MenuItem
public final /* bridge */ /* synthetic */ MenuItem setContentDescription(CharSequence charSequence) {
setContentDescription(charSequence);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setEnabled(boolean z3) {
if (z3) {
this.f7288x |= 16;
} else {
this.f7288x &= -17;
}
this.f7279n.p(false);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setIcon(Drawable drawable) {
this.f7278m = 0;
this.f7277l = drawable;
this.f7287w = true;
this.f7279n.p(false);
return this;
}
@Override // I.a, android.view.MenuItem
public final MenuItem setIconTintList(ColorStateList colorStateList) {
this.f7283s = colorStateList;
this.f7285u = true;
this.f7287w = true;
this.f7279n.p(false);
return this;
}
@Override // I.a, android.view.MenuItem
public final MenuItem setIconTintMode(PorterDuff.Mode mode) {
this.f7284t = mode;
this.f7286v = true;
this.f7287w = true;
this.f7279n.p(false);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setIntent(Intent intent) {
this.f7274g = intent;
return this;
}
@Override // android.view.MenuItem
public final MenuItem setNumericShortcut(char c4) {
if (this.h == c4) {
return this;
}
this.h = c4;
this.f7279n.p(false);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setOnActionExpandListener(MenuItem.OnActionExpandListener onActionExpandListener) {
this.f7266B = onActionExpandListener;
return this;
}
@Override // android.view.MenuItem
public final MenuItem setOnMenuItemClickListener(MenuItem.OnMenuItemClickListener onMenuItemClickListener) {
this.p = onMenuItemClickListener;
return this;
}
@Override // android.view.MenuItem
public final MenuItem setShortcut(char c4, char c5) {
this.h = c4;
this.f7275j = Character.toLowerCase(c5);
this.f7279n.p(false);
return this;
}
@Override // android.view.MenuItem
public final void setShowAsAction(int i) {
int i4 = i & 3;
if (i4 != 0 && i4 != 1 && i4 != 2) {
throw new IllegalArgumentException("SHOW_AS_ACTION_ALWAYS, SHOW_AS_ACTION_IF_ROOM, and SHOW_AS_ACTION_NEVER are mutually exclusive.");
}
this.f7289y = i;
m mVar = this.f7279n;
mVar.f7249k = true;
mVar.p(true);
}
@Override // android.view.MenuItem
public final MenuItem setShowAsActionFlags(int i) {
setShowAsAction(i);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setTitle(CharSequence charSequence) {
this.f7272e = charSequence;
this.f7279n.p(false);
SubMenuC0422E subMenuC0422E = this.f7280o;
if (subMenuC0422E != null) {
subMenuC0422E.setHeaderTitle(charSequence);
}
return this;
}
@Override // android.view.MenuItem
public final MenuItem setTitleCondensed(CharSequence charSequence) {
this.f7273f = charSequence;
this.f7279n.p(false);
return this;
}
@Override // android.view.MenuItem
public final /* bridge */ /* synthetic */ MenuItem setTooltipText(CharSequence charSequence) {
setTooltipText(charSequence);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setVisible(boolean z3) {
int i = this.f7288x;
int i4 = (z3 ? 0 : 8) | (i & (-9));
this.f7288x = i4;
if (i != i4) {
m mVar = this.f7279n;
mVar.h = true;
mVar.p(true);
}
return this;
}
public final String toString() {
CharSequence charSequence = this.f7272e;
if (charSequence != null) {
return charSequence.toString();
}
return null;
}
@Override // I.a, android.view.MenuItem
public final I.a setContentDescription(CharSequence charSequence) {
this.f7281q = charSequence;
this.f7279n.p(false);
return this;
}
@Override // I.a, android.view.MenuItem
public final I.a setTooltipText(CharSequence charSequence) {
this.f7282r = charSequence;
this.f7279n.p(false);
return this;
}
@Override // I.a, android.view.MenuItem
public final MenuItem setAlphabeticShortcut(char c4, int i) {
if (this.f7275j == c4 && this.f7276k == i) {
return this;
}
this.f7275j = Character.toLowerCase(c4);
this.f7276k = KeyEvent.normalizeMetaState(i);
this.f7279n.p(false);
return this;
}
@Override // I.a, android.view.MenuItem
public final MenuItem setNumericShortcut(char c4, int i) {
if (this.h == c4 && this.i == i) {
return this;
}
this.h = c4;
this.i = KeyEvent.normalizeMetaState(i);
this.f7279n.p(false);
return this;
}
@Override // I.a, android.view.MenuItem
public final MenuItem setShortcut(char c4, char c5, int i, int i4) {
this.h = c4;
this.i = KeyEvent.normalizeMetaState(i);
this.f7275j = Character.toLowerCase(c5);
this.f7276k = KeyEvent.normalizeMetaState(i4);
this.f7279n.p(false);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setIcon(int i) {
this.f7277l = null;
this.f7278m = i;
this.f7287w = true;
this.f7279n.p(false);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setTitle(int i) {
setTitle(this.f7279n.f7241a.getString(i));
return this;
}
@Override // android.view.MenuItem
public final MenuItem setActionView(int i) {
int i4;
Context context = this.f7279n.f7241a;
View inflate = LayoutInflater.from(context).inflate(i, (ViewGroup) new LinearLayout(context), false);
this.f7290z = inflate;
this.f7265A = null;
if (inflate != null && inflate.getId() == -1 && (i4 = this.f7268a) > 0) {
inflate.setId(i4);
}
m mVar = this.f7279n;
mVar.f7249k = true;
mVar.p(true);
return this;
}
}

View File

@@ -0,0 +1,31 @@
package l;
import android.view.ActionProvider;
/* loaded from: classes.dex */
public final class p implements ActionProvider.VisibilityListener {
/* renamed from: a, reason: collision with root package name */
public h3.d f7291a;
/* renamed from: b, reason: collision with root package name */
public final ActionProvider f7292b;
/* renamed from: c, reason: collision with root package name */
public final /* synthetic */ t f7293c;
public p(t tVar, ActionProvider actionProvider) {
this.f7293c = tVar;
this.f7292b = actionProvider;
}
@Override // android.view.ActionProvider.VisibilityListener
public final void onActionProviderVisibilityChanged(boolean z3) {
h3.d dVar = this.f7291a;
if (dVar != null) {
m mVar = ((o) dVar.f6791b).f7279n;
mVar.h = true;
mVar.p(true);
}
}
}

View File

@@ -0,0 +1,20 @@
package l;
import android.view.CollapsibleActionView;
import android.view.View;
import android.widget.FrameLayout;
import k.InterfaceC0406c;
/* loaded from: classes.dex */
public final class q extends FrameLayout implements InterfaceC0406c {
/* renamed from: a, reason: collision with root package name */
public final CollapsibleActionView f7294a;
/* JADX WARN: Multi-variable type inference failed */
public q(View view) {
super(view.getContext());
this.f7294a = (CollapsibleActionView) view;
addView(view);
}
}

View File

@@ -0,0 +1,28 @@
package l;
import android.view.MenuItem;
/* loaded from: classes.dex */
public final class r implements MenuItem.OnActionExpandListener {
/* renamed from: a, reason: collision with root package name */
public final MenuItem.OnActionExpandListener f7295a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ t f7296b;
public r(t tVar, MenuItem.OnActionExpandListener onActionExpandListener) {
this.f7296b = tVar;
this.f7295a = onActionExpandListener;
}
@Override // android.view.MenuItem.OnActionExpandListener
public final boolean onMenuItemActionCollapse(MenuItem menuItem) {
return this.f7295a.onMenuItemActionCollapse(this.f7296b.f(menuItem));
}
@Override // android.view.MenuItem.OnActionExpandListener
public final boolean onMenuItemActionExpand(MenuItem menuItem) {
return this.f7295a.onMenuItemActionExpand(this.f7296b.f(menuItem));
}
}

View File

@@ -0,0 +1,23 @@
package l;
import android.view.MenuItem;
/* loaded from: classes.dex */
public final class s implements MenuItem.OnMenuItemClickListener {
/* renamed from: a, reason: collision with root package name */
public final MenuItem.OnMenuItemClickListener f7297a;
/* renamed from: b, reason: collision with root package name */
public final /* synthetic */ t f7298b;
public s(t tVar, MenuItem.OnMenuItemClickListener onMenuItemClickListener) {
this.f7298b = tVar;
this.f7297a = onMenuItemClickListener;
}
@Override // android.view.MenuItem.OnMenuItemClickListener
public final boolean onMenuItemClick(MenuItem menuItem) {
return this.f7297a.onMenuItemClick(this.f7298b.f(menuItem));
}
}

View File

@@ -0,0 +1,345 @@
package l;
import android.content.Context;
import android.content.Intent;
import android.content.res.ColorStateList;
import android.graphics.PorterDuff;
import android.graphics.drawable.Drawable;
import android.view.ActionProvider;
import android.view.CollapsibleActionView;
import android.view.ContextMenu;
import android.view.MenuItem;
import android.view.SubMenu;
import android.view.View;
import g.AbstractC0348B;
import java.lang.reflect.Method;
/* loaded from: classes.dex */
public final class t extends AbstractC0348B implements MenuItem {
/* renamed from: c, reason: collision with root package name */
public final I.a f7299c;
/* renamed from: d, reason: collision with root package name */
public Method f7300d;
public t(Context context, I.a aVar) {
super(context);
if (aVar == null) {
throw new IllegalArgumentException("Wrapped Object can not be null.");
}
this.f7299c = aVar;
}
@Override // android.view.MenuItem
public final boolean collapseActionView() {
return this.f7299c.collapseActionView();
}
@Override // android.view.MenuItem
public final boolean expandActionView() {
return this.f7299c.expandActionView();
}
@Override // android.view.MenuItem
public final ActionProvider getActionProvider() {
p a2 = this.f7299c.a();
if (a2 != null) {
return a2.f7292b;
}
return null;
}
@Override // android.view.MenuItem
public final View getActionView() {
View actionView = this.f7299c.getActionView();
return actionView instanceof q ? (View) ((q) actionView).f7294a : actionView;
}
@Override // android.view.MenuItem
public final int getAlphabeticModifiers() {
return this.f7299c.getAlphabeticModifiers();
}
@Override // android.view.MenuItem
public final char getAlphabeticShortcut() {
return this.f7299c.getAlphabeticShortcut();
}
@Override // android.view.MenuItem
public final CharSequence getContentDescription() {
return this.f7299c.getContentDescription();
}
@Override // android.view.MenuItem
public final int getGroupId() {
return this.f7299c.getGroupId();
}
@Override // android.view.MenuItem
public final Drawable getIcon() {
return this.f7299c.getIcon();
}
@Override // android.view.MenuItem
public final ColorStateList getIconTintList() {
return this.f7299c.getIconTintList();
}
@Override // android.view.MenuItem
public final PorterDuff.Mode getIconTintMode() {
return this.f7299c.getIconTintMode();
}
@Override // android.view.MenuItem
public final Intent getIntent() {
return this.f7299c.getIntent();
}
@Override // android.view.MenuItem
public final int getItemId() {
return this.f7299c.getItemId();
}
@Override // android.view.MenuItem
public final ContextMenu.ContextMenuInfo getMenuInfo() {
return this.f7299c.getMenuInfo();
}
@Override // android.view.MenuItem
public final int getNumericModifiers() {
return this.f7299c.getNumericModifiers();
}
@Override // android.view.MenuItem
public final char getNumericShortcut() {
return this.f7299c.getNumericShortcut();
}
@Override // android.view.MenuItem
public final int getOrder() {
return this.f7299c.getOrder();
}
@Override // android.view.MenuItem
public final SubMenu getSubMenu() {
return this.f7299c.getSubMenu();
}
@Override // android.view.MenuItem
public final CharSequence getTitle() {
return this.f7299c.getTitle();
}
@Override // android.view.MenuItem
public final CharSequence getTitleCondensed() {
return this.f7299c.getTitleCondensed();
}
@Override // android.view.MenuItem
public final CharSequence getTooltipText() {
return this.f7299c.getTooltipText();
}
@Override // android.view.MenuItem
public final boolean hasSubMenu() {
return this.f7299c.hasSubMenu();
}
@Override // android.view.MenuItem
public final boolean isActionViewExpanded() {
return this.f7299c.isActionViewExpanded();
}
@Override // android.view.MenuItem
public final boolean isCheckable() {
return this.f7299c.isCheckable();
}
@Override // android.view.MenuItem
public final boolean isChecked() {
return this.f7299c.isChecked();
}
@Override // android.view.MenuItem
public final boolean isEnabled() {
return this.f7299c.isEnabled();
}
@Override // android.view.MenuItem
public final boolean isVisible() {
return this.f7299c.isVisible();
}
@Override // android.view.MenuItem
public final MenuItem setActionProvider(ActionProvider actionProvider) {
p pVar = new p(this, actionProvider);
if (actionProvider == null) {
pVar = null;
}
this.f7299c.b(pVar);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setActionView(View view) {
if (view instanceof CollapsibleActionView) {
view = new q(view);
}
this.f7299c.setActionView(view);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setAlphabeticShortcut(char c4) {
this.f7299c.setAlphabeticShortcut(c4);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setCheckable(boolean z3) {
this.f7299c.setCheckable(z3);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setChecked(boolean z3) {
this.f7299c.setChecked(z3);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setContentDescription(CharSequence charSequence) {
this.f7299c.setContentDescription(charSequence);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setEnabled(boolean z3) {
this.f7299c.setEnabled(z3);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setIcon(Drawable drawable) {
this.f7299c.setIcon(drawable);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setIconTintList(ColorStateList colorStateList) {
this.f7299c.setIconTintList(colorStateList);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setIconTintMode(PorterDuff.Mode mode) {
this.f7299c.setIconTintMode(mode);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setIntent(Intent intent) {
this.f7299c.setIntent(intent);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setNumericShortcut(char c4) {
this.f7299c.setNumericShortcut(c4);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setOnActionExpandListener(MenuItem.OnActionExpandListener onActionExpandListener) {
this.f7299c.setOnActionExpandListener(onActionExpandListener != null ? new r(this, onActionExpandListener) : null);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setOnMenuItemClickListener(MenuItem.OnMenuItemClickListener onMenuItemClickListener) {
this.f7299c.setOnMenuItemClickListener(onMenuItemClickListener != null ? new s(this, onMenuItemClickListener) : null);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setShortcut(char c4, char c5) {
this.f7299c.setShortcut(c4, c5);
return this;
}
@Override // android.view.MenuItem
public final void setShowAsAction(int i) {
this.f7299c.setShowAsAction(i);
}
@Override // android.view.MenuItem
public final MenuItem setShowAsActionFlags(int i) {
this.f7299c.setShowAsActionFlags(i);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setTitle(CharSequence charSequence) {
this.f7299c.setTitle(charSequence);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setTitleCondensed(CharSequence charSequence) {
this.f7299c.setTitleCondensed(charSequence);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setTooltipText(CharSequence charSequence) {
this.f7299c.setTooltipText(charSequence);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setVisible(boolean z3) {
return this.f7299c.setVisible(z3);
}
@Override // android.view.MenuItem
public final MenuItem setAlphabeticShortcut(char c4, int i) {
this.f7299c.setAlphabeticShortcut(c4, i);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setIcon(int i) {
this.f7299c.setIcon(i);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setNumericShortcut(char c4, int i) {
this.f7299c.setNumericShortcut(c4, i);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setShortcut(char c4, char c5, int i, int i4) {
this.f7299c.setShortcut(c4, c5, i, i4);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setTitle(int i) {
this.f7299c.setTitle(i);
return this;
}
@Override // android.view.MenuItem
public final MenuItem setActionView(int i) {
I.a aVar = this.f7299c;
aVar.setActionView(i);
View actionView = aVar.getActionView();
if (actionView instanceof CollapsibleActionView) {
aVar.setActionView(new q(actionView));
}
return this;
}
}

View File

@@ -0,0 +1,100 @@
package l;
import android.content.Context;
import android.graphics.Rect;
import android.view.MenuItem;
import android.view.View;
import android.widget.AdapterView;
import android.widget.FrameLayout;
import android.widget.HeaderViewListAdapter;
import android.widget.ListAdapter;
import android.widget.PopupWindow;
/* loaded from: classes.dex */
public abstract class u implements InterfaceC0420C, y, AdapterView.OnItemClickListener {
/* renamed from: a, reason: collision with root package name */
public Rect f7301a;
public static int o(ListAdapter listAdapter, Context context, int i) {
int makeMeasureSpec = View.MeasureSpec.makeMeasureSpec(0, 0);
int makeMeasureSpec2 = View.MeasureSpec.makeMeasureSpec(0, 0);
int count = listAdapter.getCount();
int i4 = 0;
int i5 = 0;
FrameLayout frameLayout = null;
View view = null;
for (int i6 = 0; i6 < count; i6++) {
int itemViewType = listAdapter.getItemViewType(i6);
if (itemViewType != i5) {
view = null;
i5 = itemViewType;
}
if (frameLayout == null) {
frameLayout = new FrameLayout(context);
}
view = listAdapter.getView(i6, view, frameLayout);
view.measure(makeMeasureSpec, makeMeasureSpec2);
int measuredWidth = view.getMeasuredWidth();
if (measuredWidth >= i) {
return i;
}
if (measuredWidth > i4) {
i4 = measuredWidth;
}
}
return i4;
}
public static boolean w(m mVar) {
int size = mVar.f7246f.size();
for (int i = 0; i < size; i++) {
MenuItem item = mVar.getItem(i);
if (item.isVisible() && item.getIcon() != null) {
return true;
}
}
return false;
}
@Override // l.y
public final boolean g(o oVar) {
return false;
}
@Override // l.y
public final int getId() {
return 0;
}
@Override // l.y
public final void i(Context context, m mVar) {
}
@Override // l.y
public final boolean m(o oVar) {
return false;
}
public abstract void n(m mVar);
@Override // android.widget.AdapterView.OnItemClickListener
public final void onItemClick(AdapterView adapterView, View view, int i, long j4) {
ListAdapter listAdapter = (ListAdapter) adapterView.getAdapter();
(listAdapter instanceof HeaderViewListAdapter ? (C0432j) ((HeaderViewListAdapter) listAdapter).getWrappedAdapter() : (C0432j) listAdapter).f7234a.q((MenuItem) listAdapter.getItem(i), this, !(this instanceof ViewOnKeyListenerC0429g) ? 0 : 4);
}
public abstract void p(View view);
public abstract void q(boolean z3);
public abstract void r(int i);
public abstract void s(int i);
public abstract void t(PopupWindow.OnDismissListener onDismissListener);
public abstract void u(boolean z3);
public abstract void v(int i);
}

View File

@@ -0,0 +1,19 @@
package l;
import android.widget.PopupWindow;
/* loaded from: classes.dex */
public final class v implements PopupWindow.OnDismissListener {
/* renamed from: a, reason: collision with root package name */
public final /* synthetic */ w f7302a;
public v(w wVar) {
this.f7302a = wVar;
}
@Override // android.widget.PopupWindow.OnDismissListener
public final void onDismiss() {
this.f7302a.c();
}
}

View File

@@ -0,0 +1,105 @@
package l;
import android.content.Context;
import android.graphics.Point;
import android.graphics.Rect;
import android.view.Display;
import android.view.Gravity;
import android.view.View;
import android.view.WindowManager;
import com.adif.elcanomovil.R;
/* loaded from: classes.dex */
public class w {
/* renamed from: a, reason: collision with root package name */
public final Context f7303a;
/* renamed from: b, reason: collision with root package name */
public final m f7304b;
/* renamed from: c, reason: collision with root package name */
public final boolean f7305c;
/* renamed from: d, reason: collision with root package name */
public final int f7306d;
/* renamed from: e, reason: collision with root package name */
public View f7307e;
/* renamed from: g, reason: collision with root package name */
public boolean f7309g;
public x h;
public u i;
/* renamed from: j, reason: collision with root package name */
public v f7310j;
/* renamed from: f, reason: collision with root package name */
public int f7308f = 8388611;
/* renamed from: k, reason: collision with root package name */
public final v f7311k = new v(this);
public w(int i, Context context, View view, m mVar, boolean z3) {
this.f7303a = context;
this.f7304b = mVar;
this.f7307e = view;
this.f7305c = z3;
this.f7306d = i;
}
public final u a() {
u viewOnKeyListenerC0421D;
if (this.i == null) {
Context context = this.f7303a;
Display defaultDisplay = ((WindowManager) context.getSystemService("window")).getDefaultDisplay();
Point point = new Point();
defaultDisplay.getRealSize(point);
if (Math.min(point.x, point.y) >= context.getResources().getDimensionPixelSize(R.dimen.abc_cascading_menus_min_smallest_width)) {
viewOnKeyListenerC0421D = new ViewOnKeyListenerC0429g(context, this.f7307e, this.f7306d, this.f7305c);
} else {
View view = this.f7307e;
Context context2 = this.f7303a;
boolean z3 = this.f7305c;
viewOnKeyListenerC0421D = new ViewOnKeyListenerC0421D(this.f7306d, context2, view, this.f7304b, z3);
}
viewOnKeyListenerC0421D.n(this.f7304b);
viewOnKeyListenerC0421D.t(this.f7311k);
viewOnKeyListenerC0421D.p(this.f7307e);
viewOnKeyListenerC0421D.e(this.h);
viewOnKeyListenerC0421D.q(this.f7309g);
viewOnKeyListenerC0421D.r(this.f7308f);
this.i = viewOnKeyListenerC0421D;
}
return this.i;
}
public final boolean b() {
u uVar = this.i;
return uVar != null && uVar.a();
}
public void c() {
this.i = null;
v vVar = this.f7310j;
if (vVar != null) {
vVar.onDismiss();
}
}
public final void d(int i, int i4, boolean z3, boolean z4) {
u a2 = a();
a2.u(z4);
if (z3) {
if ((Gravity.getAbsoluteGravity(this.f7308f, this.f7307e.getLayoutDirection()) & 7) == 5) {
i -= this.f7307e.getWidth();
}
a2.s(i);
a2.v(i4);
int i5 = (int) ((this.f7303a.getResources().getDisplayMetrics().density * 48.0f) / 2.0f);
a2.f7301a = new Rect(i - i5, i4 - i5, i + i5, i4 + i5);
}
a2.c();
}
}

View File

@@ -0,0 +1,8 @@
package l;
/* loaded from: classes.dex */
public interface x {
void b(m mVar, boolean z3);
boolean f(m mVar);
}

View File

@@ -0,0 +1,29 @@
package l;
import android.content.Context;
import android.os.Parcelable;
/* loaded from: classes.dex */
public interface y {
void b(m mVar, boolean z3);
void d(Parcelable parcelable);
void e(x xVar);
boolean g(o oVar);
int getId();
void h(boolean z3);
void i(Context context, m mVar);
boolean j();
Parcelable k();
boolean l(SubMenuC0422E subMenuC0422E);
boolean m(o oVar);
}

View File

@@ -0,0 +1,8 @@
package l;
/* loaded from: classes.dex */
public interface z {
void b(o oVar);
o getItemData();
}