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

Commit f0f1f412 authored by Hariprasad Jayakumar's avatar Hariprasad Jayakumar Committed by Steve Kondik
Browse files

Settings: Show Service State status in Phone Status properly

When the network mode is data only mode, the voice service state
would be OOS. In such cases, data service state is not checked to
show the phone status UI. Fix to consider data service state also to
update the UI properly.

Change-Id: I20fb6ea3256d0fe4a534fbb781e664d7ce774a05
CRs-Fixed: 517234
parent d8ebd7b9
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -428,6 +428,15 @@ public class Status extends PreferenceActivity {

    private void updateServiceState(ServiceState serviceState) {
        int state = serviceState.getState();

        // getState() returns only voiceRegState. In eHRPD only and other similar
        // data only cases, voice state may be OOS and data state may be IN_SERVICE
        // Hence, checking data state also in case voice state is OOS.
        if ((state == ServiceState.STATE_OUT_OF_SERVICE)
                && (serviceState.getDataRegState() == ServiceState.STATE_IN_SERVICE)) {
            state = ServiceState.STATE_IN_SERVICE;
        }

        String display = mRes.getString(R.string.radioInfo_unknown);

        switch (state) {