do not close Search on Stop

This commit is contained in:
tibbi 2020-06-07 16:17:08 +02:00
parent f35e71ea91
commit 8a8744fee7

View file

@ -162,10 +162,13 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
media_horizontal_fastscroller.allowBubbleDisplay = config.showInfoBubble
media_vertical_fastscroller.allowBubbleDisplay = config.showInfoBubble
media_refresh_layout.isEnabled = config.enablePullToRefresh
invalidateOptionsMenu()
media_empty_text_placeholder.setTextColor(config.textColor)
media_empty_text_placeholder_2.setTextColor(getAdjustedPrimaryColor())
if (!mIsSearchOpen) {
invalidateOptionsMenu()
}
if (mMedia.isEmpty() || config.getFolderSorting(mPath) and SORT_BY_RANDOM == 0) {
if (shouldSkipAuthentication()) {
tryLoadGallery()
@ -195,7 +198,6 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
override fun onStop() {
super.onStop()
mSearchMenuItem?.collapseActionView()
if (config.temporarilyShowHidden || config.tempSkipDeleteConfirmation) {
mTempShowHiddenHandler.postDelayed({