From dc59d4190b4ab808274ec8ce825b26b1fea1b685 Mon Sep 17 00:00:00 2001 From: Narendra Date: Tue, 3 Jan 2017 18:12:45 +0530 Subject: Fix conference call duration issue The conf call start time is updated with a delay resulting in abnormal display of the conf call duration. Fixed by updating the duration only when the call start time is non-zero. Change-Id: I6a1b6c0ab0021d6e6e260bf1743487ec364366c4 Signed-off-by: Narendra --- InCallUI/src/com/android/incallui/CallCardPresenter.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'InCallUI/src') diff --git a/InCallUI/src/com/android/incallui/CallCardPresenter.java b/InCallUI/src/com/android/incallui/CallCardPresenter.java index 10bf5e612..76dd84928 100644 --- a/InCallUI/src/com/android/incallui/CallCardPresenter.java +++ b/InCallUI/src/com/android/incallui/CallCardPresenter.java @@ -541,8 +541,10 @@ public class CallCardPresenter extends Presenter mCallTimer.cancel(); } else { final long callStart = mPrimary.getConnectTimeMillis(); - final long duration = System.currentTimeMillis() - callStart; - ui.setPrimaryCallElapsedTime(true, duration); + if (callStart > 0) { + final long duration = System.currentTimeMillis() - callStart; + ui.setPrimaryCallElapsedTime(true, duration); + } } } -- cgit v1.2.3