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

Commit ef65fdd0 authored by Chen Xu's avatar Chen Xu Committed by Gerrit Code Review
Browse files

Merge "stop polling service state when shutting down"

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