diff options
author | Adnan <adnan@cyngn.com> | 2015-02-26 18:18:31 -0800 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-29 17:36:28 -0700 |
commit | 5719bbe75399c6efeb1b8c3407afea455e0baa9c (patch) | |
tree | 1b48fbae62a19e31a2c32e4cb77dfb3e079fb169 | |
parent | 45c206d2846e52d4a8c39e5328daf8130ae30445 (diff) | |
download | packages_apps_Settings-5719bbe75399c6efeb1b8c3407afea455e0baa9c.zip packages_apps_Settings-5719bbe75399c6efeb1b8c3407afea455e0baa9c.tar.gz packages_apps_Settings-5719bbe75399c6efeb1b8c3407afea455e0baa9c.tar.bz2 |
Settings: Update setting constants.
Change-Id: Ie8ceba9adf0fb1a570e7f3287e136f12ac1328dd
-rw-r--r-- | src/com/android/settings/ButtonSettings.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/android/settings/ButtonSettings.java b/src/com/android/settings/ButtonSettings.java index d682dc3..b0a52e8 100644 --- a/src/com/android/settings/ButtonSettings.java +++ b/src/com/android/settings/ButtonSettings.java @@ -574,18 +574,18 @@ public class ButtonSettings extends SettingsPreferenceFragment implements Editor editor = prefs.edit(); if (enabled) { - int currentBrightness = Settings.System.getInt(context.getContentResolver(), - Settings.System.BUTTON_BRIGHTNESS, defaultBrightness); + int currentBrightness = Settings.Secure.getInt(context.getContentResolver(), + Settings.Secure.BUTTON_BRIGHTNESS, defaultBrightness); if (!prefs.contains("pre_navbar_button_backlight")) { editor.putInt("pre_navbar_button_backlight", currentBrightness); } - Settings.System.putInt(context.getContentResolver(), - Settings.System.BUTTON_BRIGHTNESS, 0); + Settings.Secure.putInt(context.getContentResolver(), + Settings.Secure.BUTTON_BRIGHTNESS, 0); } else { int oldBright = prefs.getInt("pre_navbar_button_backlight", -1); if (oldBright != -1) { - Settings.System.putInt(context.getContentResolver(), - Settings.System.BUTTON_BRIGHTNESS, oldBright); + Settings.Secure.putInt(context.getContentResolver(), + Settings.Secure.BUTTON_BRIGHTNESS, oldBright); editor.remove("pre_navbar_button_backlight"); } } |