]> git.ktnx.net Git - mobile-ledger.git/commit - app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java
single observer instances, single place for reloading account/transaction lists
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 29 Mar 2019 17:53:43 +0000 (19:53 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 29 Mar 2019 17:53:43 +0000 (19:53 +0200)
commit8fd287a2b36f1d28ee1c1ca67687abaab4e95f2f
tree5623e20efc106aabca0ec9ee8eb3af16770d2ba1
parent13cdbbfd0d04c3f3e31c313641dc66e5fac7f126
single observer instances, single place for reloading account/transaction lists

fixes observer leak which also multiplied the reloads with each
screen rotation (and activity restart)
app/src/main/java/net/ktnx/mobileledger/model/Data.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/transaction_list/TransactionListFragment.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListViewModel.java
app/src/main/java/net/ktnx/mobileledger/utils/Colors.java