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

Commit 68ef6a29 authored by Jack Yu's avatar Jack Yu Committed by Automerger Merge Worker
Browse files

Merge "Fixed that PCSCF address not updated" am: 82abc35e am: 074949a9 am: 4d04a45c

Original change: https://android-review.googlesource.com/c/platform/frameworks/opt/telephony/+/1497119

Change-Id: I7b2660cb939a4bf94e427afc2cf18e17eeeda0e1
parents adb2b8b8 4d04a45c
Loading
Loading
Loading
Loading
+11 −4
Original line number Diff line number Diff line
@@ -1047,10 +1047,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;
        }

@@ -2885,6 +2882,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)) {