]> git.ktnx.net Git - mobile-ledger.git/commit
template modes: mark newly added accounts with negative IDs
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 16 Feb 2021 20:14:06 +0000 (22:14 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 18 Feb 2021 07:19:43 +0000 (07:19 +0000)
commit22e7b64621d01852181dad8e1158e916cb4a8c84
treee28712d4e5d91c5bb14272028927246ca30fb529
parent467a7741917c1e4c4ba0d167f1e018080786711f
template modes: mark newly added accounts with negative IDs

unique IDs are mandatory, and the ones from the database are positive.
newly created may use negative IDs (given by a model-wide decrementing
atomic integer) and this comes handy when saving them to to db
app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsViewModel.java