what-the-bank/sources/o/AbstractC1032UcS.java

93 lines
2.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.view.MenuItem;
import android.view.SubMenu;
import androidx.appcompat.view.menu.MenuItemWrapperICS;
/* renamed from: o.UcS, reason: case insensitive filesystem */
/* loaded from: classes.dex */
public abstract class AbstractC1032UcS {
private DFj<twL, SubMenu> b;
private DFj<tkI, MenuItem> d;
public final Context e;
public AbstractC1032UcS(Context context) {
this.e = context;
}
public final MenuItem ex_(MenuItem menuItem) {
if (!(menuItem instanceof tkI)) {
return menuItem;
}
tkI tki = (tkI) menuItem;
if (this.d == null) {
this.d = new DFj<>();
}
MenuItem menuItem2 = this.d.get(tki);
if (menuItem2 != null) {
return menuItem2;
}
MenuItemWrapperICS menuItemWrapperICS = new MenuItemWrapperICS(this.e, tki);
this.d.put(tki, menuItemWrapperICS);
return menuItemWrapperICS;
}
public final SubMenu ey_(SubMenu subMenu) {
if (!(subMenu instanceof twL)) {
return subMenu;
}
twL twl = (twL) subMenu;
if (this.b == null) {
this.b = new DFj<>();
}
SubMenu subMenu2 = this.b.get(twl);
if (subMenu2 != null) {
return subMenu2;
}
SubMenuC17208unr subMenuC17208unr = new SubMenuC17208unr(this.e, twl);
this.b.put(twl, subMenuC17208unr);
return subMenuC17208unr;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void e() {
DFj<tkI, MenuItem> dFj = this.d;
if (dFj != null) {
dFj.clear();
}
DFj<twL, SubMenu> dFj2 = this.b;
if (dFj2 != null) {
dFj2.clear();
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void e(int i) {
if (this.d == null) {
return;
}
int i2 = 0;
while (i2 < this.d.size()) {
if (((tkI) this.d.e[i2 << 1]).getGroupId() == i) {
this.d.c(i2);
i2--;
}
i2++;
}
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void c(int i) {
if (this.d == null) {
return;
}
for (int i2 = 0; i2 < this.d.size(); i2++) {
if (((tkI) this.d.e[i2 << 1]).getItemId() == i) {
this.d.c(i2);
return;
}
}
}
}