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

174 lines
5.4 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package o;
import android.content.Context;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.SparseArray;
import android.view.MenuItem;
import androidx.appcompat.view.menu.MenuItemImpl;
import com.google.android.material.navigation.NavigationBarItemView;
import com.google.android.material.navigation.NavigationBarMenuView;
import o.InterfaceC15933jjG;
import o.Tjw;
/* loaded from: classes2.dex */
public class QJQ implements InterfaceC15933jjG {
public int a;
private NoP c;
public boolean d = false;
public NavigationBarMenuView e;
@Override // o.InterfaceC15933jjG
public final void b(NoP noP, boolean z) {
}
@Override // o.InterfaceC15933jjG
public final void c(InterfaceC15933jjG.Sts sts) {
}
@Override // o.InterfaceC15933jjG
public final boolean c(MenuItemImpl menuItemImpl) {
return false;
}
@Override // o.InterfaceC15933jjG
public final boolean d(MenuItemImpl menuItemImpl) {
return false;
}
@Override // o.InterfaceC15933jjG
public final boolean d(SubMenuC16744qqn subMenuC16744qqn) {
return false;
}
@Override // o.InterfaceC15933jjG
public final boolean e() {
return false;
}
@Override // o.InterfaceC15933jjG
public final void a(boolean z) {
if (this.d) {
return;
}
if (z) {
this.e.c();
} else {
this.e.e();
}
}
@Override // o.InterfaceC15933jjG
public final Parcelable Kn_() {
LWm lWm = new LWm();
lWm.c = this.e.f;
SparseArray<C5745byp> sparseArray = this.e.b;
weE wee = new weE();
for (int i = 0; i < sparseArray.size(); i++) {
int keyAt = sparseArray.keyAt(i);
C5745byp valueAt = sparseArray.valueAt(i);
if (valueAt == null) {
throw new IllegalArgumentException("badgeDrawable cannot be null");
}
wee.put(keyAt, valueAt.b.n);
}
lWm.b = wee;
return lWm;
}
@Override // o.InterfaceC15933jjG
public final void Km_(Parcelable parcelable) {
if (parcelable instanceof LWm) {
NavigationBarMenuView navigationBarMenuView = this.e;
LWm lWm = (LWm) parcelable;
int i = lWm.c;
int size = navigationBarMenuView.c.size();
int i2 = 0;
while (true) {
if (i2 >= size) {
break;
}
MenuItem item = navigationBarMenuView.c.getItem(i2);
if (i == item.getItemId()) {
navigationBarMenuView.f = i;
navigationBarMenuView.h = i2;
item.setChecked(true);
break;
}
i2++;
}
Context context = this.e.getContext();
weE wee = lWm.b;
SparseArray sparseArray = new SparseArray(wee.size());
for (int i3 = 0; i3 < wee.size(); i3++) {
int keyAt = wee.keyAt(i3);
Tjw.RVV rvv = (Tjw.RVV) wee.valueAt(i3);
if (rvv == null) {
throw new IllegalArgumentException("BadgeDrawable's savedState cannot be null");
}
sparseArray.put(keyAt, new C5745byp(context, C5745byp.d, C5745byp.a, rvv));
}
NavigationBarMenuView navigationBarMenuView2 = this.e;
for (int i4 = 0; i4 < sparseArray.size(); i4++) {
int keyAt2 = sparseArray.keyAt(i4);
if (navigationBarMenuView2.b.indexOfKey(keyAt2) < 0) {
navigationBarMenuView2.b.append(keyAt2, (C5745byp) sparseArray.get(keyAt2));
}
}
NavigationBarItemView[] navigationBarItemViewArr = navigationBarMenuView2.e;
if (navigationBarItemViewArr != null) {
for (NavigationBarItemView navigationBarItemView : navigationBarItemViewArr) {
navigationBarItemView.b(navigationBarMenuView2.b.get(navigationBarItemView.getId()));
}
}
}
}
/* loaded from: classes2.dex */
static class LWm implements Parcelable {
public static final Parcelable.Creator<LWm> CREATOR = new Parcelable.Creator<LWm>() { // from class: o.QJQ.LWm.5
@Override // android.os.Parcelable.Creator
public final /* synthetic */ LWm createFromParcel(Parcel parcel) {
return new LWm(parcel);
}
@Override // android.os.Parcelable.Creator
public final /* bridge */ /* synthetic */ LWm[] newArray(int i) {
return new LWm[i];
}
};
weE b;
int c;
@Override // android.os.Parcelable
public final int describeContents() {
return 0;
}
LWm() {
}
LWm(Parcel parcel) {
this.c = parcel.readInt();
this.b = (weE) parcel.readParcelable(getClass().getClassLoader());
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
parcel.writeInt(this.c);
parcel.writeParcelable(this.b, 0);
}
}
@Override // o.InterfaceC15933jjG
public final void a(Context context, NoP noP) {
this.c = noP;
this.e.c = noP;
}
@Override // o.InterfaceC15933jjG
public final int a() {
return this.a;
}
}