mirror of
https://github.com/M66B/FairEmail.git
synced 2025-12-26 07:32:08 +01:00
Added system folders selection
This commit is contained in:
@@ -366,13 +366,21 @@ public class FragmentIdentity extends FragmentEx {
|
||||
}
|
||||
}
|
||||
|
||||
if (identity.primary)
|
||||
db.identity().resetPrimary();
|
||||
try {
|
||||
db.beginTransaction();
|
||||
|
||||
if (update)
|
||||
db.identity().updateIdentity(identity);
|
||||
else
|
||||
identity.id = db.identity().insertIdentity(identity);
|
||||
if (identity.primary)
|
||||
db.identity().resetPrimary();
|
||||
|
||||
if (update)
|
||||
db.identity().updateIdentity(identity);
|
||||
else
|
||||
identity.id = db.identity().insertIdentity(identity);
|
||||
|
||||
db.setTransactionSuccessful();
|
||||
} finally {
|
||||
db.endTransaction();
|
||||
}
|
||||
|
||||
return null;
|
||||
} catch (Throwable ex) {
|
||||
|
||||
Reference in New Issue
Block a user