[Galaxy S II Android Development] remuntada78:
one time i changed register to 17 but the issue was with recompile

here the .method

.method public create(Landroid/content/Context;Landroid/view/View;Landroid/view/ViewGroup;Landroid/view/LayoutInflater;)Landroid/view/View;
.registers 14
.parameter "context"
.parameter "convertView"
.parameter "parent"
.parameter "inflater"

.prologue
const/4 v7, 0x0

.line 836
invoke-virtual {p0}, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;->willCreate()V

.line 838
const v6, 0x1090045

invoke-virtual {p4, v6, p3, v7}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;Z)Landroid/view/View;

move-result-object v5

.line 841
.local v5, v:Landroid/view/View;
const v6, 0x1020006

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

move-result-object v1

check-cast v1, Landroid/widget/ImageView;

.line 842
.local v1, icon:Landroid/widget/ImageView;
const v6, 0x102000b

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

move-result-object v2

check-cast v2, Landroid/widget/TextView;

.line 843
.local v2, messageView:Landroid/widget/TextView;
const v6, 0x10202a6

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

move-result-object v4

check-cast v4, Landroid/widget/TextView;

.line 844
.local v4, statusView:Landroid/widget/TextView;
invoke-virtual {p0}, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;->isEnabled()Z

move-result v0

.line 846
.local v0, enabled:Z
if-eqz v2, :cond_34

.line 847
iget v6, p0, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;->mMessageResId:I

invoke-virtual {v2, v6}, Landroid/widget/TextView;->setText(I)V

.line 848
invoke-virtual {v2, v0}, Landroid/widget/TextView;->setEnabled(Z)V

.line 851
:cond_34
iget-object v6, p0, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;->mState:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;

sget-object v8, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;->On:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;

if-eq v6, v8, :cond_40

iget-object v6, p0, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;->mState:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;

sget-object v8, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;->TurningOn:Lcom/android/internal/policy/impl/GlobalActions$ToggleAction$State;

if-ne v6, v8, :cond_68

:cond_40
const/4 v3, 0x1

.line 852
.local v3, on:Z
:goto_41
if-eqz v1, :cond_55

.line 853
invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

move-result-object v8

if-eqz v3, :cond_6a

iget v6, p0, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;->mEnabledIconResId:I

:goto_4b
invoke-virtual {v8, v6}, Landroid/content/res/Resources;->getDrawable(I)Landroid/graphics/drawable/Drawable;

move-result-object v6

invoke-virtual {v1, v6}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

.line 855
invoke-virtual {v1, v0}, Landroid/view/View;->setEnabled(Z)V

.line 858
:cond_55
if-eqz v4, :cond_64

.line 859
if-eqz v3, :cond_6d

iget v6, p0, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;->mEnabledStatusMessageResId:I

:goto_5b
invoke-virtual {v4, v6}, Landroid/widget/TextView;->setText(I)V

.line 860
invoke-virtual {v4, v7}, Landroid/view/View;->setVisibility(I)V

.line 861
invoke-virtual {v4, v0}, Landroid/widget/TextView;->setEnabled(Z)V

.line 863
:cond_64
invoke-virtual {v5, v0}, Landroid/view/View;->setEnabled(Z)V

.line 865
return-object v5

.end local v3 #on:Z
:cond_68
move v3, v7

.line 851
goto :goto_41

.line 853
.restart local v3 #on:Z
:cond_6a
iget v6, p0, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;->mDisabledIconResid:I

goto :goto_4b

.line 859
:cond_6d
iget v6, p0, Lcom/android/internal/policy/impl/GlobalActions$ToggleAction;->mDisabledStatusMessageResId:I

goto :goto_5b
.end method