mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
adding a null check at closing search
This commit is contained in:
parent
78148990f0
commit
0fa4cb5844
1 changed files with 3 additions and 1 deletions
|
@ -137,8 +137,10 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
|||
|
||||
override fun onStop() {
|
||||
super.onStop()
|
||||
if (mSearchMenuItem != null) {
|
||||
MenuItemCompat.collapseActionView(mSearchMenuItem)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
super.onDestroy()
|
||||
|
|
Loading…
Reference in a new issue