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

Commit 05ffb482 authored by Steve Kondik's avatar Steve Kondik
Browse files

telecomm: Re-add original ParcelableConnection constructor

 * We changed this for the supplementary service notification feature,
   but some proprietary code has a bunch of dependencies on it.
 * Just add the original constructor and set the new field to zero so
   that the proprietary IMS stack doesn't need changing too.

Change-Id: I838536eab39e1539b5e933ba8a963029a733f6b7
parent f43e1ec8
Loading
Loading
Loading
Loading
+35 −0
Original line number Diff line number Diff line
@@ -85,6 +85,41 @@ public final class ParcelableConnection implements Parcelable {
        mCallSubstate = callSubstate;
    }

    /* @hide */
    public ParcelableConnection(
            PhoneAccountHandle phoneAccount,
            int state,
            int capabilities,
            Uri address,
            int addressPresentation,
            String callerDisplayName,
            int callerDisplayNamePresentation,
            IVideoProvider videoProvider,
            int videoState,
            boolean ringbackRequested,
            boolean isVoipAudioMode,
            StatusHints statusHints,
            DisconnectCause disconnectCause,
            List<String> conferenceableConnectionIds,
            int callSubstate) {
               mPhoneAccount = phoneAccount;
        mState = state;
        mCapabilities = capabilities;
        mProperties = 0;
        mAddress = address;
        mAddressPresentation = addressPresentation;
        mCallerDisplayName = callerDisplayName;
        mCallerDisplayNamePresentation = callerDisplayNamePresentation;
        mVideoProvider = videoProvider;
        mVideoState = videoState;
        mRingbackRequested = ringbackRequested;
        mIsVoipAudioMode = isVoipAudioMode;
        mStatusHints = statusHints;
        mDisconnectCause = disconnectCause;
        this.mConferenceableConnectionIds = conferenceableConnectionIds;
        mCallSubstate = callSubstate;
    } 

    public PhoneAccountHandle getPhoneAccount() {
        return mPhoneAccount;
    }