]> git.ktnx.net Git - mobile-ledger.git/commit
rework transaction list with proper view holders and no background load
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 21 Apr 2021 19:22:20 +0000 (22:22 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Wed, 21 Apr 2021 19:22:20 +0000 (22:22 +0300)
commit0b96f4968cd5c0b36474b94b94ec6dcf6699f60c
treeb93db25f24a46e4b5791db07d321acf2c83669ec
parent3c459e59ba3ac6082d65984359fcb6276965de4d
rework transaction list with proper view holders and no background load

all the data is already available in the transaction list loaded from
the database (asynchronously)

also, fix a glitch where a visible item's matching account row is not
coloured when the list is filtered by account name (because the
underlying item is the same)
12 files changed:
app/src/main/java/net/ktnx/mobileledger/async/TransactionAccumulator.java
app/src/main/java/net/ktnx/mobileledger/model/TransactionListItem.java
app/src/main/java/net/ktnx/mobileledger/ui/MainModel.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListDelimiterRowHolder.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListLastUpdateRowHolder.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionLoaderStep.java [deleted file]
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionRowHolder.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionRowHolderBase.java [new file with mode: 0644]
app/src/main/res/layout/transaction_delimiter.xml [new file with mode: 0644]
app/src/main/res/layout/transaction_list_row.xml