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

Commit 127e5c06 authored by Amit Mahajan's avatar Amit Mahajan
Browse files

Consider provisioning state when checking if data is enabled.

Test: manual (verified through logs)
Bug: 134578197
Merged-in: I04edbe5f302bb18cb6d22dcfe293e4ce8b68a700
Change-Id: I04edbe5f302bb18cb6d22dcfe293e4ce8b68a700
(cherry picked from commit 208662f3)
parent 2ca88ac6
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -407,6 +407,9 @@ public class DataEnabledSettings {
    }

    public synchronized boolean isDataEnabled(int apnType) {
        if (isProvisioning()) {
            return isProvisioningDataEnabled();
        } else {
            boolean userDataEnabled = isUserDataEnabled();
            // Check if we should temporarily enable data in certain conditions.
            boolean isDataEnabledOverridden = mDataEnabledOverride
@@ -415,6 +418,7 @@ public class DataEnabledSettings {
            return (mInternalDataEnabled && mPolicyDataEnabled && mCarrierDataEnabled
                    && (userDataEnabled || isDataEnabledOverridden));
        }
    }

    private void log(String s) {
        Rlog.d(LOG_TAG, "[" + mPhone.getPhoneId() + "]" + s);