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

Commit 1b2fd28f authored by Pawit Pornkitprasan's avatar Pawit Pornkitprasan
Browse files

CallsManager: fix starting call from Contacts app with MSim

The extras bundle may be Bundle.EMPTY, which immutable. Create our
own copy to modify.

Change-Id: If875eddc6afe9c5ca4b0d59a51902529cf115487
parent 79b039f5
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -545,6 +545,8 @@ public final class CallsManager extends Call.ListenerBase {
        if (needsAccountSelection) {
            // This is the state where the user is expected to select an account
            call.setState(CallState.PRE_DIAL_WAIT);
            // Create our own instance to modify (since extras may be Bundle.EMPTY)
            extras = new Bundle(extras);
            extras.putParcelableList(android.telecom.Call.AVAILABLE_PHONE_ACCOUNTS, accounts);
        } else {
            call.setState(CallState.CONNECTING);