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

Commit 708cb897 authored by Junichi Monma's avatar Junichi Monma Committed by Wink Saville
Browse files

Allowing to change the poll state even if only PS is avairable on the network.

There are some MVNO operators are shipping the data only SIM. It isn't
connectable with CS, but wroks for PS. If the poll is not shown on the
system bar when network registration returns STATE_OUT_OF_SERVICE for
CS, user doesn't notice whether or not they can use PS. In addition,
PS might works while CS restriction.

Bug: 3339315
Change-Id: I6c2b508a181afed6dc9356b99ad9ef09f8c7ea4f
parent a2985af1
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -696,6 +696,13 @@ final class GsmServiceStateTracker extends ServiceStateTracker {
            loge("Exception while polling service state. Probably malformed RIL response." + ex);
        }

        final boolean voice_capable = phone.getContext().getResources().getBoolean(
                com.android.internal.R.bool.config_voice_capable);

        if (!voice_capable && newGPRSState == ServiceState.STATE_IN_SERVICE) {
            newSS.setState (newGPRSState);
        }

        pollingContext[0]--;

        if (pollingContext[0] == 0) {