diff options
author | Sarmad Hashmi <mhashmi@google.com> | 2016-02-10 17:41:12 -0800 |
---|---|---|
committer | Sarmad Hashmi <mhashmi@google.com> | 2016-02-24 21:45:50 +0000 |
commit | 6d8399afae309207237456c27b336d948ed912ff (patch) | |
tree | 196e2ddcbefb4d2427f0888d6eebec8b5ca28e88 /tests/src/com/android | |
parent | 5d9fdc591a5e8b5b8b0cbb1d9060f10fc2816325 (diff) |
Fix bug where 00:00 duration is shown for voicemails without a duration.
Instead of showing a 00:00 duration, nothing is displayed. When the
content is loaded, the duration field for the call log entry associated
with the voicemail is updated with the duration fetched from the
mediaplayer. The proper duration is then displayed in MM:SS format.
BUG=24175525
Change-Id: I1cafebae4fcbc749f573accfcf8833b598675f0b
(cherry picked from commit 6f3016d9065564bf09a5759f16563a05abbe105d)
Diffstat (limited to 'tests/src/com/android')
-rw-r--r-- | tests/src/com/android/dialer/calllog/PhoneCallDetailsHelperTest.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/src/com/android/dialer/calllog/PhoneCallDetailsHelperTest.java b/tests/src/com/android/dialer/calllog/PhoneCallDetailsHelperTest.java index 4e00a462b..c0d1203d9 100644 --- a/tests/src/com/android/dialer/calllog/PhoneCallDetailsHelperTest.java +++ b/tests/src/com/android/dialer/calllog/PhoneCallDetailsHelperTest.java @@ -158,7 +158,7 @@ public class PhoneCallDetailsHelperTest extends AndroidTestCase { public void testVoicemailDuration_Zero() { setVoicemailPhoneCallDetailsWithDuration(0); - assertDurationExactEquals("00:00"); + assertLocationAndDateExactEquals("Jun 3 at 1:00 PM"); } public void testVoicemailDuration_EvenMinute() { |