close search on stop

This commit is contained in:
tibbi 2018-01-08 16:46:25 +01:00
parent 7e77d07fd7
commit d4669d32db

View file

@ -75,6 +75,13 @@ class MainActivity : SimpleActivity() {
storeStateVariables()
}
override fun onStop() {
super.onStop()
if (searchMenuItem != null) {
MenuItemCompat.collapseActionView(searchMenuItem)
}
}
override fun onDestroy() {
super.onDestroy()
config.temporarilyShowHidden = false