[Galaxy S II Android Development] remuntada78:
[MENTION=3065070]Goldie[/MENTION]

I tried to implement code in AlertController.smali to link key into checkbox toggle on/off but on rebboot i've problem with sim unlock :crying: this is the

smali with red lines added part

.line 527
:cond_7d
iget-object v4, p0, Lcom/android/internal/app/AlertController;->mButtonPositive:Landroid/widget/Button;

iget-object v6, p0, Lcom/android/internal/app/AlertController;->mButtonPositiveText:Ljava/lang/CharSequence;

invoke-virtual {v4, v6}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

[COLOR="Red"]	invoke-virtual {v4}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v8

invoke-virtual {v8}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v8

const-string v9, "checkbox_preference"

const v10, 0x1

invoke-static {v8, v9, v10}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v8

if-eqz v8, :cond_skip1[/COLOR]

invoke-virtual {v4}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v8

invoke-virtual {v8}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v8

const-string v9, "text_color"

const v10, -0x1

invoke-static {v8, v9, v10}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v8

invoke-virtual {v4, v8}, Landroid/widget/TextView;->setTextColor(I)V

[COLOR="Red"]	:cond_skip1[/COLOR]

.line 538
:cond_8b
iget-object v4, p0, Lcom/android/internal/app/AlertController;->mButtonNegative:Landroid/widget/Button;

iget-object v6, p0, Lcom/android/internal/app/AlertController;->mButtonNegativeText:Ljava/lang/CharSequence;

invoke-virtual {v4, v6}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

[COLOR="Red"] invoke-virtual {v4}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v8

invoke-virtual {v8}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v8

const-string v9, "checkbox_preference"

const v10, 0x1

invoke-static {v8, v9, v10}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v8

if-eqz v8, :cond_skip2[/COLOR]

invoke-virtual {v4}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v8

invoke-virtual {v8}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v8

const-string v9, "text_color"

const v10, -0x1

invoke-static {v8, v9, v10}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v8

invoke-virtual {v4, v8}, Landroid/widget/TextView;->setTextColor(I)V

[COLOR="Red"]	:cond_skip2[/COLOR]

.line 539
iget-object v4, p0, Lcom/android/internal/app/AlertController;->mButtonNegative:Landroid/widget/Button;

invoke-virtual {v4, v5}, Landroid/widget/Button;->setVisibility(I)V

.line 541
or-int/2addr v3, v0

goto :goto_49

.line 550
:cond_99
iget-object v4, p0, Lcom/android/internal/app/AlertController;->mButtonNeutral:Landroid/widget/Button;

iget-object v6, p0, Lcom/android/internal/app/AlertController;->mButtonNeutralText:Ljava/lang/CharSequence;

invoke-virtual {v4, v6}, Landroid/widget/Button;->setText(Ljava/lang/CharSequence;)V

[COLOR="Red"]invoke-virtual {v4}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v8

invoke-virtual {v8}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v8

const-string v9, "checkbox_preference"

const v10, 0x1

invoke-static {v8, v9, v10}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v8

if-eqz v8, :cond_skip3[/COLOR]

invoke-virtual {v4}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v8

invoke-virtual {v8}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v8

const-string v9, "text_color"

const v10, -0x1

invoke-static {v8, v9, v10}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v8

invoke-virtual {v4, v8}, Landroid/widget/TextView;->setTextColor(I)V

[COLOR="Red"]	:cond_skip3[/COLOR]

.line 551
iget-object v4, p0, Lcom/android/internal/app/AlertController;->mButtonNeutral:Landroid/widget/Button;

invoke-virtual {v4, v5}, Landroid/widget/Button;->setVisibility(I)V

.line 499
:cond_28
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mMessage:Ljava/lang/CharSequence;

if-eqz v0, :cond_34

.line 500
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mMessageView:Landroid/widget/TextView;

iget-object v1, p0, Lcom/android/internal/app/AlertController;->mMessage:Ljava/lang/CharSequence;

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

