summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorWink Saville <wink@google.com>2011-02-28 16:00:22 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-02-28 16:00:22 -0800
commit23fe005900aab2955052e0c9dc36ca05ea351a1a (patch)
treecc85d2f589b4d83f9fbb06559bef035c38641ad6 /services
parentae7fb4887394615b58c4e97fc5b1ad2e04441903 (diff)
parent0eb6af892948ba23bf9de5c5a6172c6ec50f8f71 (diff)
downloadframeworks_base-23fe005900aab2955052e0c9dc36ca05ea351a1a.zip
frameworks_base-23fe005900aab2955052e0c9dc36ca05ea351a1a.tar.gz
frameworks_base-23fe005900aab2955052e0c9dc36ca05ea351a1a.tar.bz2
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.
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/ConnectivityService.java12
1 files changed, 5 insertions, 7 deletions
diff --git a/services/java/com/android/server/ConnectivityService.java b/services/java/com/android/server/ConnectivityService.java
index e689654..2f12a95 100644
--- a/services/java/com/android/server/ConnectivityService.java
+++ b/services/java/com/android/server/ConnectivityService.java
@@ -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);
}
/**