diff options
author | Narendra <nagarw@codeaurora.org> | 2017-01-03 18:12:45 +0530 |
---|---|---|
committer | Narendra <nagarw@codeaurora.org> | 2017-01-03 18:12:45 +0530 |
commit | dc59d4190b4ab808274ec8ce825b26b1fea1b685 (patch) | |
tree | 6cb565c4d260c7d6c842227a93a1caab275eef40 /InCallUI/src/com/android/incallui | |
parent | b94019f32f3d82f7027bf91685de1dbe5b8add58 (diff) |
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 <nagarw@codeaurora.org>
Diffstat (limited to 'InCallUI/src/com/android/incallui')
-rw-r--r-- | InCallUI/src/com/android/incallui/CallCardPresenter.java | 6 |
1 files changed, 4 insertions, 2 deletions
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<CallCardPresenter.CallCardUi> 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); + } } } |