[COLOR="Red"] iget-object v8, p0, Lcom/android/internal/app/AlertController;->mMessageView:Landroid/widget/TextView;

invoke-virtual {v8}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v8

invoke-virtual {v8}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v8

const-string v9, "checkbox_preference"

const v10, 0x1

invoke-static {v8, v9, v10}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v8

if-eqz v8, :cond_skip4[/COLOR]

iget-object v8, p0, Lcom/android/internal/app/AlertController;->mMessageView:Landroid/widget/TextView;

invoke-virtual {v8}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v8

invoke-virtual {v8}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v8

const-string v9, "text_color"

const v10, -0x1

invoke-static {v8, v9, v10}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v8

invoke-virtual {v0, v8}, Landroid/widget/TextView;->setTextColor(I)V

[COLOR="Red"]	:cond_skip4[/COLOR]

goto :goto_27

check-cast v4, Landroid/widget/TextView;

iput-object v4, p0, Lcom/android/internal/app/AlertController;->mTitleView:Landroid/widget/TextView;

.line 455
iget-object v4, p0, Lcom/android/internal/app/AlertController;->mTitleView:Landroid/widget/TextView;

iget-object v5, p0, Lcom/android/internal/app/AlertController;->mTitle:Ljava/lang/CharSequence;

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

[COLOR="Red"]	iget-object v10, p0, Lcom/android/internal/app/AlertController;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v10}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v10

invoke-virtual {v10}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v10

const-string v11, "checkbox_preference"

const v12, 0x1

invoke-static {v10, v11, v12}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v10

if-eqz v10, :cond_skip5[/COLOR]

iget-object v10, p0, Lcom/android/internal/app/AlertController;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v10}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v10

invoke-virtual {v10}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v10

const-string v11, "text_color"

const v12, -0x1

invoke-static {v10, v11, v12}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v10

invoke-virtual {v4, v10}, Landroid/widget/TextView;->setTextColor(I)V

[COLOR="Red"]	:cond_skip5[/COLOR]

.line 461
iget v4, p0, Lcom/android/internal/app/AlertController;->mIconId:I

.local v8, custom:Landroid/widget/FrameLayout;
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mView:Landroid/view/View;

new-instance v10, Landroid/view/ViewGroup$LayoutParams;

const/4 v11, -0x1

const/4 v12, -0x1

invoke-direct {v10, v11, v12}, Landroid/view/ViewGroup$LayoutParams;-><init>(II)V

invoke-virtual {v8, v0, v10}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

.line 403
iget-boolean v0, p0, Lcom/android/internal/app/AlertController;->mViewSpacingSpecified:Z

if-eqz v0, :cond_7a

.line 404
iget v0, p0, Lcom/android/internal/app/AlertController;->mViewSpacingLeft:I

iget v10, p0, Lcom/android/internal/app/AlertController;->mViewSpacingTop:I

iget v11, p0, Lcom/android/internal/app/AlertController;->mViewSpacingRight:I

iget v12, p0, Lcom/android/internal/app/AlertController;->mViewSpacingBottom:I

invoke-virtual {v8, v0, v10, v11, v12}, Landroid/widget/FrameLayout;->setPadding(IIII)V

.line 407
:cond_7a
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mListView:Landroid/widget/ListView;

if-eqz v0, :cond_87

.line 408
invoke-virtual {v3}, Landroid/widget/FrameLayout;->getLayoutParams()Landroid/view/ViewGroup$LayoutParams;

move-result-object v0

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

const/4 v10, 0x0

iput v10, v0, Landroid/widget/LinearLayout$LayoutParams;->weight:F

.line 417
.end local v8 #custom:Landroid/widget/FrameLayout;
:cond_87
:goto_87
if-eqz v6, :cond_a5

.line 418
const/4 v9, 0x0

.line 419
.local v9, divider:Landroid/view/View;
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mMessage:Ljava/lang/CharSequence;

if-nez v0, :cond_96

iget-object v0, p0, Lcom/android/internal/app/AlertController;->mView:Landroid/view/View;

if-nez v0, :cond_96

