diff options
author | Roman Birg <roman@cyngn.com> | 2015-12-18 09:37:00 -0800 |
---|---|---|
committer | Roman Birg <roman@cyngn.com> | 2015-12-21 10:30:15 -0800 |
commit | cb4a990216b9e0960a6c927651eba8649f8d9619 (patch) | |
tree | eed8e6f238926fa316ea8b60699168620af55262 /packages | |
parent | c81519d31be8a2adac3d51f2656bcb1708919e57 (diff) | |
download | vendor_cmsdk-cb4a990216b9e0960a6c927651eba8649f8d9619.zip vendor_cmsdk-cb4a990216b9e0960a6c927651eba8649f8d9619.tar.gz vendor_cmsdk-cb4a990216b9e0960a6c927651eba8649f8d9619.tar.bz2 |
Profiles: add isEnabled(); send state changes
Ref: CYNGNOS-1461
Change-Id: Idee9417a2f0b181c8d15cd763859c0a0e581dce6
Signed-off-by: Roman Birg <roman@cyngn.com>
Diffstat (limited to 'packages')
-rw-r--r-- | packages/CMSettingsProvider/res/values/defaults.xml | 3 | ||||
-rw-r--r-- | packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/packages/CMSettingsProvider/res/values/defaults.xml b/packages/CMSettingsProvider/res/values/defaults.xml index fa5cfef..98a9c12 100644 --- a/packages/CMSettingsProvider/res/values/defaults.xml +++ b/packages/CMSettingsProvider/res/values/defaults.xml @@ -23,6 +23,9 @@ 2. Left --> <integer name="def_qs_quick_pulldown">0</integer> + <!-- Default for CMSettings.System.SYSTEM_PROFILES_ENABLED --> + <bool name="def_profiles_enabled">true</bool> + <!-- Defaults for Secure --> <!-- Default for CMSettings.Secure.ADVANCED_MODE --> diff --git a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java index 5d40866..17335e6 100644 --- a/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java +++ b/packages/CMSettingsProvider/src/org/cyanogenmod/cmsettings/CMDatabaseHelper.java @@ -251,6 +251,9 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{ loadBooleanSetting(db, CMTableNames.TABLE_SYSTEM, CMSettings.System.NOTIFICATION_LIGHT_MULTIPLE_LEDS_ENABLE, R.bool.def_notification_multiple_leds); + + loadBooleanSetting(db, CMTableNames.TABLE_SYSTEM, CMSettings.System.SYSTEM_PROFILES_ENABLED, + R.bool.def_profiles_enabled); } private void loadGlobalSettings(SQLiteDatabase db) { |