From 1c4a3c355c6f10b8106f3dd624ecf8c12e0a228c Mon Sep 17 00:00:00 2001 From: Andrew Chen Date: Sun, 8 Apr 2012 15:27:39 -0700 Subject: [PATCH] Add comment about increment settings version. --- src/com/fsck/k9/preferences/AccountSettings.java | 5 +++++ src/com/fsck/k9/preferences/FolderSettings.java | 5 +++++ src/com/fsck/k9/preferences/GlobalSettings.java | 5 +++++ src/com/fsck/k9/preferences/IdentitySettings.java | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/src/com/fsck/k9/preferences/AccountSettings.java b/src/com/fsck/k9/preferences/AccountSettings.java index 685d4b315..d8d8e7d11 100644 --- a/src/com/fsck/k9/preferences/AccountSettings.java +++ b/src/com/fsck/k9/preferences/AccountSettings.java @@ -25,6 +25,11 @@ public class AccountSettings { Map> s = new LinkedHashMap>(); + /** + * When adding new settings here, be sure to increment {@link Settings.VERSION} + * and use that for whatever you add here. + */ + s.put("archiveFolderName", Settings.versions( new V(1, new StringSetting("Archive")) )); diff --git a/src/com/fsck/k9/preferences/FolderSettings.java b/src/com/fsck/k9/preferences/FolderSettings.java index 6759a71ae..f9bd231c5 100644 --- a/src/com/fsck/k9/preferences/FolderSettings.java +++ b/src/com/fsck/k9/preferences/FolderSettings.java @@ -20,6 +20,11 @@ public class FolderSettings { Map> s = new LinkedHashMap>(); + /** + * When adding new settings here, be sure to increment {@link Settings.VERSION} + * and use that for whatever you add here. + */ + s.put("displayMode", Settings.versions( new V(1, new EnumSetting(FolderClass.class, FolderClass.NO_CLASS)) )); diff --git a/src/com/fsck/k9/preferences/GlobalSettings.java b/src/com/fsck/k9/preferences/GlobalSettings.java index d9f2eb828..fea1809ff 100644 --- a/src/com/fsck/k9/preferences/GlobalSettings.java +++ b/src/com/fsck/k9/preferences/GlobalSettings.java @@ -26,6 +26,11 @@ public class GlobalSettings { Map> s = new LinkedHashMap>(); + /** + * When adding new settings here, be sure to increment {@link Settings.VERSION} + * and use that for whatever you add here. + */ + s.put("animations", Settings.versions( new V(1, new BooleanSetting(false)) )); diff --git a/src/com/fsck/k9/preferences/IdentitySettings.java b/src/com/fsck/k9/preferences/IdentitySettings.java index f5ff270f5..da9279d12 100644 --- a/src/com/fsck/k9/preferences/IdentitySettings.java +++ b/src/com/fsck/k9/preferences/IdentitySettings.java @@ -22,6 +22,11 @@ public class IdentitySettings { Map> s = new LinkedHashMap>(); + /** + * When adding new settings here, be sure to increment {@link Settings.VERSION} + * and use that for whatever you add here. + */ + s.put("signature", Settings.versions( new V(1, new SignatureSetting()) ));