mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-01 19:18:18 +01:00
adding a null check at closing search
This commit is contained in:
parent
78148990f0
commit
0fa4cb5844
@ -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 New Issue
Block a user