NetMirror.apk
Download file
package androidx.appcompat.view.menu;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import androidx.appcompat.view.menu.k;
import java.util.ArrayList;
/* JADX INFO: loaded from: classes.dex */
public class d extends BaseAdapter {
/* JADX INFO: renamed from: b, reason: collision with root package name */
e f3521b;
/* JADX INFO: renamed from: c, reason: collision with root package name */
private int f3522c = -1;
/* JADX INFO: renamed from: d, reason: collision with root package name */
private boolean f3523d;
/* JADX INFO: renamed from: e, reason: collision with root package name */
private final boolean f3524e;
/* JADX INFO: renamed from: f, reason: collision with root package name */
private final LayoutInflater f3525f;
/* JADX INFO: renamed from: g, reason: collision with root package name */
private final int f3526g;
public d(e eVar, LayoutInflater layoutInflater, boolean z3, int i3) {
this.f3524e = z3;
this.f3525f = layoutInflater;
this.f3521b = eVar;
this.f3526g = i3;
a();
}
void a() {
g gVarV = this.f3521b.v();
if (gVarV != null) {
ArrayList arrayListZ = this.f3521b.z();
int size = arrayListZ.size();
for (int i3 = 0; i3 < size; i3++) {
if (((g) arrayListZ.get(i3)) == gVarV) {
this.f3522c = i3;
return;
}
}
}
this.f3522c = -1;
}
public e b() {
return this.f3521b;
}
@Override // android.widget.Adapter
/* JADX INFO: renamed from: c, reason: merged with bridge method [inline-methods] */
public g getItem(int i3) {
ArrayList arrayListZ = this.f3524e ? this.f3521b.z() : this.f3521b.E();
int i4 = this.f3522c;
if (i4 >= 0 && i3 >= i4) {
i3++;
}
return (g) arrayListZ.get(i3);
}
public void d(boolean z3) {
this.f3523d = z3;
}
@Override // android.widget.Adapter
public int getCount() {
return this.f3522c < 0 ? (this.f3524e ? this.f3521b.z() : this.f3521b.E()).size() : r0.size() - 1;
}
@Override // android.widget.Adapter
public long getItemId(int i3) {
return i3;
}
@Override // android.widget.Adapter
public View getView(int i3, View view, ViewGroup viewGroup) {
if (view == null) {
view = this.f3525f.inflate(this.f3526g, viewGroup, false);
}
int groupId = getItem(i3).getGroupId();
int i4 = i3 - 1;
ListMenuItemView listMenuItemView = (ListMenuItemView) view;
listMenuItemView.setGroupDividerEnabled(this.f3521b.G() && groupId != (i4 >= 0 ? getItem(i4).getGroupId() : groupId));
k.a aVar = (k.a) view;
if (this.f3523d) {
listMenuItemView.setForceShowIcon(true);
}
aVar.e(getItem(i3), 0);
return view;
}
@Override // android.widget.BaseAdapter
public void notifyDataSetChanged() {
a();
super.notifyDataSetChanged();
}
}
⚠️ This content was hidden by an advertisement filtering extension in your browser. Please disable it and reload the page to access the decompiled content.
We only display one small text ad to keep this service free. Here's what it looks like:
Read the Docs for Business: You write the docs. We do the rest.
Try it today!Ad by EthicalAds
Download file