Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ad17a13 authored by Yorke Lee's avatar Yorke Lee
Browse files

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
parent 18c0feda
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;