From 5a24c92c962063638ca6a2669d6153ec68f4952a Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 31 Jan 2018 19:01:57 +0100 Subject: [PATCH] shorten the search close code --- .../simplemobiletools/gallery/activities/MediaActivity.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt index 49c35da3d..8a1f25b9c 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/activities/MediaActivity.kt @@ -9,7 +9,6 @@ import android.graphics.Bitmap import android.net.Uri import android.os.Bundle import android.os.Handler -import android.support.v4.view.MenuItemCompat import android.support.v7.widget.GridLayoutManager import android.support.v7.widget.SearchView import android.view.Menu @@ -143,9 +142,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener { override fun onStop() { super.onStop() - if (mSearchMenuItem != null) { - MenuItemCompat.collapseActionView(mSearchMenuItem) - } + mSearchMenuItem?.collapseActionView() if (config.temporarilyShowHidden) { mTempShowHiddenHandler.postDelayed({