summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2016-04-29 14:47:00 -0700
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-05-02 16:17:34 -0700
commitadbe561620aa74c3c3121cbde26e784237cde7e9 (patch)
tree1c69402800efc28d869ca4b193b4cb0d32b5b6d3 /core
parent31f30262d388e1d023c677cd0425992c3c9a4971 (diff)
downloadframeworks_base-adbe561620aa74c3c3121cbde26e784237cde7e9.zip
frameworks_base-adbe561620aa74c3c3121cbde26e784237cde7e9.tar.gz
frameworks_base-adbe561620aa74c3c3121cbde26e784237cde7e9.tar.bz2
Settings: defer DEV_FORCE_SHOW_NAVBAR query to CMSettings
Some apps were using Settings.System.DEV_FORCE_SHOW_NAVBAR to determine whether the device was forcing a nav bar. It was then moved to Settings.Secure, and then to CMSettings.Secure. So some apps check against Settings.System, and some may check against Settings.Secure. The real value lives in CMSettings.Secure right now. We could not intercept the setting because MOVED_TO_SECURE would return the already-cached value from Settings.Secure, not allowing us to intercept the call in CMSettings. With this removal, we can handle the logic for this key in CMSettingsProvider. Ticket: CYNGNOS-2480 Change-Id: I7485c0d0acf90df365e5ed5ebdb42596d148de62 Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'core')
-rw-r--r--core/java/android/provider/Settings.java1
1 files changed, 0 insertions, 1 deletions
diff --git a/core/java/android/provider/Settings.java b/core/java/android/provider/Settings.java
index 5045b1a..3ab16fe 100644
--- a/core/java/android/provider/Settings.java
+++ b/core/java/android/provider/Settings.java
@@ -1509,7 +1509,6 @@ public final class Settings {
// At one time in System, then Global, but now back in Secure
MOVED_TO_SECURE.add(Secure.INSTALL_NON_MARKET_APPS);
- MOVED_TO_SECURE.add(System.DEV_FORCE_SHOW_NAVBAR);
MOVED_TO_SECURE.add(System.KEYBOARD_BRIGHTNESS);
MOVED_TO_SECURE.add(System.BUTTON_BRIGHTNESS);
MOVED_TO_SECURE.add(System.BUTTON_BACKLIGHT_TIMEOUT);