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

Commit 1ac2b88e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix isUnmeteredUseOnly check." into rvc-dev am: 9aa88106

Change-Id: I5f1a58678c05e9e254f5d2bdc16c3455d5eb9f9b
parents 0ccf1328 9aa88106
Loading
Loading
Loading
Loading
+6 −8
Original line number Original line Diff line number Diff line
@@ -1277,15 +1277,13 @@ public class DataConnection extends StateMachine {
        }
        }


        // If data is enabled, this data connection can't be for unmetered used only because
        // If data is enabled, this data connection can't be for unmetered used only because
        // everyone should be able to use it.
        // everyone should be able to use it if:
        // 1. Device is not roaming, or
        // 2. Device is roaming and data roaming is turned on
        if (mPhone.getDataEnabledSettings().isDataEnabled()) {
        if (mPhone.getDataEnabledSettings().isDataEnabled()) {
            if (!mPhone.getServiceState().getDataRoaming() || mDct.getDataRoamingEnabled()) {
                return false;
                return false;
            }
            }

        // If the device is roaming and data roaming it turned on, then this data connection can't
        // be for unmetered use only.
        if (mDct.getDataRoamingEnabled() && mPhone.getServiceState().getDataRoaming()) {
            return false;
        }
        }


        // The data connection can only be unmetered used only if all attached APN contexts
        // The data connection can only be unmetered used only if all attached APN contexts