Merge "Use ThemedBatteryDrawable in settings"

This commit is contained in:
TreeHugger Robot
2019-02-27 06:02:49 +00:00
committed by Android (Google) Code Review
3 changed files with 12 additions and 26 deletions

View File

@@ -73,14 +73,14 @@ public class BatteryMeterViewTest {
public void testSetBatteryInfo_levelLow_setErrorColor() {
mBatteryMeterView.setBatteryLevel(BATTERY_LOW_LEVEL);
verify(mDrawable).setBatteryColorFilter(mErrorColorFilter);
verify(mDrawable).setColorFilter(mErrorColorFilter);
}
@Test
public void testSetBatteryInfo_levelNormal_setNormalColor() {
mBatteryMeterView.setBatteryLevel(BATTERY_LEVEL);
verify(mDrawable).setBatteryColorFilter(mAccentColorFilter);
verify(mDrawable).setColorFilter(mAccentColorFilter);
}
@Test