Merge pull request #4822 from k9mail/disable_default_signature
Disable default signature when creating new accounts
This commit is contained in:
commit
291695b2d9
3 changed files with 6 additions and 5 deletions
|
@ -182,7 +182,7 @@ class AccountPreferenceSerializer(
|
|||
gotOne = false
|
||||
val name = storage.getString("$accountUuid.$IDENTITY_NAME_KEY.$ident", null)
|
||||
val email = storage.getString("$accountUuid.$IDENTITY_EMAIL_KEY.$ident", null)
|
||||
val signatureUse = storage.getBoolean("$accountUuid.signatureUse.$ident", true)
|
||||
val signatureUse = storage.getBoolean("$accountUuid.signatureUse.$ident", false)
|
||||
val signature = storage.getString("$accountUuid.signature.$ident", null)
|
||||
val description = storage.getString("$accountUuid.$IDENTITY_DESCRIPTION_KEY.$ident", null)
|
||||
val replyTo = storage.getString("$accountUuid.replyTo.$ident", null)
|
||||
|
@ -204,7 +204,7 @@ class AccountPreferenceSerializer(
|
|||
if (newIdentities.isEmpty()) {
|
||||
val name = storage.getString("$accountUuid.name", null)
|
||||
val email = storage.getString("$accountUuid.email", null)
|
||||
val signatureUse = storage.getBoolean("$accountUuid.signatureUse", true)
|
||||
val signatureUse = storage.getBoolean("$accountUuid.signatureUse", false)
|
||||
val signature = storage.getString("$accountUuid.signature", null)
|
||||
val identity = Identity(
|
||||
name = name,
|
||||
|
@ -598,7 +598,7 @@ class AccountPreferenceSerializer(
|
|||
identities = ArrayList<Identity>()
|
||||
|
||||
val identity = Identity(
|
||||
signatureUse = true,
|
||||
signatureUse = false,
|
||||
signature = resourceProvider.defaultSignature(),
|
||||
description = resourceProvider.defaultIdentityDescription()
|
||||
)
|
||||
|
|
|
@ -34,7 +34,8 @@ class IdentitySettingsDescriptions {
|
|||
new V(1, new SignatureSetting())
|
||||
));
|
||||
s.put("signatureUse", Settings.versions(
|
||||
new V(1, new BooleanSetting(true))
|
||||
new V(1, new BooleanSetting(true)),
|
||||
new V(68, new BooleanSetting(false))
|
||||
));
|
||||
s.put("replyTo", Settings.versions(
|
||||
new V(1, new OptionalEmailAddressSetting())
|
||||
|
|
|
@ -36,7 +36,7 @@ public class Settings {
|
|||
*
|
||||
* @see SettingsExporter
|
||||
*/
|
||||
public static final int VERSION = 67;
|
||||
public static final int VERSION = 68;
|
||||
|
||||
static Map<String, Object> validate(int version, Map<String, TreeMap<Integer, SettingsDescription>> settings,
|
||||
Map<String, String> importedSettings, boolean useDefaultValues) {
|
||||
|
|
Loading…
Reference in a new issue