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

Commit c18827fa authored by Chen Xu's avatar Chen Xu Committed by Android (Google) Code Review
Browse files

Merge "stop polling service state when shutting down" into oc-dev

parents 84f770a2 450d7f0d
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -2532,11 +2532,11 @@ public class ServiceStateTracker extends Handler {
                setSignalStrengthDefaultValues();
                mGotCountryCode = false;
                mNitzUpdatedTime = false;
                // don't poll for state when the radio is off
                // EXCEPT, if the poll was modemTrigged (they sent us new radio data)
                // or we're on IWLAN
                if (!modemTriggered && ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN
                        != mSS.getRilDataRadioTechnology()) {
                // don't poll when device is shutting down or the poll was not modemTrigged
                // (they sent us new radio data) and current network is not IWLAN
                if (mDeviceShuttingDown ||
                        (!modemTriggered && ServiceState.RIL_RADIO_TECHNOLOGY_IWLAN
                        != mSS.getRilDataRadioTechnology())) {
                    pollStateDone();
                    break;
                }