summaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/net/taler/wallet/history/WalletHistory.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/src/main/java/net/taler/wallet/history/WalletHistory.kt b/app/src/main/java/net/taler/wallet/history/WalletHistory.kt
index 76b11ea..bb37ffa 100644
--- a/app/src/main/java/net/taler/wallet/history/WalletHistory.kt
+++ b/app/src/main/java/net/taler/wallet/history/WalletHistory.kt
@@ -95,10 +95,10 @@ class WalletHistory : Fragment(), OnEventClickListener {
addItemDecoration(myItemDecoration)
}
- model.historyProgress.observe(this, Observer { show ->
+ model.historyProgress.observe(viewLifecycleOwner, Observer { show ->
historyProgressBar.visibility = if (show) VISIBLE else INVISIBLE
})
- model.history.observe(this, Observer { history ->
+ model.history.observe(viewLifecycleOwner, Observer { history ->
historyEmptyState.visibility = if (history.isEmpty()) VISIBLE else INVISIBLE
historyAdapter.update(history)
})