]> git.ktnx.net Git - mobile-ledger.git/commit
fix saving template account removals
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 16 Feb 2021 20:07:39 +0000 (22:07 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 18 Feb 2021 07:19:43 +0000 (07:19 +0000)
commit467a7741917c1e4c4ba0d167f1e018080786711f
tree4573fc9511162ac6dab3ed0cd741c2155dd69b65
parent22abd84a5986a1b259b0e89d32669cbeb977a72b
fix saving template account removals

simple idea. account positions are positive numbers. upon save, all
positions are set to -1, then all accounts are saved with positions from
1 on, and finally all the accounts with positions still at -1 are
deleted
app/src/main/java/net/ktnx/mobileledger/dao/TemplateAccountDAO.java
app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsViewModel.java