Implemented restoring displayed transactions after onStop()

This commit is contained in:
dankito 2021-11-06 13:19:36 +01:00
parent f99e5ad96f
commit c50295895b
1 changed files with 8 additions and 0 deletions

View File

@ -106,6 +106,14 @@ class HomeFragment : Fragment() {
return rootView return rootView
} }
override fun onResume() {
super.onResume()
if (this::mnitmSearchTransactions.isInitialized) { // restore displayed transactions after onStop()
updateMenuItemsStateAndTransactionsToDisplay()
}
}
override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) { override fun onCreateOptionsMenu(menu: Menu, inflater: MenuInflater) {
super.onCreateOptionsMenu(menu, inflater) super.onCreateOptionsMenu(menu, inflater)