iget-object v0, p0, Lcom/android/internal/app/AlertController;->mListView:Landroid/widget/ListView;

if-eqz v0, :cond_bc

.line 420
:cond_96
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mWindow:Landroid/view/Window;

const v10, 0x1020274

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

move-result-object v9

.line 425
:goto_9f
if-eqz v9, :cond_a5

.line 426
const/4 v0, 0x0

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

.end local v9 #divider:Landroid/view/View;
:cond_a5
move-object v0, p0

.line 430
invoke-direct/range {v0 .. v7}, Lcom/android/internal/app/AlertController;->setBackground(Landroid/widget/LinearLayout;Landroid/widget/LinearLayout;Landroid/view/View;ZLandroid/content/res/TypedArray;ZLandroid/view/View;)V

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

.line 432
return-void

.line 411
:cond_ad
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mWindow:Landroid/view/Window;

const v10, 0x102027a

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

move-result-object v0

const/16 v10, 0x8

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

goto :goto_87

.line 422
.restart local v9 #divider:Landroid/view/View;
:cond_bc
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mWindow:Landroid/view/Window;

const v10, 0x102027b

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

move-result-object v9

goto :goto_9f
.end method

.method private static shouldCenterSingleButton(Landroid/content/Context;)Z
.registers 5
.parameter "context"

.prologue
const/4 v1, 0x1

.line 177
new-instance v0, Landroid/util/TypedValue;

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

.line 178
.local v0, outValue:Landroid/util/TypedValue;
invoke-virtual {p0}, Landroid/content/Context;->getTheme()Landroid/content/res/Resources$Theme;

move-result-object v2

const v3, 0x10103bc

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

.line 180
iget v2, v0, Landroid/util/TypedValue;->data:I

if-eqz v2, :cond_15

:goto_14
return v1

:cond_15
const/4 v1, 0x0

goto :goto_14
.end method

# virtual methods
.method public getButton(I)Landroid/widget/Button;
.registers 3
.parameter "whichButton"

.prologue
.line 360
packed-switch p1, :pswitch_data_e

.line 368
const/4 v0, 0x0

:goto_4
return-object v0

.line 362
:pswitch_5
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mButtonPositive:Landroid/widget/Button;

goto :goto_4

.line 364
:pswitch_8
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mButtonNegative:Landroid/widget/Button;

goto :goto_4

.line 366
:pswitch_b
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mButtonNeutral:Landroid/widget/Button;

goto :goto_4

.line 360
:pswitch_data_e
.packed-switch -0x3
:pswitch_b
:pswitch_8
:pswitch_5
.end packed-switch
.end method

.method public getListView()Landroid/widget/ListView;
.registers 2

.prologue
.line 356
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mListView:Landroid/widget/ListView;

return-object v0
.end method

.method public installContent()V
.registers 4

.prologue
const/high16 v2, 0x2

.line 235
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mWindow:Landroid/view/Window;

const/4 v1, 0x1

invoke-virtual {v0, v1}, Landroid/view/Window;->requestFeature(I)Z

.line 237
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mView:Landroid/view/View;

if-eqz v0, :cond_14

iget-object v0, p0, Lcom/android/internal/app/AlertController;->mView:Landroid/view/View;

invoke-static {v0}, Lcom/android/internal/app/AlertController;->canTextInput(Landroid/view/View;)Z

move-result v0

if-nez v0, :cond_19

.line 238
:cond_14
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mWindow:Landroid/view/Window;

invoke-virtual {v0, v2, v2}, Landroid/view/Window;->setFlags(II)V

.line 241
:cond_19
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mWindow:Landroid/view/Window;

iget v1, p0, Lcom/android/internal/app/AlertController;->mAlertDialogLayout:I

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

.line 242
invoke-direct {p0}, Lcom/android/internal/app/AlertController;->setupView()V

.line 243
return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
.registers 4
.parameter "keyCode"
.parameter "event"

.prologue
.line 374
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mScrollView:Landroid/widget/ScrollView;

if-eqz v0, :cond_e

iget-object v0, p0, Lcom/android/internal/app/AlertController;->mScrollView:Landroid/widget/ScrollView;

invoke-virtual {v0, p2}, Landroid/widget/ScrollView;->executeKeyEvent(Landroid/view/KeyEvent;)Z

move-result v0

if-eqz v0, :cond_e

const/4 v0, 0x1

:goto_d
return v0

:cond_e
const/4 v0, 0x0

goto :goto_d
.end method

.method public onKeyUp(ILandroid/view/KeyEvent;)Z
.registers 4
.parameter "keyCode"
.parameter "event"

.prologue
.line 379
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mScrollView:Landroid/widget/ScrollView;

if-eqz v0, :cond_e

iget-object v0, p0, Lcom/android/internal/app/AlertController;->mScrollView:Landroid/widget/ScrollView;

invoke-virtual {v0, p2}, Landroid/widget/ScrollView;->executeKeyEvent(Landroid/view/KeyEvent;)Z

move-result v0

if-eqz v0, :cond_e

const/4 v0, 0x1

:goto_d
return v0

:cond_e
const/4 v0, 0x0

goto :goto_d
.end method

.method public setButton(ILjava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;Landroid/os/Message;)V
.registers 7
.parameter "whichButton"
.parameter "text"
.parameter "listener"
.parameter "msg"

.prologue
.line 302
if-nez p4, :cond_a

if-eqz p3, :cond_a

.line 303
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mHandler:Landroid/os/Handler;

invoke-virtual {v0, p1, p3}, Landroid/os/Handler;->obtainMessage(ILjava/lang/Object;)Landroid/os/Message;

move-result-object p4

.line 306
:cond_a
packed-switch p1, :pswitch_data_24

.line 324
new-instance v0, Ljava/lang/IllegalArgumentException;

const-string v1, "Button does not exist"

invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

throw v0

.line 309
:pswitch_15
iput-object p2, p0, Lcom/android/internal/app/AlertController;->mButtonPositiveText:Ljava/lang/CharSequence;

.line 310
iput-object p4, p0, Lcom/android/internal/app/AlertController;->mButtonPositiveMessage:Landroid/os/Message;

.line 326
:goto_19
return-void

.line 314
:pswitch_1a
iput-object p2, p0, Lcom/android/internal/app/AlertController;->mButtonNegativeText:Ljava/lang/CharSequence;

.line 315
iput-object p4, p0, Lcom/android/internal/app/AlertController;->mButtonNegativeMessage:Landroid/os/Message;

goto :goto_19

.line 319
:pswitch_1f
iput-object p2, p0, Lcom/android/internal/app/AlertController;->mButtonNeutralText:Ljava/lang/CharSequence;

.line 320
iput-object p4, p0, Lcom/android/internal/app/AlertController;->mButtonNeutralMessage:Landroid/os/Message;

goto :goto_19

.line 306
:pswitch_data_24
.packed-switch -0x3
:pswitch_1f
:pswitch_1a
:pswitch_15
.end packed-switch
.end method

.method public setCustomTitle(Landroid/view/View;)V
.registers 2
.parameter "customTitleView"

.prologue
.line 256
iput-object p1, p0, Lcom/android/internal/app/AlertController;->mCustomTitleView:Landroid/view/View;

.line 257
return-void
.end method

.method public setIcon(I)V
.registers 4
.parameter "resId"

.prologue
.line 334
iput p1, p0, Lcom/android/internal/app/AlertController;->mIconId:I

.line 335
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mIconView:Landroid/widget/ImageView;

if-eqz v0, :cond_f

.line 336
if-lez p1, :cond_10

.line 337
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mIconView:Landroid/widget/ImageView;

iget v1, p0, Lcom/android/internal/app/AlertController;->mIconId:I

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

.line 342
:cond_f
:goto_f
return-void

.line 338
:cond_10
if-nez p1, :cond_f

.line 339
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mIconView:Landroid/widget/ImageView;

const/16 v1, 0x8

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

goto :goto_f
.end method

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

