sdk: Update for refactored battery icon options

* Handle the migration for old settings and default
   to Android's stock battery style.
 * Hiding battery icon is now achieved using icon blacklist
   via system tuner settings.

Change-Id: Ie41d71c774a34abe225e2c0a6a0a9fd4316189cd
This commit is contained in:
Hendrik Hagendorn
2017-01-15 08:45:51 +01:00
committed by Bruno Martins
parent 70f6d6b61e
commit 5ded0fcf6c
4 changed files with 48 additions and 17 deletions

View File

@@ -923,17 +923,15 @@ public final class LineageSettings {
/**
* Display style of the status bar battery information
* 0: Display the battery an icon in portrait mode
* 2: Display the battery as a circle
* 4: Hide the battery status information
* 5: Display the battery an icon in landscape mode
* 6: Display the battery as plain text
* 1: Display the battery as a circle
* 2: Display the battery as plain text
* default: 0
*/
public static final String STATUS_BAR_BATTERY_STYLE = "status_bar_battery_style";
/** @hide */
public static final Validator STATUS_BAR_BATTERY_STYLE_VALIDATOR =
new DiscreteValueValidator(new String[] {"0", "2", "4", "5", "6"});
new InclusiveIntegerRangeValidator(0, 2);
/**
* Status bar battery %