Merge "Fixing the write of BackgroundData setting, DO NOT MERGE." into honeycomb

This commit is contained in:
Wink Saville
2011-02-28 15:54:02 -08:00
committed by Android (Google) Code Review

View File

@@ -989,13 +989,11 @@ 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);
}
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);
}
/**