.prologue
.line 345
iput-object p1, p0, Lcom/android/internal/app/AlertController;->mIcon:Landroid/graphics/drawable/Drawable;

.line 346
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mIconView:Landroid/widget/ImageView;

if-eqz v0, :cond_f

iget-object v0, p0, Lcom/android/internal/app/AlertController;->mIcon:Landroid/graphics/drawable/Drawable;

if-eqz v0, :cond_f

.line 347
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mIconView:Landroid/widget/ImageView;

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

.line 349
:cond_f
return-void
.end method

.method public setInverseBackgroundForced(Z)V
.registers 2
.parameter "forceInverseBackground"

.prologue
.line 352
iput-boolean p1, p0, Lcom/android/internal/app/AlertController;->mForceInverseBackground:Z

.line 353
return-void
.end method

.method public setMessage(Ljava/lang/CharSequence;)V
.registers 7
.parameter "message"

.prologue
.line 260
iput-object p1, p0, Lcom/android/internal/app/AlertController;->mMessage:Ljava/lang/CharSequence;

.line 261
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mMessageView:Landroid/widget/TextView;

if-eqz v0, :cond_b

.line 262
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mMessageView:Landroid/widget/TextView;

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

[COLOR="Red"]	iget-object v1, p0, Lcom/android/internal/app/AlertController;->mMessageView:Landroid/widget/TextView;

invoke-virtual {v1}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v1

invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v2, "checkbox_preference"

const v3, 0x1

invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v1

if-eqz v1, :cond_skip6[/COLOR]

iget-object v1, p0, Lcom/android/internal/app/AlertController;->mMessageView:Landroid/widget/TextView;

invoke-virtual {v1}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v1

invoke-virtual {v1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

const-string v2, "text_color"

const v3, -0x1

invoke-static {v1, v2, v3}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v1

invoke-virtual {v0, v1}, Landroid/widget/TextView;->setTextColor(I)V

[COLOR="Red"]	:cond_skip6[/COLOR]

.line 264
:cond_b
return-void
.end method

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

.prologue
.line 246
iput-object p1, p0, Lcom/android/internal/app/AlertController;->mTitle:Ljava/lang/CharSequence;

.line 247
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mTitleView:Landroid/widget/TextView;

if-eqz v0, :cond_b

.line 248
iget-object v0, p0, Lcom/android/internal/app/AlertController;->mTitleView:Landroid/widget/TextView;

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

[COLOR="Red"] iget-object v2, p0, Lcom/android/internal/app/AlertController;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v2}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v2

invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const-string v3, "checkbox_preference"

const v4, 0x1

