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

* commit '0eb6af892948ba23bf9de5c5a6172c6ec50f8f71':
  Fixing the write of BackgroundData setting, DO NOT MERGE.
This commit is contained in:
Wink Saville
2011-02-28 16:00:22 -08:00
committed by Android Git Automerger

View File

@@ -989,13 +989,11 @@ public class ConnectivityService extends IConnectivityManager.Stub {
} }
private void handleSetBackgroundData(boolean enabled) { private void handleSetBackgroundData(boolean enabled) {
if (enabled != getBackgroundDataSetting()) { Settings.Secure.putInt(mContext.getContentResolver(),
Settings.Secure.putInt(mContext.getContentResolver(), Settings.Secure.BACKGROUND_DATA, enabled ? 1 : 0);
Settings.Secure.BACKGROUND_DATA, enabled ? 1 : 0); Intent broadcast = new Intent(
Intent broadcast = new Intent( ConnectivityManager.ACTION_BACKGROUND_DATA_SETTING_CHANGED);
ConnectivityManager.ACTION_BACKGROUND_DATA_SETTING_CHANGED); mContext.sendBroadcast(broadcast);
mContext.sendBroadcast(broadcast);
}
} }
/** /**