summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-04-06 16:02:10 -0700
committerYorke Lee <yorkelee@google.com>2015-04-06 16:02:10 -0700
commit3ad17a13fb93fa70f165002e7a6ffead5facda1e (patch)
treebe3efb27f1e14b6359f8114219ce5b3c9adcfffb
parent18c0feda76fe333f3db1bf7bd307458a9e6b6005 (diff)
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
-rw-r--r--InCallUI/src/com/android/incallui/CallList.java1
1 files changed, 1 insertions, 0 deletions
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;