Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
@@ -0,0 +1,241 @@
|
||||
package androidx.appcompat.view.menu;
|
||||
|
||||
import android.content.Context;
|
||||
import android.content.res.Configuration;
|
||||
import android.content.res.Resources;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.os.Parcelable;
|
||||
import android.text.TextUtils;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.View;
|
||||
import android.widget.Button;
|
||||
import f.AbstractC0336a;
|
||||
import l.AbstractC0425c;
|
||||
import l.C0424b;
|
||||
import l.InterfaceC0434l;
|
||||
import l.m;
|
||||
import l.o;
|
||||
import l.z;
|
||||
import m.InterfaceC0474m;
|
||||
import m.W;
|
||||
import m.W0;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ActionMenuItemView extends W implements z, View.OnClickListener, InterfaceC0474m {
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public o f2336g;
|
||||
public CharSequence h;
|
||||
public Drawable i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public InterfaceC0434l f2337j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public C0424b f2338k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public AbstractC0425c f2339l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public boolean f2340m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public boolean f2341n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public final int f2342o;
|
||||
public int p;
|
||||
|
||||
/* renamed from: q, reason: collision with root package name */
|
||||
public final int f2343q;
|
||||
|
||||
public ActionMenuItemView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet, 0);
|
||||
Resources resources = context.getResources();
|
||||
this.f2340m = h();
|
||||
TypedArray obtainStyledAttributes = context.obtainStyledAttributes(attributeSet, AbstractC0336a.f6424c, 0, 0);
|
||||
this.f2342o = obtainStyledAttributes.getDimensionPixelSize(0, 0);
|
||||
obtainStyledAttributes.recycle();
|
||||
this.f2343q = (int) ((resources.getDisplayMetrics().density * 32.0f) + 0.5f);
|
||||
setOnClickListener(this);
|
||||
this.p = -1;
|
||||
setSaveEnabled(false);
|
||||
}
|
||||
|
||||
@Override // m.InterfaceC0474m
|
||||
public final boolean a() {
|
||||
return !TextUtils.isEmpty(getText());
|
||||
}
|
||||
|
||||
@Override // l.z
|
||||
public final void b(o oVar) {
|
||||
this.f2336g = oVar;
|
||||
setIcon(oVar.getIcon());
|
||||
setTitle(oVar.getTitleCondensed());
|
||||
setId(oVar.f7268a);
|
||||
setVisibility(oVar.isVisible() ? 0 : 8);
|
||||
setEnabled(oVar.isEnabled());
|
||||
if (oVar.hasSubMenu() && this.f2338k == null) {
|
||||
this.f2338k = new C0424b(this);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // m.InterfaceC0474m
|
||||
public final boolean c() {
|
||||
return !TextUtils.isEmpty(getText()) && this.f2336g.getIcon() == null;
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public CharSequence getAccessibilityClassName() {
|
||||
return Button.class.getName();
|
||||
}
|
||||
|
||||
@Override // l.z
|
||||
public o getItemData() {
|
||||
return this.f2336g;
|
||||
}
|
||||
|
||||
public final boolean h() {
|
||||
Configuration configuration = getContext().getResources().getConfiguration();
|
||||
int i = configuration.screenWidthDp;
|
||||
int i4 = configuration.screenHeightDp;
|
||||
if (i < 480) {
|
||||
return (i >= 640 && i4 >= 480) || configuration.orientation == 2;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public final void i() {
|
||||
boolean z3 = true;
|
||||
boolean z4 = !TextUtils.isEmpty(this.h);
|
||||
if (this.i != null && ((this.f2336g.f7289y & 4) != 4 || (!this.f2340m && !this.f2341n))) {
|
||||
z3 = false;
|
||||
}
|
||||
boolean z5 = z4 & z3;
|
||||
setText(z5 ? this.h : null);
|
||||
CharSequence charSequence = this.f2336g.f7281q;
|
||||
if (TextUtils.isEmpty(charSequence)) {
|
||||
setContentDescription(z5 ? null : this.f2336g.f7272e);
|
||||
} else {
|
||||
setContentDescription(charSequence);
|
||||
}
|
||||
CharSequence charSequence2 = this.f2336g.f7282r;
|
||||
if (TextUtils.isEmpty(charSequence2)) {
|
||||
W0.a(this, z5 ? null : this.f2336g.f7272e);
|
||||
} else {
|
||||
W0.a(this, charSequence2);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.view.View.OnClickListener
|
||||
public final void onClick(View view) {
|
||||
InterfaceC0434l interfaceC0434l = this.f2337j;
|
||||
if (interfaceC0434l != null) {
|
||||
interfaceC0434l.c(this.f2336g);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public final void onConfigurationChanged(Configuration configuration) {
|
||||
super.onConfigurationChanged(configuration);
|
||||
this.f2340m = h();
|
||||
i();
|
||||
}
|
||||
|
||||
@Override // m.W, android.widget.TextView, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
int i5;
|
||||
boolean isEmpty = TextUtils.isEmpty(getText());
|
||||
if (!isEmpty && (i5 = this.p) >= 0) {
|
||||
super.setPadding(i5, getPaddingTop(), getPaddingRight(), getPaddingBottom());
|
||||
}
|
||||
super.onMeasure(i, i4);
|
||||
int mode = View.MeasureSpec.getMode(i);
|
||||
int size = View.MeasureSpec.getSize(i);
|
||||
int measuredWidth = getMeasuredWidth();
|
||||
int i6 = this.f2342o;
|
||||
int min = mode == Integer.MIN_VALUE ? Math.min(size, i6) : i6;
|
||||
if (mode != 1073741824 && i6 > 0 && measuredWidth < min) {
|
||||
super.onMeasure(View.MeasureSpec.makeMeasureSpec(min, 1073741824), i4);
|
||||
}
|
||||
if (!isEmpty || this.i == null) {
|
||||
return;
|
||||
}
|
||||
super.setPadding((getMeasuredWidth() - this.i.getBounds().width()) / 2, getPaddingTop(), getPaddingRight(), getPaddingBottom());
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public final void onRestoreInstanceState(Parcelable parcelable) {
|
||||
super.onRestoreInstanceState(null);
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public final boolean onTouchEvent(MotionEvent motionEvent) {
|
||||
C0424b c0424b;
|
||||
if (this.f2336g.hasSubMenu() && (c0424b = this.f2338k) != null && c0424b.onTouch(this, motionEvent)) {
|
||||
return true;
|
||||
}
|
||||
return super.onTouchEvent(motionEvent);
|
||||
}
|
||||
|
||||
public void setCheckable(boolean z3) {
|
||||
}
|
||||
|
||||
public void setChecked(boolean z3) {
|
||||
}
|
||||
|
||||
public void setExpandedFormat(boolean z3) {
|
||||
if (this.f2341n != z3) {
|
||||
this.f2341n = z3;
|
||||
o oVar = this.f2336g;
|
||||
if (oVar != null) {
|
||||
m mVar = oVar.f7279n;
|
||||
mVar.f7249k = true;
|
||||
mVar.p(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setIcon(Drawable drawable) {
|
||||
this.i = drawable;
|
||||
if (drawable != null) {
|
||||
int intrinsicWidth = drawable.getIntrinsicWidth();
|
||||
int intrinsicHeight = drawable.getIntrinsicHeight();
|
||||
int i = this.f2343q;
|
||||
if (intrinsicWidth > i) {
|
||||
intrinsicHeight = (int) (intrinsicHeight * (i / intrinsicWidth));
|
||||
intrinsicWidth = i;
|
||||
}
|
||||
if (intrinsicHeight > i) {
|
||||
intrinsicWidth = (int) (intrinsicWidth * (i / intrinsicHeight));
|
||||
} else {
|
||||
i = intrinsicHeight;
|
||||
}
|
||||
drawable.setBounds(0, 0, intrinsicWidth, i);
|
||||
}
|
||||
setCompoundDrawables(drawable, null, null, null);
|
||||
i();
|
||||
}
|
||||
|
||||
public void setItemInvoker(InterfaceC0434l interfaceC0434l) {
|
||||
this.f2337j = interfaceC0434l;
|
||||
}
|
||||
|
||||
@Override // android.widget.TextView, android.view.View
|
||||
public final void setPadding(int i, int i4, int i5, int i6) {
|
||||
this.p = i;
|
||||
super.setPadding(i, i4, i5, i6);
|
||||
}
|
||||
|
||||
public void setPopupCallback(AbstractC0425c abstractC0425c) {
|
||||
this.f2339l = abstractC0425c;
|
||||
}
|
||||
|
||||
public void setTitle(CharSequence charSequence) {
|
||||
this.h = charSequence;
|
||||
i();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package androidx.appcompat.view.menu;
|
||||
|
||||
import R0.h;
|
||||
import android.R;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.View;
|
||||
import android.widget.AdapterView;
|
||||
import android.widget.ListView;
|
||||
import l.InterfaceC0418A;
|
||||
import l.InterfaceC0434l;
|
||||
import l.m;
|
||||
import l.o;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public final class ExpandedMenuView extends ListView implements InterfaceC0434l, InterfaceC0418A, AdapterView.OnItemClickListener {
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public static final int[] f2344b = {R.attr.background, R.attr.divider};
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public m f2345a;
|
||||
|
||||
public ExpandedMenuView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
setOnItemClickListener(this);
|
||||
h l4 = h.l(context, attributeSet, f2344b, R.attr.listViewStyle);
|
||||
TypedArray typedArray = (TypedArray) l4.f1414b;
|
||||
if (typedArray.hasValue(0)) {
|
||||
setBackgroundDrawable(l4.f(0));
|
||||
}
|
||||
if (typedArray.hasValue(1)) {
|
||||
setDivider(l4.f(1));
|
||||
}
|
||||
l4.n();
|
||||
}
|
||||
|
||||
@Override // l.InterfaceC0418A
|
||||
public final void a(m mVar) {
|
||||
this.f2345a = mVar;
|
||||
}
|
||||
|
||||
@Override // l.InterfaceC0434l
|
||||
public final boolean c(o oVar) {
|
||||
return this.f2345a.q(oVar, null, 0);
|
||||
}
|
||||
|
||||
public int getWindowAnimations() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override // android.widget.ListView, android.widget.AbsListView, android.widget.AdapterView, android.view.ViewGroup, android.view.View
|
||||
public final void onDetachedFromWindow() {
|
||||
super.onDetachedFromWindow();
|
||||
setChildrenDrawingCacheEnabled(false);
|
||||
}
|
||||
|
||||
@Override // android.widget.AdapterView.OnItemClickListener
|
||||
public final void onItemClick(AdapterView adapterView, View view, int i, long j4) {
|
||||
c((o) getAdapter().getItem(i));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,310 @@
|
||||
package androidx.appcompat.view.menu;
|
||||
|
||||
import R0.h;
|
||||
import android.content.Context;
|
||||
import android.content.res.TypedArray;
|
||||
import android.graphics.Rect;
|
||||
import android.graphics.drawable.Drawable;
|
||||
import android.util.AttributeSet;
|
||||
import android.view.LayoutInflater;
|
||||
import android.view.View;
|
||||
import android.view.ViewGroup;
|
||||
import android.widget.AbsListView;
|
||||
import android.widget.CheckBox;
|
||||
import android.widget.CompoundButton;
|
||||
import android.widget.ImageView;
|
||||
import android.widget.LinearLayout;
|
||||
import android.widget.RadioButton;
|
||||
import android.widget.TextView;
|
||||
import com.adif.elcanomovil.R;
|
||||
import f.AbstractC0336a;
|
||||
import l.o;
|
||||
import l.z;
|
||||
|
||||
/* loaded from: classes.dex */
|
||||
public class ListMenuItemView extends LinearLayout implements z, AbsListView.SelectionBoundsAdjuster {
|
||||
|
||||
/* renamed from: a, reason: collision with root package name */
|
||||
public o f2346a;
|
||||
|
||||
/* renamed from: b, reason: collision with root package name */
|
||||
public ImageView f2347b;
|
||||
|
||||
/* renamed from: c, reason: collision with root package name */
|
||||
public RadioButton f2348c;
|
||||
|
||||
/* renamed from: d, reason: collision with root package name */
|
||||
public TextView f2349d;
|
||||
|
||||
/* renamed from: e, reason: collision with root package name */
|
||||
public CheckBox f2350e;
|
||||
|
||||
/* renamed from: f, reason: collision with root package name */
|
||||
public TextView f2351f;
|
||||
|
||||
/* renamed from: g, reason: collision with root package name */
|
||||
public ImageView f2352g;
|
||||
public ImageView h;
|
||||
public LinearLayout i;
|
||||
|
||||
/* renamed from: j, reason: collision with root package name */
|
||||
public final Drawable f2353j;
|
||||
|
||||
/* renamed from: k, reason: collision with root package name */
|
||||
public final int f2354k;
|
||||
|
||||
/* renamed from: l, reason: collision with root package name */
|
||||
public final Context f2355l;
|
||||
|
||||
/* renamed from: m, reason: collision with root package name */
|
||||
public boolean f2356m;
|
||||
|
||||
/* renamed from: n, reason: collision with root package name */
|
||||
public final Drawable f2357n;
|
||||
|
||||
/* renamed from: o, reason: collision with root package name */
|
||||
public final boolean f2358o;
|
||||
public LayoutInflater p;
|
||||
|
||||
/* renamed from: q, reason: collision with root package name */
|
||||
public boolean f2359q;
|
||||
|
||||
public ListMenuItemView(Context context, AttributeSet attributeSet) {
|
||||
super(context, attributeSet);
|
||||
h l4 = h.l(getContext(), attributeSet, AbstractC0336a.f6436r, R.attr.listMenuViewStyle);
|
||||
this.f2353j = l4.f(5);
|
||||
TypedArray typedArray = (TypedArray) l4.f1414b;
|
||||
this.f2354k = typedArray.getResourceId(1, -1);
|
||||
this.f2356m = typedArray.getBoolean(7, false);
|
||||
this.f2355l = context;
|
||||
this.f2357n = l4.f(8);
|
||||
TypedArray obtainStyledAttributes = context.getTheme().obtainStyledAttributes(null, new int[]{android.R.attr.divider}, R.attr.dropDownListViewStyle, 0);
|
||||
this.f2358o = obtainStyledAttributes.hasValue(0);
|
||||
l4.n();
|
||||
obtainStyledAttributes.recycle();
|
||||
}
|
||||
|
||||
private LayoutInflater getInflater() {
|
||||
if (this.p == null) {
|
||||
this.p = LayoutInflater.from(getContext());
|
||||
}
|
||||
return this.p;
|
||||
}
|
||||
|
||||
private void setSubMenuArrowVisible(boolean z3) {
|
||||
ImageView imageView = this.f2352g;
|
||||
if (imageView != null) {
|
||||
imageView.setVisibility(z3 ? 0 : 8);
|
||||
}
|
||||
}
|
||||
|
||||
@Override // android.widget.AbsListView.SelectionBoundsAdjuster
|
||||
public final void adjustListItemSelectionBounds(Rect rect) {
|
||||
ImageView imageView = this.h;
|
||||
if (imageView == null || imageView.getVisibility() != 0) {
|
||||
return;
|
||||
}
|
||||
LinearLayout.LayoutParams layoutParams = (LinearLayout.LayoutParams) this.h.getLayoutParams();
|
||||
rect.top = this.h.getHeight() + layoutParams.topMargin + layoutParams.bottomMargin + rect.top;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:20:0x005b, code lost:
|
||||
|
||||
if (r0 == false) goto L28;
|
||||
*/
|
||||
/* JADX WARN: Removed duplicated region for block: B:13:0x003f */
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x0061 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:49:0x0125 */
|
||||
@Override // l.z
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final void b(l.o r11) {
|
||||
/*
|
||||
Method dump skipped, instructions count: 325
|
||||
To view this dump add '--comments-level debug' option
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: androidx.appcompat.view.menu.ListMenuItemView.b(l.o):void");
|
||||
}
|
||||
|
||||
@Override // l.z
|
||||
public o getItemData() {
|
||||
return this.f2346a;
|
||||
}
|
||||
|
||||
@Override // android.view.View
|
||||
public final void onFinishInflate() {
|
||||
super.onFinishInflate();
|
||||
setBackground(this.f2353j);
|
||||
TextView textView = (TextView) findViewById(R.id.title);
|
||||
this.f2349d = textView;
|
||||
int i = this.f2354k;
|
||||
if (i != -1) {
|
||||
textView.setTextAppearance(this.f2355l, i);
|
||||
}
|
||||
this.f2351f = (TextView) findViewById(R.id.shortcut);
|
||||
ImageView imageView = (ImageView) findViewById(R.id.submenuarrow);
|
||||
this.f2352g = imageView;
|
||||
if (imageView != null) {
|
||||
imageView.setImageDrawable(this.f2357n);
|
||||
}
|
||||
this.h = (ImageView) findViewById(R.id.group_divider);
|
||||
this.i = (LinearLayout) findViewById(R.id.content);
|
||||
}
|
||||
|
||||
@Override // android.widget.LinearLayout, android.view.View
|
||||
public final void onMeasure(int i, int i4) {
|
||||
if (this.f2347b != null && this.f2356m) {
|
||||
ViewGroup.LayoutParams layoutParams = getLayoutParams();
|
||||
LinearLayout.LayoutParams layoutParams2 = (LinearLayout.LayoutParams) this.f2347b.getLayoutParams();
|
||||
int i5 = layoutParams.height;
|
||||
if (i5 > 0 && layoutParams2.width <= 0) {
|
||||
layoutParams2.width = i5;
|
||||
}
|
||||
}
|
||||
super.onMeasure(i, i4);
|
||||
}
|
||||
|
||||
public void setCheckable(boolean z3) {
|
||||
CompoundButton compoundButton;
|
||||
View view;
|
||||
if (!z3 && this.f2348c == null && this.f2350e == null) {
|
||||
return;
|
||||
}
|
||||
if ((this.f2346a.f7288x & 4) != 0) {
|
||||
if (this.f2348c == null) {
|
||||
RadioButton radioButton = (RadioButton) getInflater().inflate(R.layout.abc_list_menu_item_radio, (ViewGroup) this, false);
|
||||
this.f2348c = radioButton;
|
||||
LinearLayout linearLayout = this.i;
|
||||
if (linearLayout != null) {
|
||||
linearLayout.addView(radioButton, -1);
|
||||
} else {
|
||||
addView(radioButton, -1);
|
||||
}
|
||||
}
|
||||
compoundButton = this.f2348c;
|
||||
view = this.f2350e;
|
||||
} else {
|
||||
if (this.f2350e == null) {
|
||||
CheckBox checkBox = (CheckBox) getInflater().inflate(R.layout.abc_list_menu_item_checkbox, (ViewGroup) this, false);
|
||||
this.f2350e = checkBox;
|
||||
LinearLayout linearLayout2 = this.i;
|
||||
if (linearLayout2 != null) {
|
||||
linearLayout2.addView(checkBox, -1);
|
||||
} else {
|
||||
addView(checkBox, -1);
|
||||
}
|
||||
}
|
||||
compoundButton = this.f2350e;
|
||||
view = this.f2348c;
|
||||
}
|
||||
if (z3) {
|
||||
compoundButton.setChecked(this.f2346a.isChecked());
|
||||
if (compoundButton.getVisibility() != 0) {
|
||||
compoundButton.setVisibility(0);
|
||||
}
|
||||
if (view == null || view.getVisibility() == 8) {
|
||||
return;
|
||||
}
|
||||
view.setVisibility(8);
|
||||
return;
|
||||
}
|
||||
CheckBox checkBox2 = this.f2350e;
|
||||
if (checkBox2 != null) {
|
||||
checkBox2.setVisibility(8);
|
||||
}
|
||||
RadioButton radioButton2 = this.f2348c;
|
||||
if (radioButton2 != null) {
|
||||
radioButton2.setVisibility(8);
|
||||
}
|
||||
}
|
||||
|
||||
public void setChecked(boolean z3) {
|
||||
CompoundButton compoundButton;
|
||||
if ((this.f2346a.f7288x & 4) != 0) {
|
||||
if (this.f2348c == null) {
|
||||
RadioButton radioButton = (RadioButton) getInflater().inflate(R.layout.abc_list_menu_item_radio, (ViewGroup) this, false);
|
||||
this.f2348c = radioButton;
|
||||
LinearLayout linearLayout = this.i;
|
||||
if (linearLayout != null) {
|
||||
linearLayout.addView(radioButton, -1);
|
||||
} else {
|
||||
addView(radioButton, -1);
|
||||
}
|
||||
}
|
||||
compoundButton = this.f2348c;
|
||||
} else {
|
||||
if (this.f2350e == null) {
|
||||
CheckBox checkBox = (CheckBox) getInflater().inflate(R.layout.abc_list_menu_item_checkbox, (ViewGroup) this, false);
|
||||
this.f2350e = checkBox;
|
||||
LinearLayout linearLayout2 = this.i;
|
||||
if (linearLayout2 != null) {
|
||||
linearLayout2.addView(checkBox, -1);
|
||||
} else {
|
||||
addView(checkBox, -1);
|
||||
}
|
||||
}
|
||||
compoundButton = this.f2350e;
|
||||
}
|
||||
compoundButton.setChecked(z3);
|
||||
}
|
||||
|
||||
public void setForceShowIcon(boolean z3) {
|
||||
this.f2359q = z3;
|
||||
this.f2356m = z3;
|
||||
}
|
||||
|
||||
public void setGroupDividerEnabled(boolean z3) {
|
||||
ImageView imageView = this.h;
|
||||
if (imageView != null) {
|
||||
imageView.setVisibility((this.f2358o || !z3) ? 8 : 0);
|
||||
}
|
||||
}
|
||||
|
||||
public void setIcon(Drawable drawable) {
|
||||
this.f2346a.f7279n.getClass();
|
||||
boolean z3 = this.f2359q;
|
||||
if (z3 || this.f2356m) {
|
||||
ImageView imageView = this.f2347b;
|
||||
if (imageView == null && drawable == null && !this.f2356m) {
|
||||
return;
|
||||
}
|
||||
if (imageView == null) {
|
||||
ImageView imageView2 = (ImageView) getInflater().inflate(R.layout.abc_list_menu_item_icon, (ViewGroup) this, false);
|
||||
this.f2347b = imageView2;
|
||||
LinearLayout linearLayout = this.i;
|
||||
if (linearLayout != null) {
|
||||
linearLayout.addView(imageView2, 0);
|
||||
} else {
|
||||
addView(imageView2, 0);
|
||||
}
|
||||
}
|
||||
if (drawable == null && !this.f2356m) {
|
||||
this.f2347b.setVisibility(8);
|
||||
return;
|
||||
}
|
||||
ImageView imageView3 = this.f2347b;
|
||||
if (!z3) {
|
||||
drawable = null;
|
||||
}
|
||||
imageView3.setImageDrawable(drawable);
|
||||
if (this.f2347b.getVisibility() != 0) {
|
||||
this.f2347b.setVisibility(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void setTitle(CharSequence charSequence) {
|
||||
if (charSequence == null) {
|
||||
if (this.f2349d.getVisibility() != 8) {
|
||||
this.f2349d.setVisibility(8);
|
||||
}
|
||||
} else {
|
||||
this.f2349d.setText(charSequence);
|
||||
if (this.f2349d.getVisibility() != 0) {
|
||||
this.f2349d.setVisibility(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user