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

Commit ac1a392a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Notify data connection changed on CSS indicator update."

parents e003e35d fdf0488d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -325,6 +325,8 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {
            ((mNewSS.getRilDataRadioTechnology() >= ServiceState.RIL_RADIO_TECHNOLOGY_IS95A) &&
             (mNewSS.getRilDataRadioTechnology() <= ServiceState.RIL_RADIO_TECHNOLOGY_EVDO_A));

        boolean needNotifyData = (mSS.getCssIndicator() != mNewSS.getCssIndicator());

        if (DBG) {
            log("pollStateDone:"
                + " hasRegistered=" + hasRegistered
@@ -484,9 +486,14 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {
                //DCT shall inform the availability of APN for all non-default
                //contexts.
                mIwlanRegistrants.notifyRegistrants();
                needNotifyData = false;
            } else {
                mPhone.notifyDataConnection(null);
                needNotifyData = true;
            }
        }

        if (needNotifyData) {
            mPhone.notifyDataConnection(null);
        }

        if (hasCdmaDataConnectionAttached || has4gHandoff) {
+8 −1
Original line number Diff line number Diff line
@@ -933,6 +933,8 @@ public class GsmServiceStateTracker extends ServiceStateTracker {

        boolean hasLocationChanged = !mNewCellLoc.equals(mCellLoc);

        boolean needNotifyData = (mSS.getCssIndicator() != mNewSS.getCssIndicator());

        // Add an event log when connection state changes
        if (hasVoiceRegStateChanged || hasDataRegStateChanged) {
            EventLog.writeEvent(EventLogTags.GSM_SERVICE_STATE_CHANGE,
@@ -1157,9 +1159,14 @@ public class GsmServiceStateTracker extends ServiceStateTracker {
                //DCT shall inform the availability of APN for all non-default
                //contexts.
                mIwlanRegistrants.notifyRegistrants();
                needNotifyData =  false;
            } else {
                mPhone.notifyDataConnection(null);
                needNotifyData = true;
            }
        }

        if (needNotifyData) {
            mPhone.notifyDataConnection(null);
        }

        if (hasGprsAttached) {