fix #1175, go back to search results at pressing Back
This commit is contained in:
parent
a12fd75a1e
commit
67e8abb1f7
1 changed files with 4 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue