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

Updated settings description with new default values (import/export)

This commit is contained in:
cketti 2012-01-06 01:36:32 +01:00
parent 06175888b9
commit 7e8aede93d
2 changed files with 5 additions and 3 deletions

View File

@ -114,7 +114,8 @@ public class GlobalSettings {
new V(1, new FontSizeSetting(FontSizes.FONT_12DIP)) new V(1, new FontSizeSetting(FontSizes.FONT_12DIP))
)); ));
s.put("gesturesEnabled", Settings.versions( s.put("gesturesEnabled", Settings.versions(
new V(1, new BooleanSetting(true)) new V(1, new BooleanSetting(true)),
new V(4, new BooleanSetting(false))
)); ));
s.put("hideSpecialAccounts", Settings.versions( s.put("hideSpecialAccounts", Settings.versions(
new V(1, new BooleanSetting(false)) new V(1, new BooleanSetting(false))
@ -189,7 +190,8 @@ public class GlobalSettings {
new V(1, new BooleanSetting(false)) new V(1, new BooleanSetting(false))
)); ));
s.put("zoomControlsEnabled", Settings.versions( s.put("zoomControlsEnabled", Settings.versions(
new V(1, new BooleanSetting(false)) new V(1, new BooleanSetting(false)),
new V(4, new BooleanSetting(true))
)); ));
SETTINGS = Collections.unmodifiableMap(s); SETTINGS = Collections.unmodifiableMap(s);

View File

@ -34,7 +34,7 @@ public class Settings {
* *
* @see SettingsExporter * @see SettingsExporter
*/ */
public static final int VERSION = 3; public static final int VERSION = 4;
public static Map<String, Object> validate(int version, Map<String, public static Map<String, Object> validate(int version, Map<String,
TreeMap<Integer, SettingsDescription>> settings, TreeMap<Integer, SettingsDescription>> settings,