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

Commit f56fec16 authored by Aishwarya Mallampati's avatar Aishwarya Mallampati
Browse files

Reset carrier roaming params if service state reports radio is powered off.

Bug: 350429569
Test: b/352108641
Flag: EXEMPT bugfix
Change-Id: I21995aa9ba8946358117a60ea9cb37fa4454e5cc
parent a1c3355e
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -2903,8 +2903,9 @@ public class SatelliteController extends Handler {
            return true;
        }

        if (getWwanIsInService(serviceState)) {
            // Device is connected to terrestrial network which has coverage
        if (getWwanIsInService(serviceState)
                || serviceState.getState() == ServiceState.STATE_POWER_OFF) {
            // Device is connected to terrestrial network which has coverage or radio is turned off
            resetCarrierRoamingSatelliteModeParams(subId);
            return false;
        }
@@ -4414,7 +4415,8 @@ public class SatelliteController extends Handler {
                    }
                } else {
                    Boolean connected = mWasSatelliteConnectedViaCarrier.get(subId);
                    if (getWwanIsInService(serviceState)) {
                    if (getWwanIsInService(serviceState)
                            || serviceState.getState() == ServiceState.STATE_POWER_OFF) {
                        resetCarrierRoamingSatelliteModeParams(subId);
                    } else if (connected != null && connected) {
                        // The device just got disconnected from a satellite network