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,8 +137,10 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
||||||
|
|
||||||
override fun onStop() {
|
override fun onStop() {
|
||||||
super.onStop()
|
super.onStop()
|
||||||
|
if (mSearchMenuItem != null) {
|
||||||
MenuItemCompat.collapseActionView(mSearchMenuItem)
|
MenuItemCompat.collapseActionView(mSearchMenuItem)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
override fun onDestroy() {
|
override fun onDestroy() {
|
||||||
super.onDestroy()
|
super.onDestroy()
|
||||||
|
|
Loading…
Reference in a new issue