From c50295895be8d6c0e5ed27405e08037abca3cf0c Mon Sep 17 00:00:00 2001 From: dankito Date: Sat, 6 Nov 2021 13:19:36 +0100 Subject: [PATCH] Implemented restoring displayed transactions after onStop() --- .../net/dankito/banking/ui/android/home/HomeFragment.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/home/HomeFragment.kt b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/home/HomeFragment.kt index b7123aa7..7d0d6e2c 100644 --- a/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/home/HomeFragment.kt +++ b/ui/BankingAndroidApp/src/main/java/net/dankito/banking/ui/android/home/HomeFragment.kt @@ -106,6 +106,14 @@ class HomeFragment : Fragment() { return rootView } + override fun onResume() { + super.onResume() + + if (this::mnitmSearchTransactions.isInitialized) { // restore displayed transactions after onStop() + updateMenuItemsStateAndTransactionsToDisplay() + } + } + override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { super.onCreateOptionsMenu(menu, inflater)