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

Add settings export for remote search settings.

This commit is contained in:
Andrew Chen 2012-09-18 20:04:48 -07:00
parent ed3f3117b6
commit d50e07bf55
2 changed files with 11 additions and 1 deletions

View File

@ -215,6 +215,16 @@ public class AccountSettings {
new V(1, new IntegerResourceSetting(5,
R.array.account_settings_vibrate_times_label))
));
s.put("allowRemoteSearch", Settings.versions(
new V(16, new BooleanSetting(false))
));
s.put("remoteSearchNumResults", Settings.versions(
new V(16, new IntegerResourceSetting(Account.DEFAULT_REMOTE_SEARCH_NUM_RESULTS,
R.array.account_settings_remote_search_num_results_values))
));
s.put("remoteSearchFullText", Settings.versions(
new V(16, new BooleanSetting(false))
));
SETTINGS = Collections.unmodifiableMap(s);

View File

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