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

Commit 9d187aee authored by Jack Yu's avatar Jack Yu
Browse files

Fixed that PCSCF address not updated

Fixed that PCSCF address was not updated when getting
new update from the modem.

Fix: 172751919
Test: Manual
Change-Id: I827c33d16dc03a69c351c4734dd5b0ad9831fca4
parent 19658e9f
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -1058,10 +1058,7 @@ public class DataConnection extends StateMachine {
        } else {
            if (DBG) log("onSetupConnectionCompleted received successful DataCallResponse");
            mCid = response.getId();

            mPcscfAddr = response.getPcscfAddresses().stream()
                    .map(InetAddress::getHostAddress).toArray(String[]::new);

            updatePcscfAddr(response);
            result = updateLinkProperty(response).setupResult;
        }

@@ -2919,6 +2916,16 @@ public class DataConnection extends StateMachine {
        return mConnectionParams;
    }

    /**
     * Update PCSCF addresses
     *
     * @param response
     */
    public void updatePcscfAddr(DataCallResponse response) {
        mPcscfAddr = response.getPcscfAddresses().stream()
                .map(InetAddress::getHostAddress).toArray(String[]::new);
    }

    /**
     * @return The list of PCSCF addresses
     */
+1 −0
Original line number Diff line number Diff line
@@ -296,6 +296,7 @@ public class DcController extends Handler {
                        }
                    }
                } else {
                    dc.updatePcscfAddr(newState);
                    // Its active so update the DataConnections link properties
                    UpdateLinkPropertyResult result = dc.updateLinkProperty(newState);
                    if (result.oldLp.equals(result.newLp)) {