[Galaxy S II Android Development] remuntada78:
Hi Goldie ,i'm trying to port a new stuff in my galaxy s2, I chose to do this by working with my ModSettings.smali doing the port from the original smali file, the .method public onCreate(Landroid/os/Bundle;)V is done(i believe :silly:)

now i'm working with the .method public onPreferenceChange(Landroid/preference/Preference;Ljava/lang/Object;)Z

mine looks like this

.method public onPreferenceChange(Landroid/preference/Preference;Ljava/lang/Object;)Z
.locals 7

const/4 v2, 0x0

iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mTextColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_1

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "text_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_0
:goto_0
move v5, v2

return v5

:cond_1
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mSummaryTextColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_2

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "summary_text_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_2
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mStatusbarColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_3

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "statusbar_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_3
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mStatusbarHeaderColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_4

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "statusbar_header_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_4
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mBrightnessBGColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_5

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "brightness_bg_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_5
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mOnGoingBGColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_6

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "ongoing_bg_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_6
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mLatestNotiBGColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_7

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "latest_notification_bg_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_7
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mTogglesBGColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_8

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "toggles_bg_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_8
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mNotiPanelBGColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_9

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "noti_panel_bg_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_9
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mNotiTitleTextColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_a

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "title_text_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_a
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mNotiTitleTextBGColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_b

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "noti_ongoing_bg_text_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_b
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mNotificationTitleTextColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_c

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "noti_title_text_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_c
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mNotificationSummaryTextColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_d

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "noti_summary_text_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_d
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mClearBGColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_e

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "clear_button_bg_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_e
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mDialerNumberColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_f

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "dialer_number_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_f
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mDialerBGColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_10

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "dialer_bg_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_10
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mDialerBGColor:Lcom/loser/colorpicker/ColorPickerPreference;

if-ne p1, v5, :cond_11

invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

move-result-object v5

invoke-static {v5}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

move-result-object v5

invoke-virtual {v5}, Ljava/lang/Integer;->intValue()I

move-result v5

invoke-static {v5}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToARGB(I)Ljava/lang/String;

move-result-object v0

invoke-virtual {p1, v0}, Landroid/preference/Preference;->setSummary(Ljava/lang/CharSequence;)V

invoke-static {v0}, Lcom/loser/colorpicker/ColorPickerPreference;->convertToColorInt(Ljava/lang/String;)I

move-result v1

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "dialer_bg_color"

invoke-static {v5, v6, v1}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

goto/16 :goto_0

:cond_11
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mTogglesTheme:Landroid/preference/ListPreference;

if-ne p1, v5, :cond_12

check-cast p2, Ljava/lang/String;

invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

move-result v4

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "toggles_chooser"

invoke-static {v5, v6, v4}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

move-result v2

goto/16 :goto_0

:cond_12
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mNotificationPanelBackground:Landroid/preference/ListPreference;

if-ne p1, v5, :cond_13

check-cast p2, Ljava/lang/String;

invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

move-result v4

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "notification_panel_bg_chooser"

invoke-static {v5, v6, v4}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

move-result v2

goto/16 :goto_0

:cond_13
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mDialerChooser:Landroid/preference/ListPreference;

if-ne p1, v5, :cond_14

check-cast p2, Ljava/lang/String;

invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

move-result v4

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "dialer_chooser"

invoke-static {v5, v6, v4}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

move-result v2

goto/16 :goto_0

:cond_14
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mLockscreenEffect:Landroid/preference/ListPreference;

if-ne p1, v5, :cond_15

check-cast p2, Ljava/lang/String;

invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

move-result v4

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "unlock_effect"

invoke-static {v5, v6, v4}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

move-result v2

goto/16 :goto_0

:cond_15
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mBatteryStyle:Landroid/preference/ListPreference;

if-ne p1, v5, :cond_16

check-cast p2, Ljava/lang/String;

invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

move-result v4

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "battery_icon_list"

invoke-static {v5, v6, v4}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

move-result v2

goto/16 :goto_0

:cond_16
iget-object v5, p0, Lcom/android/settings/custommod/ModSettings;->mChargeBatteryStyle:Landroid/preference/ListPreference;

if-ne p1, v5, :cond_0

check-cast p2, Ljava/lang/String;

invoke-static {p2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

move-result v4

invoke-virtual {p0}, Lcom/android/settings/custommod/ModSettings;->getActivity()Landroid/app/Activity;

move-result-object v5

invoke-virtual {v5}, Landroid/app/Activity;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v5

const-string v6, "charge_battery_icon_list"

invoke-static {v5, v6, v4}, Landroid/provider/Settings$System;->putInt(Landroid/content/ContentResolver;Ljava/lang/String;I)Z

move-result v2

goto/16 :goto_0

.end method