Merge "Fix battery content description when there is no percent mode" into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4f3e0aa4d3
@@ -365,6 +365,10 @@ public class BatteryMeterView extends LinearLayout implements
|
|||||||
} else {
|
} else {
|
||||||
setPercentTextAtCurrentLevel();
|
setPercentTextAtCurrentLevel();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
setContentDescription(
|
||||||
|
getContext().getString(mCharging ? R.string.accessibility_battery_level_charging
|
||||||
|
: R.string.accessibility_battery_level, mLevel));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user