]> git.ktnx.net Git - mobile-ledger.git/commit
model: ensure exactly one empty account row
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 8 Feb 2021 05:58:50 +0000 (05:58 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Thu, 18 Feb 2021 07:35:57 +0000 (07:35 +0000)
commit5921c8117df3703b5004d0abc74fd02a09ca51f6
tree93b288d656912b309bdf4f63e4bf5a874838f744
parent128cb44c82144c3bb2fcba8afba5636c0196b61d
model: ensure exactly one empty account row

also properly apply the check after removing an item. the intermediate
items.setValue(newList) is complete unnecessary

also make the check when receiving items from the database
app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplateDetailsViewModel.java