diff options
author | Wink Saville <wink@google.com> | 2011-02-28 15:32:41 -0800 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2011-02-28 15:32:41 -0800 |
commit | d2ab6a19e0b7a19cf06f62386d09258d0bf1cbd8 (patch) | |
tree | 5fb2c01670861b9f9c10b6809a6a55acf13f304e /services | |
parent | a47ef32e8bd8eb944e97e12e3b1fac87f87bcd76 (diff) | |
download | frameworks_base-d2ab6a19e0b7a19cf06f62386d09258d0bf1cbd8.zip frameworks_base-d2ab6a19e0b7a19cf06f62386d09258d0bf1cbd8.tar.gz frameworks_base-d2ab6a19e0b7a19cf06f62386d09258d0bf1cbd8.tar.bz2 |
Fixing the write of BackgroundData setting, DO NOT MERGE.
I outsmarted myself trying to minimize writes and caused no writes to occur.
bug:3485934
Change-Id: I43b6ebbed3f13277edfb2e28f09cf7b98ea66776
Diffstat (limited to 'services')
-rw-r--r-- | services/java/com/android/server/ConnectivityService.java | 12 |
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); } /** |