Single account is primary

pull/215/head
M66B 4 months ago
parent ac716f66a5
commit 2b3eba1a57

@ -208,6 +208,13 @@ public class FairEmailBackupAgent extends BackupAgent {
db.account().getAccountByUUID(account.uuid) != null)
continue;
if (jaccounts.length() == 1)
account.primary = true;
EntityAccount primary = db.account().getPrimaryAccount();
if (primary != null)
account.primary = false;
if (account.auth_type == ServiceAuthenticator.AUTH_TYPE_GMAIL)
account.synchronize = false;

@ -947,6 +947,9 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
Long aid = account.id;
account.id = null;
if (jaccounts.length() == 1)
account.primary = true;
EntityAccount primary = db.account().getPrimaryAccount();
if (primary != null)
account.primary = false;

Loading…
Cancel
Save