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

Commit 7532d997 authored by Robert Greenwalt's avatar Robert Greenwalt Committed by Android (Google) Code Review
Browse files

Merge "Fixing the write of BackgroundData setting."

parents e2ed9562 db4afae7
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -978,14 +978,12 @@ public class ConnectivityService extends IConnectivityManager.Stub {
    }

    private void handleSetBackgroundData(boolean enabled) {
        if (enabled != getBackgroundDataSetting()) {
        Settings.Secure.putInt(mContext.getContentResolver(),
                Settings.Secure.BACKGROUND_DATA, enabled ? 1 : 0);
        Intent broadcast = new Intent(
                ConnectivityManager.ACTION_BACKGROUND_DATA_SETTING_CHANGED);
        mContext.sendBroadcast(broadcast);
    }
    }

    /**
     * @see ConnectivityManager#getMobileDataEnabled()