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

Commit 208662f3 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
Change-Id: I04edbe5f302bb18cb6d22dcfe293e4ce8b68a700
parent 7d9ab278
Loading
Loading
Loading
Loading
+10 −6
Original line number Diff line number Diff line
@@ -408,6 +408,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
@@ -416,6 +419,7 @@ public class DataEnabledSettings {
            return (mInternalDataEnabled && mPolicyDataEnabled && mCarrierDataEnabled
                    && (userDataEnabled || isDataEnabledOverridden));
        }
    }

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