From eb857b7f5fe3bef77dde91693f18cabd8c6d15d5 Mon Sep 17 00:00:00 2001 From: Santos Cordon Date: Mon, 18 Nov 2013 17:03:04 -0800 Subject: Decrease the timeout for unknown endcall screen from 5 to 2 sec. bug:11651065 Change-Id: I1ab2b3690a4bb655e94811c8831a6da0d9400edb --- InCallUI/src/com/android/incallui/CallList.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'InCallUI') diff --git a/InCallUI/src/com/android/incallui/CallList.java b/InCallUI/src/com/android/incallui/CallList.java index ba123b0c1..dee275570 100644 --- a/InCallUI/src/com/android/incallui/CallList.java +++ b/InCallUI/src/com/android/incallui/CallList.java @@ -25,6 +25,7 @@ import android.os.Handler; import android.os.Message; import com.android.services.telephony.common.Call; +import com.android.services.telephony.common.Call.DisconnectCause; import java.util.ArrayList; import java.util.HashMap; @@ -310,7 +311,9 @@ public class CallList { if (state != Call.State.IDLE && state != Call.State.INVALID && state != Call.State.DISCONNECTED) { + call.setState(Call.State.DISCONNECTED); + call.setDisconnectCause(DisconnectCause.UNKNOWN); updateCallInMap(call); } } @@ -380,6 +383,7 @@ public class CallList { delay = DISCONNECTED_CALL_SHORT_TIMEOUT_MS; break; case NORMAL: + case UNKNOWN: delay = DISCONNECTED_CALL_MEDIUM_TIMEOUT_MS; break; case INCOMING_REJECTED: -- cgit v1.2.3