1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-25 00:58:50 -05:00

UUIDs could have been generated by different generators within the

same instance due to local upgrades of K-9 Mail.
This commit is contained in:
danapple 2011-03-27 15:27:14 -05:00
parent 90e88c251e
commit ad4c7f7071

View File

@ -27,9 +27,8 @@ public class StorageImporterEncryptedXml implements IStorageImporter {
* We translate UUIDs in the import file into new UUIDs in the local instance for the following reasons: * We translate UUIDs in the import file into new UUIDs in the local instance for the following reasons:
* 1) Accidentally importing the same file twice cannot damage settings in an existing account. * 1) Accidentally importing the same file twice cannot damage settings in an existing account.
* (Say, an account that was imported two months ago and has since had significant settings changes.) * (Say, an account that was imported two months ago and has since had significant settings changes.)
* 2) All UUIDs used in the local instance will be generated with the same generator. * 2) Importing a single file multiple times allows for creating multiple accounts from the same template.
* 3) Importing a single file multiple times allows for creating multiple accounts from the same template. * 3) Exporting an account and importing back into the same instance is a poor-man's account copy (until a real
* 4) Exporting an account and importing back into the same instance is a poor-man's account copy (until a real
* copy function is created, if ever) * copy function is created, if ever)
*/ */
Map<String, String> uuidMapping = new HashMap<String, String>(); Map<String, String> uuidMapping = new HashMap<String, String>();