summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);