mirror of
https://github.com/moparisthebest/k-9
synced 2024-11-17 06:55:03 -05:00
Require accounts to at least have one identity when importing
This commit is contained in:
parent
13b74d0d9e
commit
1de28150e2
@ -378,6 +378,9 @@ public class StorageImporter {
|
|||||||
// Write identities
|
// Write identities
|
||||||
if (account.identities != null) {
|
if (account.identities != null) {
|
||||||
importIdentities(editor, uuid, account, overwrite, existingAccount, prefs);
|
importIdentities(editor, uuid, account, overwrite, existingAccount, prefs);
|
||||||
|
} else if (!mergeImportedAccount) {
|
||||||
|
// Require accounts to at least have one identity
|
||||||
|
throw new InvalidSettingValueException();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write folder settings
|
// Write folder settings
|
||||||
|
Loading…
Reference in New Issue
Block a user