[Galaxy S II Android Development] remuntada78:
:confused:I tried whit your mContext line too and launcher goes in FC.yes i'm sure i don't change other,only add red lines

this is original smali:crying:

.class public Lcom/android/internal/view/menu/ListMenuItemView;
.super Landroid/widget/LinearLayout;
.source "ListMenuItemView.java"

# interfaces
.implements Lcom/android/internal/view/menu/MenuView$ItemView;

# static fields
.field private static final TAG:Ljava/lang/String; = "ListMenuItemView"

# instance fields
.field private mBackground:Landroid/graphics/drawable/Drawable;

.field private mCheckBox:Landroid/widget/CheckBox;

.field private mForceShowIcon:Z

.field private mIconView:Landroid/widget/ImageView;

.field private mInflater:Landroid/view/LayoutInflater;

.field private mIsParentThemeDeviceDefault:Z

.field private mItemData:Lcom/android/internal/view/menu/MenuItemImpl;

.field private mMenuType:I

.field private mPreserveIconSpacing:Z

.field private mRadioButton:Landroid/widget/RadioButton;

.field private mShortcutView:Landroid/widget/TextView;

.field private mTextAppearance:I

.field private mTextAppearanceContext:Landroid/content/Context;

.field private mTitleView:Landroid/widget/TextView;

# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
.registers 4
.parameter "context"
.parameter "attrs"

.prologue
.line 87
const/4 v0, 0x0

invoke-direct {p0, p1, p2, v0}, Lcom/android/internal/view/menu/ListMenuItemView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

.line 88
return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
.registers 9
.parameter "context"
.parameter "attrs"
.parameter "defStyle"

.prologue
const/4 v3, 0x0

const/4 v4, 0x1

.line 63
invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

