History log of /packages/apps/UnifiedEmail/src/com/android/mail/preferences/BasePreferenceMigrator.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2b1b87f90cb776e95f66aa5514505a0b21dc3d9d 24-Apr-2013 Andrew Sapperstein <asapperstein@google.com> Various fixes to the new Preferences format.

Most importantly, we no longer call setMigrationComplete()
until the one true migration has actually completed.
Previously, the call to performMigration in VersionedPrefs
would return immediately if a migration was in progress or
had already taken place. As a result, setMigrationComplete()
was being called once the first VersionedPrefs-derived class
was created inside the migration. If the migration crashed
after the setMigrationComplete completed but before the
migration actually finished, migration would not be run
again despite preferences not actually being migrated.

Additionally, 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. This may help fix b/8640441 and b/8520847 as well.

Change-Id: I9cf0875c6afae6cebdceed6f7444e2994a3fcc41
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/BasePreferenceMigrator.java
d5edd2d02649dffb40065fdb6a16acf91552b800 05-Dec-2012 Scott Kennedy <skennedy@google.com> Move notifications to UnifiedEmail

This involves redoing the persistence model, to split general,
account, and folder settings into separate SharedPreference stores.

It also requires some preferences to be moved into UnifiedEmail.

Depends on I71802444add85dc01f6645906a629ff80b964222 (UnifiedGmail)
Depends on Ie6ec389b5b5d2e7ab1b299d0877811ae716526e2 (Email)

Change-Id: Ibe2e3f93ec164370535ffc5f5b2409544cc8d36d
/packages/apps/UnifiedEmail/src/com/android/mail/preferences/BasePreferenceMigrator.java