From 156a9bde06ec72f497f50ad1c7258636067512a6 Mon Sep 17 00:00:00 2001 From: Andrew Sapperstein Date: Wed, 24 Apr 2013 13:38:08 -0700 Subject: [PATCH] PreferenceMigrator force commits pref upgrades. Now, when PreferenceMigrator.migrate is run, we forcibly call commit after the VersionedPrefs object is updated (whether MailPrefs, AccountPreferences or FolderPreferences). This commit applies the change to Email2. Should fix b/8640441 and b/8520847. Change-Id: I9a014c1c4bd35aa2ea8e268fec9a050d47e4d732 --- src/com/android/mail/preferences/PreferenceMigrator.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/android/mail/preferences/PreferenceMigrator.java b/src/com/android/mail/preferences/PreferenceMigrator.java index e6c11b715..fcb27e852 100644 --- a/src/com/android/mail/preferences/PreferenceMigrator.java +++ b/src/com/android/mail/preferences/PreferenceMigrator.java @@ -126,6 +126,8 @@ public class PreferenceMigrator extends BasePreferenceMigrator { sharedPreferences.getString(PREFERENCE_VIBRATE_OLD, "")); folderPreferences.setNotificationVibrateEnabled(vibrate); } + + folderPreferences.commit(); } } }