1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-12-24 08:38:51 -05:00

Added file format version attribute to export file

This commit is contained in:
cketti 2011-06-06 19:54:54 +02:00
parent a57e605496
commit 9a3ce9e03e

View File

@ -32,6 +32,7 @@ public class StorageExporter {
public static final String ROOT_ELEMENT = "k9settings";
public static final String VERSION_ATTRIBUTE = "version";
public static final String FILE_FORMAT_ATTRIBUTE = "format";
public static final String GLOBAL_ELEMENT = "global";
public static final String SETTINGS_ELEMENT = "settings";
public static final String ACCOUNTS_ELEMENT = "accounts";
@ -109,7 +110,10 @@ public class StorageExporter {
serializer.setFeature("http://xmlpull.org/v1/doc/features.html#indent-output", true);
serializer.startTag(null, ROOT_ELEMENT);
//TODO: write content version number here
serializer.attribute(null, VERSION_ATTRIBUTE, "x");
//TODO: set file format version to "1" once the feature is stable and about to be merged into master
serializer.attribute(null, FILE_FORMAT_ATTRIBUTE, "y");
Log.i(K9.LOG_TAG, "Exporting preferences");