]> git.ktnx.net Git - mobile-ledger.git/commit - app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java
rework account list management to be fully asynchronous
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 1 Aug 2020 13:27:03 +0000 (16:27 +0300)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 1 Aug 2020 13:27:03 +0000 (16:27 +0300)
commit0a73337c99e2074aa7e7228204289896342ec636
treea1c09f81327887865853a7c680cd1b031caa3c6c
parent48e81a77a6f218ccaaa4b77fa1a84084422c7a86
rework account list management to be fully asynchronous

displayed list is mostly static, updates are made to new lists, which are diff-updated (in a thread)

the tricky part is handling updates from the web (in a thread) and from the UI (expansion/collapsing of sub-trees)
13 files changed:
app/src/main/java/net/ktnx/mobileledger/async/RetrieveTransactionsTask.java
app/src/main/java/net/ktnx/mobileledger/model/LedgerAccount.java
app/src/main/java/net/ktnx/mobileledger/model/LedgerAmount.java
app/src/main/java/net/ktnx/mobileledger/model/LedgerTransaction.java
app/src/main/java/net/ktnx/mobileledger/model/MobileLedgerProfile.java
app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryAdapter.java
app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java
app/src/main/java/net/ktnx/mobileledger/ui/activity/MainActivity.java
app/src/main/java/net/ktnx/mobileledger/ui/profiles/ProfileDetailFragment.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListAdapter.java
app/src/main/java/net/ktnx/mobileledger/utils/ObservableValue.java
app/src/test/java/net/ktnx/mobileledger/model/LedgerAccountTest.java [new file with mode: 0644]
app/src/test/java/net/ktnx/mobileledger/model/MobileLedgerProfileTest.java [new file with mode: 0644]