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

Commit ed41daa5 authored by Amit Mahajan's avatar Amit Mahajan Committed by gitbuildkicker
Browse files

Call pollState() in APM if RAT or radio state changes.

Earlier state was never polled in APM. With b/27486486 it was done
on network state changes since that is considered a modem trigger.
RAT and radio state changes are also modem triggers and should
trigger pollState().

Bug: 30286279
Change-Id: I6695a8db5b61170643cc4a81c7db25072804b306
parent cb619fba
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -952,7 +952,8 @@ public class ServiceStateTracker extends Handler {
                }
                }
                // This will do nothing in the 'radio not available' case
                // This will do nothing in the 'radio not available' case
                setPowerStateToDesired();
                setPowerStateToDesired();
                pollState();
                // These events are modem triggered, so pollState() needs to be forced
                modemTriggeredPollState();
                break;
                break;


            case EVENT_NETWORK_STATE_CHANGED:
            case EVENT_NETWORK_STATE_CHANGED: