summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorBrad Fitzpatrick <bradfitz@android.com>2010-08-30 18:10:49 -0700
committerBrad Fitzpatrick <bradfitz@android.com>2010-08-30 18:10:49 -0700
commit66fce5068a8a3aeb28aaf713843891b286a75280 (patch)
tree12b92e7b95f0251c4edb67cdab6374c58cae9608 /services
parent2e86809b6c79375d23c0975914efc3b66e89ac90 (diff)
downloadframeworks_base-66fce5068a8a3aeb28aaf713843891b286a75280.zip
frameworks_base-66fce5068a8a3aeb28aaf713843891b286a75280.tar.gz
frameworks_base-66fce5068a8a3aeb28aaf713843891b286a75280.tar.bz2
Renaming SharedPreferences$Editor.startCommit to apply
Also removes the artifical restriction that only one apply() can be in flight at once. That was old from when I thought it'd end up being required, but wasn't. Change-Id: I3540ea8be6e0760d6a51d218186f71655c2f3f55
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/BootReceiver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/java/com/android/server/BootReceiver.java b/services/java/com/android/server/BootReceiver.java
index d15a058..b9ff8d0 100644
--- a/services/java/com/android/server/BootReceiver.java
+++ b/services/java/com/android/server/BootReceiver.java
@@ -167,7 +167,7 @@ public class BootReceiver extends BroadcastReceiver {
if (lastTime == fileTime) return; // Already logged this particular file
// TODO: move all these SharedPreferences Editor commits
// outside this function to the end of logBootEvents
- prefs.edit().putLong(filename, fileTime).startCommit();
+ prefs.edit().putLong(filename, fileTime).apply();
}
Slog.i(TAG, "Copying " + filename + " to DropBox (" + tag + ")");