invoke-static {v2, v3, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v2

if-eqz v2, :cond_skip7[/COLOR]

iget-object v2, p0, Lcom/android/internal/app/AlertController;->mTitleView:Landroid/widget/TextView;

invoke-virtual {v2}, Landroid/widget/TextView;->getContext()Landroid/content/Context;

move-result-object v2

invoke-virtual {v2}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v2

const-string v3, "text_color"

const v4, -0x1

invoke-static {v2, v3, v4}, Landroid/provider/Settings$System;->getInt(Landroid/content/ContentResolver;Ljava/lang/String;I)I

move-result v2

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

[COLOR="Red"]	:cond_skip7[/COLOR]

and this is logcat can you help me please?

D/dalvikvm( 3330): WAIT_FOR_CONCURRENT_GC blocked 0ms

I/Babel ( 5079): ### loadMmsSettings: mUserAgent=Hangouts/2.0.128, mUaProfUrl=http://www.google.com/oha/rdf/ua-profile-kila.xml

I/InputReader( 3330): Touch event's action is 0x1 (deviceType=0) [pCnt=1, s=]

I/InputDispatcher( 3330): Delivering touch to current input target: action: 0x1

I/InputDispatcher( 3330): Delivering touch to current input target: action: 0x1

I/InputDispatcher( 3330): Delivering touch to current input target: action: 0x1

I/AudioPolicyManagerBase( 1849): getSituationVolume: isBTConnected:0 isHeadConnected:0

V/AudioPolicyManagerBase( 1849): getParamFromPolicy deviceInt = 0, situationInt = 1, situationVolume = 0.300000

E/AudioPolicyService( 1849): getOutput() tid 2182 ++

E/AudioPolicyService( 1849): getOutput() tid 2182 --

V/AudioPolicyManagerBase( 1849): getOutput() stream 1, samplingRate 0, format 0, channelMask 3, flags 0

V/AudioPolicyManagerBase( 1849): getOutput() returns output 2

E/AudioPolicyService( 1849): getOutput() tid 2176 ++

E/AudioPolicyService( 1849): getOutput() tid 2176 --

V/AudioPolicyManagerBase( 1849): getOutput() stream 1, samplingRate 0, format 0, channelMask 3, flags 0

V/AudioPolicyManagerBase( 1849): getOutput() returns output 2

E/AudioPolicyService( 1849): getOutput() tid 1849 ++

E/AudioPolicyService( 1849): getOutput() tid 1849 --

V/AudioPolicyManagerBase( 1849): getOutput() stream 1, samplingRate 44100, format 1, channelMask 3, flags 4

V/AudioPolicyManagerBase( 1849): getOutput() returns output 2

V/AudioPolicyManagerBase( 1849): startOutput() output 2, stream 1, session 21

V/AudioPolicyManagerBase( 1849): changeRefCount() stream 1, count 1

V/AudioPolicyManagerBase( 1849): getNewDevice() selected device 2

I/AudioFlinger( 1849): AudioFlinger::PlaybackThread::addTrack_l() start_output_streamtype(0, 1) for 2

I/AudioFlinger( 1849): AudioFlinger::PlaybackThread::addTrack_l() set_parameters(1)

V/AudioPolicyManagerBase( 1849): releaseOutput() 2

I/SimUnlockScreen( 3330): getSimLockInfoResult(): num_of_retry is 3

I/SimUnlockScreen( 3330): onClick(): num_of_retry is 3

I/dalvikvm( 3330): Rejecting re-init on previously-failed class Lcom/android/internal/app/AlertController; v=0x40feeb18

W/dalvikvm( 3330): threadid=26: thread exiting with uncaught exception (group=0x40ff92a0)

E/android.os.Debug( 3330): !@Dumpstate > dumpstate -k -t -z -d -o /data/log/dumpstate_sys_error

E/AndroidRuntime( 3330): *** FATAL EXCEPTION IN SYSTEM PROCESS: WindowManagerPolicy

E/AndroidRuntime( 3330): java.lang.VerifyError: com/android/internal/app/AlertController

E/AndroidRuntime( 3330):	at android.app.AlertDialog.<init>(AlertDialog.java:116)

E/AndroidRuntime( 3330):	at android.app.AlertDialog.<init>(AlertDialog.java:98)

E/AndroidRuntime( 3330):	at android.app.ProgressDialog.<init>(ProgressDialog.java:77)

E/AndroidRuntime( 3330):	at com.android.internal.policy.impl.SimUnlockScreen.getSimUnlockProgressDialog(SimUnlockScreen.java:321)

E/AndroidRuntime( 3330):	at com.android.internal.policy.impl.SimUnlockScreen.checkPin(SimUnlockScreen.java:345)

E/AndroidRuntime( 3330):	at com.android.internal.policy.impl.SimUnlockScreen.onClick(SimUnlockScreen.java:293)

E/AndroidRuntime( 3330):	at android.view.View.performClick(View.java:4232)

E/AndroidRuntime( 3330):	at android.view.View$PerformClick.run(View.java:17298)

E/AndroidRuntime( 3330):	at android.os.Handler.handleCallback(Handler.java:615)

E/AndroidRuntime( 3330):	at android.os.Handler.dispatchMessage(Handler.java:92)

E/AndroidRuntime( 3330):	at android.os.Looper.loop(Looper.java:137)

E/AndroidRuntime( 3330):	at com.android.server.wm.WindowManagerService$PolicyThread.run(WindowManagerService.java:967)