]> git.ktnx.net Git - mobile-ledger.git/commit
rework new transaction activity/model/etc with proper concept separation
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Sat, 27 Feb 2021 20:06:18 +0000 (20:06 +0000)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Mon, 1 Mar 2021 06:00:42 +0000 (06:00 +0000)
commit346b3c8e74a12b1822239481f807479fa81fc706
treeb1751ab06040ffec3c5e47249dd612249664948f
parent086190fcb88b75bf3df3eeeb6357f15ed1127f4f
rework new transaction activity/model/etc with proper concept separation

activity monitors the model and sends changes to adapter; view holder
propagates changes to the model

this makes it possible to properly handle QR scan results in the
activity without dirty tricks
app/src/main/java/net/ktnx/mobileledger/dao/TemplateHeaderDAO.java
app/src/main/java/net/ktnx/mobileledger/db/AccountAutocompleteAdapter.java
app/src/main/java/net/ktnx/mobileledger/model/MatchedTemplate.java [new file with mode: 0644]
app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionActivity.java
app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionFragment.java
app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionItemHolder.java
app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionItemsAdapter.java
app/src/main/java/net/ktnx/mobileledger/ui/new_transaction/NewTransactionModel.java
app/src/main/java/net/ktnx/mobileledger/ui/templates/TemplatesActivity.java
app/src/main/res/layout/activity_new_transaction.xml
app/src/main/res/layout/fragment_new_transaction.xml