CMSettingsProvider: Define battery style default.
Change-Id: Ic0cea75783ee5a0a7be3d0a24e57588ca177169a TICKET: CYNGNOS-2041
This commit is contained in:
parent
182b972c0b
commit
c8e4f0066f
@ -51,6 +51,16 @@
|
||||
<!-- Default for CMSettings.Secure.STATS_COLLECTION -->
|
||||
<bool name="def_stats_collection">false</bool>
|
||||
|
||||
<!-- Default for CMSettings.System.STATUS_BAR_BATTERY_STYLE
|
||||
* 0: Display the battery as icon in portrait mode
|
||||
* 2: Display the battery as a circle
|
||||
* 4: Hide the battery status information
|
||||
* 5: Display the battery as icon in landscape mode
|
||||
* 6: Display the battery as plain text
|
||||
* default: 2
|
||||
-->
|
||||
<integer name="def_battery_style">2</integer>
|
||||
|
||||
<!-- Default for CMSettings.Secure.QS_USE_MAIN_TILES -->
|
||||
<bool name="def_sysui_qs_main_tiles">true</bool>
|
||||
|
||||
|
@ -296,6 +296,9 @@ public class CMDatabaseHelper extends SQLiteOpenHelper{
|
||||
loadBooleanSetting(stmt, CMSettings.System.SWAP_VOLUME_KEYS_ON_ROTATION,
|
||||
R.bool.def_swap_volume_keys_on_rotation);
|
||||
|
||||
loadIntegerSetting(stmt, CMSettings.System.STATUS_BAR_BATTERY_STYLE,
|
||||
R.integer.def_battery_style);
|
||||
|
||||
if (mContext.getResources().getBoolean(R.bool.def_notification_pulse_custom_enable)) {
|
||||
loadStringSetting(stmt, CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES,
|
||||
R.string.def_notification_pulse_custom_value);
|
||||
|
@ -73,6 +73,9 @@ public class CMSettingsProviderDefaultsTest extends AndroidTestCase {
|
||||
SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
|
||||
CMSettings.System.NOTIFICATION_LIGHT_PULSE_CUSTOM_VALUES,
|
||||
"R.string.def_notification_pulse_custom_value"));
|
||||
SYSTEM_SETTINGS_DEFAULTS.add(new Setting(
|
||||
CMSettings.System.STATUS_BAR_BATTERY_STYLE,
|
||||
"R.integer.def_battery_style"));
|
||||
}
|
||||
|
||||
//SECURE
|
||||
|
Loading…
Reference in New Issue
Block a user