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

Commit f1b97fcf authored by Robert Greenwalt's avatar Robert Greenwalt
Browse files

Send Power-off notifications

If we update the state of the old servicestate and the new before calling done
nothing will get sent out (no change).  Instead, just put the new state
in the mNewSS and call done - it'll copy it to mSS and note the diff and
notify everyone.

bug:8304092
Change-Id: I5fee4805245c547175bbd8b0e18f407edfc8c3d8
parent cbd0db26
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -209,7 +209,6 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {
        switch (mCi.getRadioState()) {
            case RADIO_UNAVAILABLE:
                mNewSS.setStateOutOfService();
                mSS.setStateOutOfService();
                mNewCellLoc.setStateInvalid();
                setSignalStrengthDefaultValues();
                mGotCountryCode = false;
@@ -219,7 +218,6 @@ public class CdmaLteServiceStateTracker extends CdmaServiceStateTracker {

            case RADIO_OFF:
                mNewSS.setStateOff();
                mSS.setStateOff();
                mNewCellLoc.setStateInvalid();
                setSignalStrengthDefaultValues();
                mGotCountryCode = false;
+0 −2
Original line number Diff line number Diff line
@@ -857,7 +857,6 @@ public class CdmaServiceStateTracker extends ServiceStateTracker {
        switch (mCi.getRadioState()) {
        case RADIO_UNAVAILABLE:
            mNewSS.setStateOutOfService();
            mSS.setStateOutOfService();
            mNewCellLoc.setStateInvalid();
            setSignalStrengthDefaultValues();
            mGotCountryCode = false;
@@ -867,7 +866,6 @@ public class CdmaServiceStateTracker extends ServiceStateTracker {

        case RADIO_OFF:
            mNewSS.setStateOff();
            mSS.setStateOff();
            mNewCellLoc.setStateInvalid();
            setSignalStrengthDefaultValues();
            mGotCountryCode = false;
+0 −2
Original line number Diff line number Diff line
@@ -747,7 +747,6 @@ final class GsmServiceStateTracker extends ServiceStateTracker {
        switch (mCi.getRadioState()) {
            case RADIO_UNAVAILABLE:
                mNewSS.setStateOutOfService();
                mSS.setStateOutOfService();
                mNewCellLoc.setStateInvalid();
                setSignalStrengthDefaultValues();
                mGotCountryCode = false;
@@ -757,7 +756,6 @@ final class GsmServiceStateTracker extends ServiceStateTracker {

            case RADIO_OFF:
                mNewSS.setStateOff();
                mSS.setStateOff();
                mNewCellLoc.setStateInvalid();
                setSignalStrengthDefaultValues();
                mGotCountryCode = false;