diff options
author | Jozef BABJAK <jozef.babjak@gmail.com> | 2011-02-22 07:20:30 +0100 |
---|---|---|
committer | Jozef BABJAK <jozef.babjak@gmail.com> | 2011-02-22 07:20:30 +0100 |
commit | 47f13e7c52b260858bab42217d2101741ea8bc46 (patch) | |
tree | 1e1211a1212b44ade8c08d434c2be1305675f012 | |
parent | 7118bdec523568842e70555e353951df9f2596fd (diff) | |
download | frameworks_base-47f13e7c52b260858bab42217d2101741ea8bc46.zip frameworks_base-47f13e7c52b260858bab42217d2101741ea8bc46.tar.gz frameworks_base-47f13e7c52b260858bab42217d2101741ea8bc46.tar.bz2 |
Fixing infinite loop for zero duration.
Change-Id: I837478c1598f1d2f99bf773597f0d66d0fc3cf1a
-rw-r--r-- | core/java/android/util/TimeUtils.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/util/TimeUtils.java b/core/java/android/util/TimeUtils.java index 60ca384..ceecbce 100644 --- a/core/java/android/util/TimeUtils.java +++ b/core/java/android/util/TimeUtils.java @@ -191,7 +191,7 @@ public class TimeUtils { int pos = 0; fieldLen -= 1; while (pos < fieldLen) { - formatStr[pos] = ' '; + formatStr[pos++] = ' '; } formatStr[pos] = '0'; return pos+1; |