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

Commit 3d744c2e authored by Aishwarya Mallampati's avatar Aishwarya Mallampati
Browse files

Stay in satellite mode when device found Limited Service.

Bug: 357677223
Test: atest SatelliteControllerTest
      Manually tested SMS/MMS/Calls/Data
Flag: EXEMPT bugfix
Change-Id: I36354487849233ade94e16b68f2a1a80befd8318
parent b6e87b41
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6081,7 +6081,7 @@ public class SatelliteController extends Handler {
                        AccessNetworkConstants.TRANSPORT_TYPE_WWAN);

        for (NetworkRegistrationInfo nri : nriList) {
            if (nri.isInService() || nri.isEmergencyEnabled()) {
            if (nri.isInService()) {
                logv("getWwanIsInService: return true");
                return true;
            }
+0 −8
Original line number Diff line number Diff line
@@ -4177,14 +4177,6 @@ public class SatelliteControllerTest extends TelephonyTest {
                .thenReturn(List.of(nri));
        assertTrue(mSatelliteControllerUT.getWwanIsInService(mServiceState));

        nri = new NetworkRegistrationInfo.Builder()
                .setEmergencyOnly(true)
                .build();
        when(mServiceState.getNetworkRegistrationInfoListForTransportType(
                eq(AccessNetworkConstants.TRANSPORT_TYPE_WWAN)))
                .thenReturn(List.of(nri));
        assertTrue(mSatelliteControllerUT.getWwanIsInService(mServiceState));

        nri = new NetworkRegistrationInfo.Builder().setRegistrationState(
                NetworkRegistrationInfo.REGISTRATION_STATE_NOT_REGISTERED_OR_SEARCHING)
                .build();