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

Commit a9bf533c authored by Sooraj Sasindran's avatar Sooraj Sasindran
Browse files

Check for isEmergencyOnly() as well to determine limited service coverage

Service state is not getting updated to EMERGENCY_ONLY even though limited service hence check for isEmergencyOnly as well


Bug: 340686344
Test: verified using shield box with controlled signal so that real 911 does not go through
Change-Id: Icf1272e3df8f850f5f7818372111fe8c481aba22
parent a26bb1fd
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -439,7 +439,8 @@ public class SatelliteSOSMessageRecommender extends Handler {
            ServiceState serviceState = phone.getServiceState();
            if (serviceState != null) {
                int state = serviceState.getState();
                if ((state == STATE_IN_SERVICE || state == STATE_EMERGENCY_ONLY)
                if ((state == STATE_IN_SERVICE || state == STATE_EMERGENCY_ONLY
                        || serviceState.isEmergencyOnly())
                        && !serviceState.isUsingNonTerrestrialNetwork()) {
                    logv("isCellularAvailable true");
                    return true;