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

Commit e8604c8b authored by LuK1337's avatar LuK1337 Committed by Danny Baumann
Browse files

msim: Fix saving default sim from select SIM dialog (1/2)

Jira: NIGHTLIES-1372

Change-Id: I512525dde7f1a7d45c2ef7e6f3a990552b363b17
parent 672fa1ea
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -715,10 +715,10 @@ public final class Call {

    /**
     * Notifies this {@code Call} that an account has been selected and to proceed with placing
     * an outgoing call.
     * an outgoing call. Optionally sets this account as the default account.
     */
    public void phoneAccountSelected(PhoneAccountHandle accountHandle, boolean setDefault) {
        mInCallAdapter.phoneAccountSelected(mTelecomCallId, accountHandle);
        mInCallAdapter.phoneAccountSelected(mTelecomCallId, accountHandle, setDefault);

    }

+7 −5
Original line number Diff line number Diff line
@@ -205,14 +205,16 @@ public final class InCallAdapter {
    }

    /**
     * Instructs Telecom to add a PhoneAccountHandle to the specified call
     * Instructs Telecom to add a PhoneAccountHandle to the specified call.
     *
     * @param callId The identifier of the call
     * @param accountHandle The PhoneAccountHandle through which to place the call
     * @param callId The identifier of the call.
     * @param accountHandle The PhoneAccountHandle through which to place the call.
     * @param setDefault {@code True} if this account should be set as the default for calls.
     */
    public void phoneAccountSelected(String callId, PhoneAccountHandle accountHandle) {
    public void phoneAccountSelected(String callId, PhoneAccountHandle accountHandle,
            boolean setDefault) {
        try {
            mAdapter.phoneAccountSelected(callId, accountHandle);
            mAdapter.phoneAccountSelected(callId, accountHandle, setDefault);
        } catch (RemoteException e) {
        }
    }
+2 −1
Original line number Diff line number Diff line
@@ -48,7 +48,8 @@ oneway interface IInCallAdapter {

    void postDialContinue(String callId, boolean proceed);

    void phoneAccountSelected(String callId, in PhoneAccountHandle accountHandle);
    void phoneAccountSelected(String callId, in PhoneAccountHandle accountHandle,
            boolean setDefault);

    void conference(String callId, String otherCallId);