[Battery] New icon updates
- Changed the BatteryFillDrawable to support dynamic inset between the fill and the frame. This amounts to calculating the drawing insets when the value changes, and storing local references to the non-scaled values so that we can update them. - Dynamic fill is now set to (if attribution-showing? 0 1.5) - Upgraded `showErrorState` to a `ColorProfile` type - BatteryMeterView now calculates the color profile for any given state. - Battery fill is now the only thing we color for different profiles. Everything else is using the foreground color - Lastly, reduced the height of the status bar battery from 14sp -> 12sp. This yields some gnarly decimal width, but such is life Test: manual using `adb shell cmd battery` and subcommands `unplug`, `set level N`. Test: manual by setting battery saver mode, plugging / unplugging the device Test: go/battery-2024-companion Bug: 330707481 Flag: ACONFIG com.android.settingslib.flags.new_status_bar_icons TEAMFOOD Change-Id: Idd651a023fee4a7c796c46d5990f7a90df92dc76
Loading
Please register or sign in to comment