LLS: Allow default enabled events to be overlaid

Change-Id: I4607c0cace28c0987c2ed13d04db7c1eb67a1d0b
TICKET: CYNGNOS-3103
This commit is contained in:
d34d 2016-06-26 08:34:04 -07:00
parent 131de78e2e
commit e1c502d3cf
2 changed files with 10 additions and 0 deletions

View File

@ -110,4 +110,10 @@
<!-- Default temperature unit (CELSIUS) -->
<integer name="def_temperature_unit">2</integer>
<!-- Default enabled event based LLS components
Contains a list of component names for enabled components, separated by '|'
ex. com.example.mylls/com.example.mylls.LiveLockScreen|com.example.anotherLls/com.example.anotherLls.MyLls
-->
<string name="def_enabled_event_lls_components"></string>
</resources>

View File

@ -347,6 +347,10 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
CMSettings.Secure.PROTECTED_COMPONENT_MANAGERS,
R.string.def_protected_component_managers);
loadStringSetting(stmt,
CMSettings.Secure.ENABLED_EVENT_LIVE_LOCKS_KEY,
R.string.def_enabled_event_lls_components);
final String provisionedFlag = Settings.Global.getString(mContext.getContentResolver(),
Settings.Global.DEVICE_PROVISIONED);
loadSetting(stmt, CMSettings.Secure.CM_SETUP_WIZARD_COMPLETED, provisionedFlag);