Added system folders selection

This commit is contained in:
M66B
2018-08-10 09:45:36 +00:00
parent 7376362d21
commit 0a7ec026b1
15 changed files with 511 additions and 141 deletions

View File

@@ -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) {