diff options
author | Sailesh Nepal <sail@google.com> | 2014-02-21 09:43:50 -0800 |
---|---|---|
committer | Sailesh Nepal <sail@google.com> | 2014-02-21 19:50:52 +0000 |
commit | 2fa9142e1181ba265b3e06adf01dd6ba1f311863 (patch) | |
tree | 9fb0ef2b2284afc08ff93ee4a9eb705e96a68462 /InCallUI | |
parent | 07747e6dfaa0a6cd11f1fa3163c3b3665dbdb2f5 (diff) |
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)
Diffstat (limited to 'InCallUI')
-rw-r--r-- | InCallUI/src/com/android/incallui/InCallService.java | 3 |
1 files changed, 3 insertions, 0 deletions
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); } } |