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

Commit 23fe0059 authored by Wink Saville's avatar Wink Saville Committed by Android Git Automerger
Browse files

am 0eb6af89: Merge "Fixing the write of BackgroundData setting, DO NOT MERGE." into honeycomb

* commit '0eb6af89':
  Fixing the write of BackgroundData setting, DO NOT MERGE.
parents ae7fb488 0eb6af89
Loading
Loading
Loading
Loading
+5 −7
Original line number Diff line number Diff line
@@ -989,14 +989,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()