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

Commit ea05b042 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "SystemUI: Fix mobile data will turn on automatically issue"

parents 9753b9d6 899e0caf
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -599,6 +599,11 @@ class ExtQuickSettingsModel extends QuickSettingsModel {
        ConnectivityManager cm = (ConnectivityManager)mContext.getSystemService(
                Context.CONNECTIVITY_SERVICE);
        cm.setMobileDataEnabled(!mRSSIState.enabled);
        int phoneCount = MSimTelephonyManager.getDefault().getPhoneCount();
        for (int i = 0; i < phoneCount; i++) {
            Settings.Global.putInt(mContext.getContentResolver(),
                    Settings.Global.MOBILE_DATA + i, (!mRSSIState.enabled) ? 1 : 0);
        }
    }

    private void onRoamingDataStateChanged() {