From 6d8399afae309207237456c27b336d948ed912ff Mon Sep 17 00:00:00 2001 From: Sarmad Hashmi Date: Wed, 10 Feb 2016 17:41:12 -0800 Subject: 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) --- tests/src/com/android/dialer/calllog/PhoneCallDetailsHelperTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/src/com/android') 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() { -- cgit v1.2.3