From 14530a851cb581b48e5d5eca33ca9a1b56c9887f Mon Sep 17 00:00:00 2001 From: Ricardo Cerqueira Date: Fri, 21 Jun 2013 18:45:22 +0100 Subject: Fix DateUtils.formatElapsedTime, again Remove extraneous "hours" argument in the <10 minutes case Change-Id: I5a5913d2e0744f5783f8422cddc30603c7bd703f --- core/java/android/text/format/DateUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/text/format/DateUtils.java b/core/java/android/text/format/DateUtils.java index 7872416..7845d8f 100644 --- a/core/java/android/text/format/DateUtils.java +++ b/core/java/android/text/format/DateUtils.java @@ -675,7 +675,7 @@ public class DateUtils } else if (minutes < 10) { /* For MR1 Holo CTS, the minutes can't be zero-padded */ String FAST_FORMAT_MMSS = "%1$d:%2$02d"; - return f.format(FAST_FORMAT_MMSS, hours, minutes, seconds).toString(); + return f.format(FAST_FORMAT_MMSS, minutes, seconds).toString(); } else { return f.format(sElapsedFormatMMSS, minutes, seconds).toString(); } -- cgit v1.1