aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoman Birg <roman@cyngn.com>2015-12-08 15:11:42 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2015-12-16 15:40:32 -0800
commita61af19bdc9e2793ac6eea4e7cc9c5f6b4590e8c (patch)
tree9dbcbe04d2a010fba6d67a22c64b17df24bcbeb6
parentba670bf88fb3ad2de948fc0a4e4a6e257a92f8ad (diff)
downloadvendor_cmsdk-a61af19bdc9e2793ac6eea4e7cc9c5f6b4590e8c.zip
vendor_cmsdk-a61af19bdc9e2793ac6eea4e7cc9c5f6b4590e8c.tar.gz
vendor_cmsdk-a61af19bdc9e2793ac6eea4e7cc9c5f6b4590e8c.tar.bz2
cmsdk: add LOCKSCREEN_VISUALIZER_ENABLED
Change-Id: Ia8b11083a54195acfebab76c646987962b798c16 Signed-off-by: Roman Birg <roman@cyngn.com>
-rw-r--r--packages/CMSettingsProvider/res/values/defaults.xml3
-rw-r--r--packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java3
-rw-r--r--src/java/cyanogenmod/providers/CMSettings.java10
3 files changed, 15 insertions, 1 deletions
diff --git a/packages/CMSettingsProvider/res/values/defaults.xml b/packages/CMSettingsProvider/res/values/defaults.xml
index ffc9c88..3a514f8 100644
--- a/packages/CMSettingsProvider/res/values/defaults.xml
+++ b/packages/CMSettingsProvider/res/values/defaults.xml
@@ -47,6 +47,9 @@
<!-- Default for CMSettings.Secure.QS_USE_MAIN_TILES -->
<bool name="def_sysui_qs_main_tiles">true</bool>
+ <!-- Default for CMSettings.Secure.LOCKSCREEN_VISUALIZER_ENABLED -->
+ <bool name="def_lockscreen_visualizer">true</bool>
+
<!-- Defaults for Global -->
<!-- Default for CMSettings.Global.DEVICE_NAME
diff --git a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java
index 4257c42..5d40866 100644
--- a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java
+++ b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java
@@ -236,6 +236,9 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
loadBooleanSetting(db, CMTableNames.TABLE_SECURE, CMSettings.Secure.STATS_COLLECTION,
R.bool.def_stats_collection);
+
+ loadBooleanSetting(db, CMTableNames.TABLE_SECURE,
+ CMSettings.Secure.LOCKSCREEN_VISUALIZER_ENABLED, R.bool.def_lockscreen_visualizer);
}
private void loadSystemSettings(SQLiteDatabase db) {
diff --git a/src/java/cyanogenmod/providers/CMSettings.java b/src/java/cyanogenmod/providers/CMSettings.java
index cf146ad..61eb079 100644
--- a/src/java/cyanogenmod/providers/CMSettings.java
+++ b/src/java/cyanogenmod/providers/CMSettings.java
@@ -2618,6 +2618,12 @@ public final class CMSettings {
*/
public static final String QS_LOCATION_ADVANCED = "qs_location_advanced";
+ /**
+ * Whether to show the keyguard visualizer.
+ * Boolean setting. 0 = off, 1 = on.
+ * @hide
+ */
+ public static final String LOCKSCREEN_VISUALIZER_ENABLED = "lockscreen_visualizer";
// endregion
/**
@@ -2656,7 +2662,9 @@ public final class CMSettings {
CMSettings.Secure.DEVELOPMENT_SHORTCUT,
CMSettings.Secure.PERFORMANCE_PROFILE,
CMSettings.Secure.APP_PERFORMANCE_PROFILES_ENABLED,
- CMSettings.Secure.QS_LOCATION_ADVANCED};
+ CMSettings.Secure.QS_LOCATION_ADVANCED,
+ CMSettings.Secure.LOCKSCREEN_VISUALIZER_ENABLED,
+ };
/**
* @hide