Add overlay for SWAP_VOLUME_KEYS_ON_ROTATION

This got lost along the transition

Change-Id: I35f5c6cdd73ff1d4a590fa6980d3214dda2bd740
This commit is contained in:
Ricardo Cerqueira 2016-01-22 18:07:34 +00:00
parent f499009346
commit 20d9638593
2 changed files with 5 additions and 0 deletions

View File

@ -87,4 +87,6 @@
<bool name="def_notification_pulse_custom_enable">false</bool>
<string name="def_notification_pulse_custom_value"></string>
<bool name="def_swap_volume_keys_on_rotation">false</bool>
</resources>

View File

@ -262,6 +262,9 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
loadBooleanSetting(db, CMTableNames.TABLE_SYSTEM, CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_ENABLE,
R.bool.def_notification_pulse_custom_enable);
loadBooleanSetting(db, CMTableNames.TABLE_SYSTEM, CMSettings.System.SWAP_VOLUME_KEYS_ON_ROTATION,
R.bool.def_swap_volume_keys_on_rotation);
if (mContext.getResources().getBoolean(R.bool.def_notification_pulse_custom_enable)) {
loadStringSetting(db, CMTableNames.TABLE_SYSTEM, CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES,
R.string.def_notification_pulse_custom_value);