shorten the search close code
This commit is contained in:
parent
ef42517e11
commit
5a24c92c96
|
@ -9,7 +9,6 @@ import android.graphics.Bitmap
|
||||||
import android.net.Uri
|
import android.net.Uri
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.os.Handler
|
import android.os.Handler
|
||||||
import android.support.v4.view.MenuItemCompat
|
|
||||||
import android.support.v7.widget.GridLayoutManager
|
import android.support.v7.widget.GridLayoutManager
|
||||||
import android.support.v7.widget.SearchView
|
import android.support.v7.widget.SearchView
|
||||||
import android.view.Menu
|
import android.view.Menu
|
||||||
|
@ -143,9 +142,7 @@ class MediaActivity : SimpleActivity(), MediaAdapter.MediaOperationsListener {
|
||||||
|
|
||||||
override fun onStop() {
|
override fun onStop() {
|
||||||
super.onStop()
|
super.onStop()
|
||||||
if (mSearchMenuItem != null) {
|
mSearchMenuItem?.collapseActionView()
|
||||||
MenuItemCompat.collapseActionView(mSearchMenuItem)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (config.temporarilyShowHidden) {
|
if (config.temporarilyShowHidden) {
|
||||||
mTempShowHiddenHandler.postDelayed({
|
mTempShowHiddenHandler.postDelayed({
|
||||||
|
|
Loading…
Reference in New Issue