CMSettings: Add default overlay for forward and reverse lookup

Change-Id: I3510a3e136ef86a8d45847a0bf7a35fb426212f9
This commit is contained in:
Arne Coucheron 2016-07-23 00:26:29 +02:00 committed by Gerrit Code Review
parent 544d324c82
commit 55c755aa72
3 changed files with 18 additions and 0 deletions

View File

@ -67,9 +67,15 @@
<!-- Default for CMSettings.Secure.LOCKSCREEN_VISUALIZER_ENABLED --> <!-- Default for CMSettings.Secure.LOCKSCREEN_VISUALIZER_ENABLED -->
<bool name="def_lockscreen_visualizer">true</bool> <bool name="def_lockscreen_visualizer">true</bool>
<!-- Default value of CMSettings.System.ENABLE_FORWARD_LOOKUP -->
<integer name="def_forward_lookup">1</integer>
<!-- Default value of CMSettings.System.ENABLE_PEOPLE_LOOKUP --> <!-- Default value of CMSettings.System.ENABLE_PEOPLE_LOOKUP -->
<integer name="def_people_lookup">1</integer> <integer name="def_people_lookup">1</integer>
<!-- Default value of CMSettings.System.ENABLE_REVERSE_LOOKUP -->
<integer name="def_reverse_lookup">1</integer>
<!-- Defaults for Global --> <!-- Defaults for Global -->
<!-- Default for CMSettings.Global.DEVICE_NAME <!-- Default for CMSettings.Global.DEVICE_NAME

View File

@ -377,9 +377,15 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
loadBooleanSetting(stmt, CMSettings.System.SYSTEM_PROFILES_ENABLED, loadBooleanSetting(stmt, CMSettings.System.SYSTEM_PROFILES_ENABLED,
R.bool.def_profiles_enabled); R.bool.def_profiles_enabled);
loadIntegerSetting(stmt, CMSettings.System.ENABLE_FORWARD_LOOKUP,
R.integer.def_forward_lookup);
loadIntegerSetting(stmt, CMSettings.System.ENABLE_PEOPLE_LOOKUP, loadIntegerSetting(stmt, CMSettings.System.ENABLE_PEOPLE_LOOKUP,
R.integer.def_people_lookup); R.integer.def_people_lookup);
loadIntegerSetting(stmt, CMSettings.System.ENABLE_REVERSE_LOOKUP,
R.integer.def_reverse_lookup);
loadBooleanSetting(stmt, CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE, loadBooleanSetting(stmt, CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE,
R.bool.def_notification_pulse_custom_enable); R.bool.def_notification_pulse_custom_enable);

View File

@ -55,9 +55,15 @@ public class CMSettingsProviderDefaultsTest extends AndroidTestCase {
SYSTEM_SETTINGS_DEFAULTS.add(new Setting( SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
CMSettings.System.NOTIFICATION_LIGHT_BRIGHTNESS_LEVEL, CMSettings.System.NOTIFICATION_LIGHT_BRIGHTNESS_LEVEL,
"R.integer.def_notification_brightness_level")); "R.integer.def_notification_brightness_level"));
SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
CMSettings.System.ENABLE_FORWARD_LOOKUP,
"R.integer.def_forward_lookup"));
SYSTEM_SETTINGS_DEFAULTS.add(new Setting( SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
CMSettings.System.ENABLE_PEOPLE_LOOKUP, CMSettings.System.ENABLE_PEOPLE_LOOKUP,
"R.integer.def_people_lookup")); "R.integer.def_people_lookup"));
SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
CMSettings.System.ENABLE_REVERSE_LOOKUP,
"R.integer.def_reverse_lookup"));
SYSTEM_SETTINGS_DEFAULTS.add(new Setting( SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
CMSettings.System.NOTIFICATION_LIGHT_MULTIPLE_LEDS_ENABLE, CMSettings.System.NOTIFICATION_LIGHT_MULTIPLE_LEDS_ENABLE,
"R.bool.def_notification_multiple_leds")); "R.bool.def_notification_multiple_leds"));