fix #1175, go back to search results at pressing Back

This commit is contained in:
tibbi 2020-08-08 21:28:38 +02:00
parent a12fd75a1e
commit 67e8abb1f7

View file

@ -146,7 +146,10 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
search_holder.background = ColorDrawable(config.backgroundColor)
checkSwipeRefreshAvailability()
checkShortcuts()
invalidateOptionsMenu()
if (!mIsSearchOpen) {
invalidateOptionsMenu()
}
}
override fun onPause() {
@ -154,11 +157,6 @@ class MainActivity : SimpleActivity(), RefreshRecyclerViewListener {
storeStateVariables()
}
override fun onStop() {
super.onStop()
closeSearch()
}
override fun onDestroy() {
super.onDestroy()
if (!isChangingConfigurations) {