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
diff --git a/InCallUI/src/com/android/incallui/CallList.java b/InCallUI/src/com/android/incallui/CallList.java
index f2d04cf..aba83e5 100644
--- a/InCallUI/src/com/android/incallui/CallList.java
+++ b/InCallUI/src/com/android/incallui/CallList.java
@@ -457,6 +457,7 @@
final int cause = call.getDisconnectCause().getCode();
final int delay;
switch (cause) {
+ case DisconnectCause.ERROR:
case DisconnectCause.LOCAL:
delay = DISCONNECTED_CALL_SHORT_TIMEOUT_MS;
break;