mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-23 13:08:00 +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() {
|
override fun onStop() {
|
||||||
super.onStop()
|
super.onStop()
|
||||||
MenuItemCompat.collapseActionView(mSearchMenuItem)
|
if (mSearchMenuItem != null) {
|
||||||
|
MenuItemCompat.collapseActionView(mSearchMenuItem)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
|
|
Loading…
Reference in a new issue