mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 04:57: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,7 +137,9 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
|||
|
||||
override fun onStop() {
|
||||
super.onStop()
|
||||
MenuItemCompat.collapseActionView(mSearchMenuItem)
|
||||
if (mSearchMenuItem != null) {
|
||||
MenuItemCompat.collapseActionView(mSearchMenuItem)
|
||||
}
|
||||
}
|
||||
|
||||
override fun onDestroy() {
|
||||
|
|
Loading…
Reference in a new issue