|
|
@ -907,8 +907,6 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (import_accounts) {
|
|
|
|
if (import_accounts) {
|
|
|
|
EntityAccount primary = db.account().getPrimaryAccount();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Accounts
|
|
|
|
// Accounts
|
|
|
|
JSONArray jaccounts = jimport.getJSONArray("accounts");
|
|
|
|
JSONArray jaccounts = jimport.getJSONArray("accounts");
|
|
|
|
for (int a = 0; a < jaccounts.length(); a++) {
|
|
|
|
for (int a = 0; a < jaccounts.length(); a++) {
|
|
|
@ -949,6 +947,7 @@ public class FragmentOptionsBackup extends FragmentBase implements SharedPrefere
|
|
|
|
Long aid = account.id;
|
|
|
|
Long aid = account.id;
|
|
|
|
account.id = null;
|
|
|
|
account.id = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
EntityAccount primary = db.account().getPrimaryAccount();
|
|
|
|
if (primary != null)
|
|
|
|
if (primary != null)
|
|
|
|
account.primary = false;
|
|
|
|
account.primary = false;
|
|
|
|
|
|
|
|
|
|
|
|