]> git.ktnx.net Git - mobile-ledger.git/commit - app/src/main/java/net/ktnx/mobileledger/ui/account_summary/AccountSummaryFragment.java
fix observer leak
authorDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 29 Mar 2019 13:29:07 +0000 (15:29 +0200)
committerDamyan Ivanov <dam+mobileledger@ktnx.net>
Fri, 29 Mar 2019 13:29:07 +0000 (15:29 +0200)
commitbb9d4a9c9708a568dddf2b1c637ae54ec53caa25
treeb292900d072acc38ebfe295a29089215127db302
parent3b7d0b3a96e48343b4500466d4bb3f5b62e28dde
fix observer leak

move observers from AccountSummaryFragment and TransactionListFragment
to MainActivity; drop them when the activity is destroyed

the observers were leaked leading to multiple duplicate change
notifications
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/ProfilesRecyclerViewAdapter.java
app/src/main/java/net/ktnx/mobileledger/ui/transaction_list/TransactionListFragment.java