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

Commit e0f7d925 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fixed that PCSCF address not updated"

parents ae183ca5 9d187aee
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)) {