Move the logic of batteryMeterDrawable to settingslib
In Settings, we also need a BatteryMeterDrawable to show battery meter, that's why I move it to settingslib. In this cl, what I have changed is listed below: 1. Create BatteryMeterDrawableLib that contains logic of battery drawing. 2. Still Keep the battery control logic in systemui. 3. Remove hardcoded battery color by using the color state lists. 4. Move some tests to settingslib Bug: 34771849 Test: make SettingsLibTests Change-Id: I39c0f0e31ca5e1b958467298db1d0590d16c9f6d
Loading
Please register or sign in to comment