From 3ad17a13fb93fa70f165002e7a6ffead5facda1e Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Mon, 6 Apr 2015 16:02:10 -0700 Subject: Finish InCallActivity immediately for DisconnectCause.ERROR For DisconnectCause.ERROR, finish InCallActivity immediately instead of waiting for the 5s timeout. This is because a dialog is always shown for error cases, so the activity should finish as soon as the user acknowledges the dialog. Change-Id: I87d8cb9c0b7dabb20ed41b0ade13534a56a7a216 --- InCallUI/src/com/android/incallui/CallList.java | 1 + 1 file changed, 1 insertion(+) diff --git a/InCallUI/src/com/android/incallui/CallList.java b/InCallUI/src/com/android/incallui/CallList.java index f2d04cf11..aba83e586 100644 --- a/InCallUI/src/com/android/incallui/CallList.java +++ b/InCallUI/src/com/android/incallui/CallList.java @@ -457,6 +457,7 @@ public class CallList implements InCallPhoneListener { final int cause = call.getDisconnectCause().getCode(); final int delay; switch (cause) { + case DisconnectCause.ERROR: case DisconnectCause.LOCAL: delay = DISCONNECTED_CALL_SHORT_TIMEOUT_MS; break; -- cgit v1.2.3