Fix summary for system components which 30 sec <= usage time < 1 min.
- formatElapsedTimeWithoutComma(withSecords = false,) will round up minutes by adding 30 seconds. https://screenshot.googleplex.com/8HrDpLi8FX8tjJy Bug: 321265878 Test: Manual Change-Id: I779bd7c33bbb3aefa0a88f6ba42d047259bc50cc
This commit is contained in:
@@ -670,7 +670,7 @@ public class BatteryUtils {
|
||||
long timeInMs,
|
||||
final int lessThanOneMinuteResId,
|
||||
final int normalResId) {
|
||||
if (timeInMs < DateUtils.MINUTE_IN_MILLIS) {
|
||||
if (timeInMs <= DateUtils.MINUTE_IN_MILLIS / 2) {
|
||||
return context.getString(lessThanOneMinuteResId);
|
||||
}
|
||||
final CharSequence timeSequence =
|
||||
|
||||
Reference in New Issue
Block a user