.line 65
sget-object v2, Lcom/android/internal/R$styleable;->MenuView:[I

invoke-virtual {p1, p2, v2, p3, v3}, Landroid/content/Context;->obtainStyledAttributes(Landroid/util/AttributeSet;[III)Landroid/content/res/TypedArray;

move-result-object v0

.line 69
.local v0, a:Landroid/content/res/TypedArray;
const/4 v2, 0x5

invoke-virtual {v0, v2}, Landroid/content/res/TypedArray;->getDrawable(I)Landroid/graphics/drawable/Drawable;

move-result-object v2

iput-object v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mBackground:Landroid/graphics/drawable/Drawable;

.line 70
const/4 v2, -0x1

invoke-virtual {v0, v4, v2}, Landroid/content/res/TypedArray;->getResourceId(II)I

move-result v2

iput v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mTextAppearance:I

.line 72
const/4 v2, 0x7

invoke-virtual {v0, v2, v3}, Landroid/content/res/TypedArray;->getBoolean(IZ)Z

move-result v2

iput-boolean v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mPreserveIconSpacing:Z

.line 74
iput-object p1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mTextAppearanceContext:Landroid/content/Context;

.line 76
invoke-virtual {v0}, Landroid/content/res/TypedArray;->recycle()V

.line 78
new-instance v1, Landroid/util/TypedValue;

invoke-direct {v1}, Landroid/util/TypedValue;-><init>()V

.line 79
.local v1, outValue:Landroid/util/TypedValue;
invoke-virtual {p0}, Landroid/view/View;->getContext()Landroid/content/Context;

move-result-object v2

invoke-virtual {v2}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;

move-result-object v2

const v3, 0x10103fd

invoke-virtual {v2, v3, v1, v4}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z

.line 80
iget v2, v1, Landroid/util/TypedValue;->data:I

if-eqz v2, :cond_3e

.line 81
iput-boolean v4, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mIsParentThemeDeviceDefault:Z

.line 84
:cond_3e
return-void
.end method

.method private getInflater()Landroid/view/LayoutInflater;
.registers 2

.prologue
.line 302
iget-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mInflater:Landroid/view/LayoutInflater;

if-nez v0, :cond_c

.line 303
iget-object v0, p0, Landroid/view/View;->mContext:Landroid/content/Context;

invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

move-result-object v0

iput-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mInflater:Landroid/view/LayoutInflater;

.line 305
:cond_c
iget-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mInflater:Landroid/view/LayoutInflater;

return-object v0
.end method

.method private insertCheckBox()V
.registers 4

.prologue
const/4 v2, 0x0

.line 278
invoke-direct {p0}, Lcom/android/internal/view/menu/ListMenuItemView;->getInflater()Landroid/view/LayoutInflater;

move-result-object v0

.line 280
.local v0, inflater:Landroid/view/LayoutInflater;
iget-boolean v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mIsParentThemeDeviceDefault:Z

if-eqz v1, :cond_1a

.line 281
const v1, 0x1090110

invoke-virtual {v0, v1, p0, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

move-result-object v1

check-cast v1, Landroid/widget/CheckBox;

iput-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mCheckBox:Landroid/widget/CheckBox;

.line 290
:goto_14
iget-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mCheckBox:Landroid/widget/CheckBox;

invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

.line 291
return-void

.line 286
:cond_1a
const v1, 0x1090097

invoke-virtual {v0, v1, p0, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

move-result-object v1

check-cast v1, Landroid/widget/CheckBox;

iput-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mCheckBox:Landroid/widget/CheckBox;

goto :goto_14
.end method

.method private insertIconView()V
.registers 4

.prologue
const/4 v2, 0x0

.line 255
invoke-direct {p0}, Lcom/android/internal/view/menu/ListMenuItemView;->getInflater()Landroid/view/LayoutInflater;

move-result-object v0

.line 256
.local v0, inflater:Landroid/view/LayoutInflater;
const v1, 0x1090098

invoke-virtual {v0, v1, p0, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

move-result-object v1

check-cast v1, Landroid/widget/ImageView;

iput-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mIconView:Landroid/widget/ImageView;

.line 258
iget-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mIconView:Landroid/widget/ImageView;

invoke-virtual {p0, v1, v2}, Landroid/view/ViewGroup;->addView(Landroid/view/View;I)V

.line 259
return-void
.end method

.method private insertRadioButton()V
.registers 4

.prologue
const/4 v2, 0x0

.line 262
invoke-direct {p0}, Lcom/android/internal/view/menu/ListMenuItemView;->getInflater()Landroid/view/LayoutInflater;

move-result-object v0

.line 263
.local v0, inflater:Landroid/view/LayoutInflater;
iget-boolean v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mIsParentThemeDeviceDefault:Z

if-eqz v1, :cond_1a

.line 264
const v1, 0x1090112

invoke-virtual {v0, v1, p0, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

move-result-object v1

check-cast v1, Landroid/widget/RadioButton;

iput-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mRadioButton:Landroid/widget/RadioButton;

.line 274
:goto_14
iget-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mRadioButton:Landroid/widget/RadioButton;

invoke-virtual {p0, v1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

.line 275
return-void

.line 269
:cond_1a
const v1, 0x109009a

invoke-virtual {v0, v1, p0, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

move-result-object v1

check-cast v1, Landroid/widget/RadioButton;

iput-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mRadioButton:Landroid/widget/RadioButton;

goto :goto_14
.end method

# virtual methods
.method public getItemData()Lcom/android/internal/view/menu/MenuItemImpl;
.registers 2

.prologue
.line 133
iget-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mItemData:Lcom/android/internal/view/menu/MenuItemImpl;

return-object v0
.end method

.method public initialize(Lcom/android/internal/view/menu/MenuItemImpl;I)V
.registers 5
.parameter "itemData"
.parameter "menuType"

.prologue
.line 106
iput-object p1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mItemData:Lcom/android/internal/view/menu/MenuItemImpl;

.line 107
iput p2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mMenuType:I

.line 109
invoke-virtual {p1}, Lcom/android/internal/view/menu/MenuItemImpl;->isVisible()Z

move-result v0

if-eqz v0, :cond_36

const/4 v0, 0x0

:goto_b
invoke-virtual {p0, v0}, Landroid/view/View;->setVisibility(I)V

.line 111
invoke-virtual {p1, p0}, Lcom/android/internal/view/menu/MenuItemImpl;->getTitleForItemView(Lcom/android/internal/view/menu/MenuView$ItemView;)Ljava/lang/CharSequence;

move-result-object v0

invoke-virtual {p0, v0}, Lcom/android/internal/view/menu/ListMenuItemView;->setTitle(Ljava/lang/CharSequence;)V

.line 112
invoke-virtual {p1}, Lcom/android/internal/view/menu/MenuItemImpl;->isCheckable()Z

move-result v0

invoke-virtual {p0, v0}, Lcom/android/internal/view/menu/ListMenuItemView;->setCheckable(Z)V

.line 113
invoke-virtual {p1}, Lcom/android/internal/view/menu/MenuItemImpl;->shouldShowShortcut()Z

move-result v0

invoke-virtual {p1}, Lcom/android/internal/view/menu/MenuItemImpl;->getShortcut()C

move-result v1

invoke-virtual {p0, v0, v1}, Lcom/android/internal/view/menu/ListMenuItemView;->setShortcut(ZC)V

.line 114
invoke-virtual {p1}, Lcom/android/internal/view/menu/MenuItemImpl;->getIcon()Landroid/graphics/drawable/Drawable;

move-result-object v0

invoke-virtual {p0, v0}, Lcom/android/internal/view/menu/ListMenuItemView;->setIcon(Landroid/graphics/drawable/Drawable;)V

.line 115
invoke-virtual {p1}, Lcom/android/internal/view/menu/MenuItemImpl;->isEnabled()Z

move-result v0

invoke-virtual {p0, v0}, Landroid/view/View;->setEnabled(Z)V

.line 116
return-void

.line 109
:cond_36
const/16 v0, 0x8

goto :goto_b
.end method

.method protected onFinishInflate()V
.registers 4

.prologue
.line 92
invoke-super {p0}, Landroid/view/View;->onFinishInflate()V

.line 94
iget-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mBackground:Landroid/graphics/drawable/Drawable;

invoke-virtual {p0, v0}, Landroid/view/View;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

.line 96
const v0, 0x1020016

invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/TextView;

iput-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mTitleView:Landroid/widget/TextView;

.line 97
iget v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mTextAppearance:I

const/4 v1, -0x1

if-eq v0, v1, :cond_21

.line 98
iget-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mTitleView:Landroid/widget/TextView;

iget-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mTextAppearanceContext:Landroid/content/Context;

iget v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mTextAppearance:I

invoke-virtual {v0, v1, v2}, Landroid/widget/TextView;->setTextAppearance(Landroid/content/Context;I)V

.line 102
:cond_21
const v0, 0x102039a

invoke-virtual {p0, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

move-result-object v0

check-cast v0, Landroid/widget/TextView;

iput-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mShortcutView:Landroid/widget/TextView;

.line 103
return-void
.end method

.method protected onMeasure(II)V
.registers 7
.parameter "widthMeasureSpec"
.parameter "heightMeasureSpec"

.prologue
.line 236
iget-object v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mIconView:Landroid/widget/ImageView;

if-eqz v2, :cond_2a

iget-boolean v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mPreserveIconSpacing:Z

if-eqz v2, :cond_2a

.line 238
invoke-virtual {p0}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

move-result-object v1

.line 239
.local v1, lp:Landroid/view/ViewGroup$LayoutParams;
iget-object v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mIconView:Landroid/widget/ImageView;

invoke-virtual {v2}, Landroid/view/View;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

move-result-object v0

check-cast v0, Landroid/widget/LinearLayout$LayoutParams;

.line 240
.local v0, iconLp:Landroid/widget/LinearLayout$LayoutParams;
iget v2, v1, Landroid/view/ViewGroup$LayoutParams;->height:I

if-lez v2, :cond_2a

iget v2, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

if-gtz v2, :cond_2a

.line 242
iget-boolean v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mIsParentThemeDeviceDefault:Z

if-eqz v2, :cond_2e

.line 243
iget v2, v1, Landroid/view/ViewGroup$LayoutParams;->height:I

iget v3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->topMargin:I

sub-int/2addr v2, v3

iget v3, v0, Landroid/view/ViewGroup$MarginLayoutParams;->bottomMargin:I

sub-int/2addr v2, v3

iput v2, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

.line 251
.end local v0 #iconLp:Landroid/widget/LinearLayout$LayoutParams;
.end local v1 #lp:Landroid/view/ViewGroup$LayoutParams;
:cond_2a
:goto_2a
invoke-super {p0, p1, p2}, Landroid/widget/LinearLayout;->onMeasure(II)V

.line 252
return-void

.line 246
.restart local v0 #iconLp:Landroid/widget/LinearLayout$LayoutParams;
.restart local v1 #lp:Landroid/view/ViewGroup$LayoutParams;
:cond_2e
iget v2, v1, Landroid/view/ViewGroup$LayoutParams;->height:I

iput v2, v0, Landroid/view/ViewGroup$LayoutParams;->width:I

goto :goto_2a
.end method

.method public prefersCondensedTitle()Z
.registers 2

.prologue
.line 294
const/4 v0, 0x0

return v0
.end method

.method public setCheckable(Z)V
.registers 7
.parameter "checkable"

.prologue
const/16 v3, 0x8

.line 137
if-nez p1, :cond_d

iget-object v4, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mRadioButton:Landroid/widget/RadioButton;

if-nez v4, :cond_d

iget-object v4, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mCheckBox:Landroid/widget/CheckBox;

if-nez v4, :cond_d

.line 176
:cond_c
:goto_c
return-void

.line 146
:cond_d
iget-object v4, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mItemData:Lcom/android/internal/view/menu/MenuItemImpl;

invoke-virtual {v4}, Lcom/android/internal/view/menu/MenuItemImpl;->isExclusiveCheckable()Z

move-result v4

if-eqz v4, :cond_43

.line 147
iget-object v4, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mRadioButton:Landroid/widget/RadioButton;

if-nez v4, :cond_1c

.line 148
invoke-direct {p0}, Lcom/android/internal/view/menu/ListMenuItemView;->insertRadioButton()V

.line 150
:cond_1c
iget-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mRadioButton:Landroid/widget/RadioButton;

.line 151
.local v0, compoundButton:Landroid/widget/CompoundButton;
iget-object v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mCheckBox:Landroid/widget/CheckBox;

.line 160
.local v2, otherCompoundButton:Landroid/widget/CompoundButton;
:goto_20
if-eqz p1, :cond_51

.line 161
iget-object v4, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mItemData:Lcom/android/internal/view/menu/MenuItemImpl;

invoke-virtual {v4}, Lcom/android/internal/view/menu/MenuItemImpl;->isChecked()Z

move-result v4

invoke-virtual {v0, v4}, Landroid/widget/CompoundButton;->setChecked(Z)V

.line 163
if-eqz p1, :cond_4f

const/4 v1, 0x0

.line 164
.local v1, newVisibility:I
:goto_2e
invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

move-result v4

if-eq v4, v1, :cond_37

.line 165
invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

.line 169
:cond_37
if-eqz v2, :cond_c

invoke-virtual {v2}, Landroid/view/View;->getVisibility()I

move-result v4

if-eq v4, v3, :cond_c

.line 170
invoke-virtual {v2, v3}, Landroid/view/View;->setVisibility(I)V

goto :goto_c

.line 153
.end local v0 #compoundButton:Landroid/widget/CompoundButton;
.end local v1 #newVisibility:I
.end local v2 #otherCompoundButton:Landroid/widget/CompoundButton;
:cond_43
iget-object v4, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mCheckBox:Landroid/widget/CheckBox;

if-nez v4, :cond_4a

.line 154
invoke-direct {p0}, Lcom/android/internal/view/menu/ListMenuItemView;->insertCheckBox()V

.line 156
:cond_4a
iget-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mCheckBox:Landroid/widget/CheckBox;

.line 157
.restart local v0 #compoundButton:Landroid/widget/CompoundButton;
iget-object v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mRadioButton:Landroid/widget/RadioButton;

.restart local v2 #otherCompoundButton:Landroid/widget/CompoundButton;
goto :goto_20

:cond_4f
move v1, v3

.line 163
goto :goto_2e

.line 173
:cond_51
iget-object v4, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mCheckBox:Landroid/widget/CheckBox;

if-eqz v4, :cond_5a

iget-object v4, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mCheckBox:Landroid/widget/CheckBox;

invoke-virtual {v4, v3}, Landroid/view/View;->setVisibility(I)V

.line 174
:cond_5a
iget-object v4, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mRadioButton:Landroid/widget/RadioButton;

if-eqz v4, :cond_c

iget-object v4, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mRadioButton:Landroid/widget/RadioButton;

invoke-virtual {v4, v3}, Landroid/view/View;->setVisibility(I)V

goto :goto_c
.end method

.method public setChecked(Z)V
.registers 4
.parameter "checked"

.prologue
.line 181
iget-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mItemData:Lcom/android/internal/view/menu/MenuItemImpl;

invoke-virtual {v1}, Lcom/android/internal/view/menu/MenuItemImpl;->isExclusiveCheckable()Z

move-result v1

if-eqz v1, :cond_15

.line 182
iget-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mRadioButton:Landroid/widget/RadioButton;

if-nez v1, :cond_f

.line 183
invoke-direct {p0}, Lcom/android/internal/view/menu/ListMenuItemView;->insertRadioButton()V

.line 185
:cond_f
iget-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mRadioButton:Landroid/widget/RadioButton;

.line 193
.local v0, compoundButton:Landroid/widget/CompoundButton;
:goto_11
invoke-virtual {v0, p1}, Landroid/widget/CompoundButton;->setChecked(Z)V

.line 194
return-void

.line 187
.end local v0 #compoundButton:Landroid/widget/CompoundButton;
:cond_15
iget-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mCheckBox:Landroid/widget/CheckBox;

if-nez v1, :cond_1c

.line 188
invoke-direct {p0}, Lcom/android/internal/view/menu/ListMenuItemView;->insertCheckBox()V

.line 190
:cond_1c
iget-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mCheckBox:Landroid/widget/CheckBox;

.restart local v0 #compoundButton:Landroid/widget/CompoundButton;
goto :goto_11
.end method

.method public setForceShowIcon(Z)V
.registers 2
.parameter "forceShow"

.prologue
.line 119
iput-boolean p1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mForceShowIcon:Z

iput-boolean p1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mPreserveIconSpacing:Z

.line 120
return-void
.end method

.method public setIcon(Landroid/graphics/drawable/Drawable;)V
.registers 5
.parameter "icon"

.prologue
const/4 v1, 0x0

.line 210
iget-object v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mItemData:Lcom/android/internal/view/menu/MenuItemImpl;

invoke-virtual {v2}, Lcom/android/internal/view/menu/MenuItemImpl;->shouldShowIcon()Z

move-result v2

if-nez v2, :cond_d

iget-boolean v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mForceShowIcon:Z

if-eqz v2, :cond_15

:cond_d
const/4 v0, 0x1

.line 211
.local v0, showIcon:Z
:goto_e
if-nez v0, :cond_17

iget-boolean v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mPreserveIconSpacing:Z

if-nez v2, :cond_17

.line 232
.end local p1
:cond_14
:goto_14
return-void

.end local v0 #showIcon:Z
.restart local p1
:cond_15
move v0, v1

.line 210
goto :goto_e

.line 215
.restart local v0 #showIcon:Z
:cond_17
iget-object v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mIconView:Landroid/widget/ImageView;

if-nez v2, :cond_21

if-nez p1, :cond_21

iget-boolean v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mPreserveIconSpacing:Z

if-eqz v2, :cond_14

.line 219
:cond_21
iget-object v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mIconView:Landroid/widget/ImageView;

if-nez v2, :cond_28

.line 220
invoke-direct {p0}, Lcom/android/internal/view/menu/ListMenuItemView;->insertIconView()V

.line 223
:cond_28
if-nez p1, :cond_2e

iget-boolean v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mPreserveIconSpacing:Z

if-eqz v2, :cond_45

.line 224
:cond_2e
iget-object v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mIconView:Landroid/widget/ImageView;

if-eqz v0, :cond_43

.end local p1
:goto_32
invoke-virtual {v2, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

.line 226
iget-object v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mIconView:Landroid/widget/ImageView;

invoke-virtual {v2}, Landroid/view/View;->getVisibility()I

move-result v2

if-eqz v2, :cond_14

.line 227
iget-object v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mIconView:Landroid/widget/ImageView;

invoke-virtual {v2, v1}, Landroid/widget/ImageView;->setVisibility(I)V

goto :goto_14

.line 224
.restart local p1
:cond_43
const/4 p1, 0x0

goto :goto_32

.line 230
:cond_45
iget-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mIconView:Landroid/widget/ImageView;

const/16 v2, 0x8

invoke-virtual {v1, v2}, Landroid/widget/ImageView;->setVisibility(I)V

goto :goto_14
.end method

.method public setShortcut(ZC)V
.registers 6
.parameter "showShortcut"
.parameter "shortcutKey"

.prologue
.line 197
if-eqz p1, :cond_26

iget-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mItemData:Lcom/android/internal/view/menu/MenuItemImpl;

invoke-virtual {v1}, Lcom/android/internal/view/menu/MenuItemImpl;->shouldShowShortcut()Z

move-result v1

if-eqz v1, :cond_26

const/4 v0, 0x0

.line 200
.local v0, newVisibility:I
:goto_b
if-nez v0, :cond_18

.line 201
iget-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mShortcutView:Landroid/widget/TextView;

iget-object v2, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mItemData:Lcom/android/internal/view/menu/MenuItemImpl;

invoke-virtual {v2}, Lcom/android/internal/view/menu/MenuItemImpl;->getShortcutLabel()Ljava/lang/String;

move-result-object v2

invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

.line 204
:cond_18
iget-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mShortcutView:Landroid/widget/TextView;

invoke-virtual {v1}, Landroid/view/View;->getVisibility()I

move-result v1

if-eq v1, v0, :cond_25

.line 205
iget-object v1, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mShortcutView:Landroid/widget/TextView;

invoke-virtual {v1, v0}, Landroid/view/View;->setVisibility(I)V

.line 207
:cond_25
return-void

.line 197
.end local v0 #newVisibility:I
:cond_26
const/16 v0, 0x8

goto :goto_b
.end method

.method public setTitle(Ljava/lang/CharSequence;)V
.registers 4
.parameter "title"

.prologue
const/16 v1, 0x8

.line 123
if-eqz p1, :cond_18

.line 124
iget-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

.line 126
iget-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

move-result v0

if-eqz v0, :cond_17

iget-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mTitleView:Landroid/widget/TextView;

const/4 v1, 0x0

invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

.line 130
:cond_17
:goto_17
return-void

.line 128
:cond_18
iget-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v0}, Landroid/view/View;->getVisibility()I

move-result v0

if-eq v0, v1, :cond_17

iget-object v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

goto :goto_17
.end method

.method public showsIcon()Z
.registers 2

.prologue
.line 298
iget-boolean v0, p0, Lcom/android/internal/view/menu/ListMenuItemView;->mForceShowIcon:Z

return v0
.end method