]> git.ktnx.net Git - mobile-ledger.git/commit
fix flicker introduced with unique item Id
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 9 Mar 2021 20:18:56 +0000 (22:18 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Tue, 9 Mar 2021 20:18:56 +0000 (22:18 +0200)
commitaf34162e6868e8fd305e2b2c6037a7be7bf9936b
tree41275ecde9b63ce637943b0ce4f6ea73ce8e1cd6
parent02ceb0d2ef0eed07c278330e4b9b2af366f5d17f
fix flicker introduced with unique item Id

when items get unique id every time, resetting the model causes new
IDs to be assigned, making the adapter consider old items gone and new
items added. this sounds OK, but the visual effect is that everything
disappears and then reappears, causing flicker.
app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java