summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-07-25 18:18:32 +0100
committerBen Murdoch <benm@google.com>2011-07-25 19:05:41 +0100
commitfb72a9a98d891ecaed0f72905cebccf2faa8514f (patch)
tree6bc35194ebf05c89824786282e5dbb7f955b53a7 /src/com/android/browser
parent420d149566e19f1663db69420375b6dd1f0acd6f (diff)
downloadpackages_apps_Browser-fb72a9a98d891ecaed0f72905cebccf2faa8514f.zip
packages_apps_Browser-fb72a9a98d891ecaed0f72905cebccf2faa8514f.tar.gz
packages_apps_Browser-fb72a9a98d891ecaed0f72905cebccf2faa8514f.tar.bz2
apply() instead of commit() SharedPref change in CrashRecoveryHandler
Don't commit shared preference changes on the UI thread. Bug: 5019676 Change-Id: Idffbc085f375c941a1e70a5f7c96517fa6bd559d
Diffstat (limited to 'src/com/android/browser')
-rw-r--r--src/com/android/browser/CrashRecoveryHandler.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/browser/CrashRecoveryHandler.java b/src/com/android/browser/CrashRecoveryHandler.java
index 995d119..b29ebd6 100644
--- a/src/com/android/browser/CrashRecoveryHandler.java
+++ b/src/com/android/browser/CrashRecoveryHandler.java
@@ -195,7 +195,7 @@ public class CrashRecoveryHandler {
RECOVERY_PREFERENCES, Context.MODE_PRIVATE);
prefs.edit()
.putLong(KEY_LAST_RECOVERED, System.currentTimeMillis())
- .commit();
+ .apply();
}
private Bundle loadCrashState() {