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

Commit cd3abbf7 authored by Torbjorn Eklund's avatar Torbjorn Eklund Committed by Zoran Jovanovic
Browse files

Create new empty Bundles when creating new Call

...instead of using Bundle.EMPTY.

Bundle.EMPTY is a global static resource and will no
longer be empty if one Call adds data to this Bundle.

Change-Id: I58c5bdd46a7c3468a6a12f967469cd1280af36d6
parent 79b039f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -254,7 +254,7 @@ final class Call implements CreateConnectionResponse {
    private DisconnectCause mDisconnectCause = new DisconnectCause(DisconnectCause.UNKNOWN);

    /** Info used by the connection services. */
    private Bundle mExtras = Bundle.EMPTY;
    private Bundle mExtras = new Bundle();

    /** Set of listeners on this call.
     *
+2 −2
Original line number Diff line number Diff line
@@ -70,7 +70,7 @@ public class CallReceiver extends BroadcastReceiver {
            clientExtras = intent.getBundleExtra(TelecomManager.EXTRA_OUTGOING_CALL_EXTRAS);
        }
        if (clientExtras == null) {
            clientExtras = Bundle.EMPTY;
            clientExtras = new Bundle();
        }

        final boolean isDefaultDialer = intent.getBooleanExtra(KEY_IS_DEFAULT_DIALER, false);
@@ -113,7 +113,7 @@ public class CallReceiver extends BroadcastReceiver {
            clientExtras = intent.getBundleExtra(TelecomManager.EXTRA_INCOMING_CALL_EXTRAS);
        }
        if (clientExtras == null) {
            clientExtras = Bundle.EMPTY;
            clientExtras = new Bundle();
        }

        Log.d(TAG, "Processing incoming call from connection service [%s]",