From 2fa9142e1181ba265b3e06adf01dd6ba1f311863 Mon Sep 17 00:00:00 2001 From: Sailesh Nepal Date: Fri, 21 Feb 2014 09:43:50 -0800 Subject: Set initial connect time Currently the in-call UI doesn't show the correct call duration time. This CL sets an inital connect time if it's not already set. Change-Id: I779704acd2a004176d2aaf032112f3f44b4c8a0b (cherry picked from commit 92f24496ef8080ac552b97c8ef750f03d6a42f9e) --- InCallUI/src/com/android/incallui/InCallService.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'InCallUI') diff --git a/InCallUI/src/com/android/incallui/InCallService.java b/InCallUI/src/com/android/incallui/InCallService.java index 113072d61..2be1736de 100644 --- a/InCallUI/src/com/android/incallui/InCallService.java +++ b/InCallUI/src/com/android/incallui/InCallService.java @@ -70,6 +70,9 @@ public class InCallService extends Service { Call call = CallInfoTranslator.getCall(callId); if (null != call) { call.setState(Call.State.ACTIVE); + if (call.getConnectTime() == 0) { + call.setConnectTime(System.currentTimeMillis()); + } CallList.getInstance().onUpdate(call); } } -- cgit v1.2.3