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

Commit fbe60c95 authored by Richard LIU's avatar Richard LIU Committed by Gerrit - the friendly Code Review server
Browse files

Ignore IMS type APN when notify data connection

Do not add IMS type APN in mConnectedApns.

Change-Id: I339a2c411f94572c00e9df48deb38aab1046e581
parent 4404f4a2
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -1028,7 +1028,8 @@ class TelephonyRegistry extends ITelephonyRegistry.Stub {
                }
                boolean modified = false;
                if (state == TelephonyManager.DATA_CONNECTED) {
                    if (!mConnectedApns[phoneId].contains(apnType)) {
                    if (!mConnectedApns[phoneId].contains(apnType)
                            && !apnType.equals(PhoneConstants.APN_TYPE_IMS)) {
                        mConnectedApns[phoneId].add(apnType);
                        if (mDataConnectionState[phoneId] != state) {
                            mDataConnectionState[phoneId] = state;