summaryrefslogtreecommitdiff
path: root/InCallUI
diff options
context:
space:
mode:
authorSantos Cordon <santoscordon@google.com>2014-03-27 15:53:48 -0700
committerSantos Cordon <santoscordon@google.com>2014-03-31 16:10:18 -0700
commit965630a9c6ff19c158acd05cb9d2ea285162b7d9 (patch)
tree8136e02a00f5870fc242f4a473afb0c25bf465fb /InCallUI
parenta3568bb2f52edacf85a63604011f145016bfed9c (diff)
Update to disconnect-cause APIs.
Change-Id: I59d5bd7ddaa9924f7f0862b0e5091274e150cbcd
Diffstat (limited to 'InCallUI')
-rw-r--r--InCallUI/src/com/android/incallui/InCallServiceImpl.java9
1 files changed, 3 insertions, 6 deletions
diff --git a/InCallUI/src/com/android/incallui/InCallServiceImpl.java b/InCallUI/src/com/android/incallui/InCallServiceImpl.java
index f2ebb4bd0..7bfeab90e 100644
--- a/InCallUI/src/com/android/incallui/InCallServiceImpl.java
+++ b/InCallUI/src/com/android/incallui/InCallServiceImpl.java
@@ -16,14 +16,10 @@
package com.android.incallui;
-import android.app.Service;
-import android.content.Intent;
-import android.os.Handler;
-import android.os.IBinder;
-import android.os.Looper;
import android.telecomm.CallAudioState;
import android.telecomm.CallInfo;
import android.telecomm.InCallAdapter;
+import android.telephony.DisconnectCause;
import com.android.services.telephony.common.Call;
import com.google.common.collect.ImmutableList;
@@ -84,9 +80,10 @@ public class InCallServiceImpl extends android.telecomm.InCallService {
}
/** {@inheritDoc} */
- @Override protected void setDisconnected(String callId) {
+ @Override protected void setDisconnected(String callId, int disconnectCause) {
Call call = CallInfoTranslator.getCall(callId);
if (null != call) {
+ call.setDisconnectCause(DisconnectCause.NORMAL);
call.setState(Call.State.DISCONNECTED);
CallList.getInstance().onDisconnect(call);