mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2025-01-18 06:17:59 +01:00
do not close Search on Stop
This commit is contained in:
parent
f35e71ea91
commit
8a8744fee7
1 changed files with 4 additions and 2 deletions
|
@ -162,10 +162,13 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
media_horizontal_fastscroller.allowBubbleDisplay = config.showInfoBubble
|
media_horizontal_fastscroller.allowBubbleDisplay = config.showInfoBubble
|
||||||
media_vertical_fastscroller.allowBubbleDisplay = config.showInfoBubble
|
media_vertical_fastscroller.allowBubbleDisplay = config.showInfoBubble
|
||||||
media_refresh_layout.isEnabled = config.enablePullToRefresh
|
media_refresh_layout.isEnabled = config.enablePullToRefresh
|
||||||
invalidateOptionsMenu()
|
|
||||||
media_empty_text_placeholder.setTextColor(config.textColor)
|
media_empty_text_placeholder.setTextColor(config.textColor)
|
||||||
media_empty_text_placeholder_2.setTextColor(getAdjustedPrimaryColor())
|
media_empty_text_placeholder_2.setTextColor(getAdjustedPrimaryColor())
|
||||||
|
|
||||||
|
if (!mIsSearchOpen) {
|
||||||
|
invalidateOptionsMenu()
|
||||||
|
}
|
||||||
|
|
||||||
if (mMedia.isEmpty() || config.getFolderSorting(mPath) and SORT_BY_RANDOM == 0) {
|
if (mMedia.isEmpty() || config.getFolderSorting(mPath) and SORT_BY_RANDOM == 0) {
|
||||||
if (shouldSkipAuthentication()) {
|
if (shouldSkipAuthentication()) {
|
||||||
tryLoadGallery()
|
tryLoadGallery()
|
||||||
|
@ -195,7 +198,6 @@ class MediaActivity : SimpleActivity(), MediaOperationsListener {
|
||||||
|
|
||||||
override fun onStop() {
|
override fun onStop() {
|
||||||
super.onStop()
|
super.onStop()
|
||||||
mSearchMenuItem?.collapseActionView()
|
|
||||||
|
|
||||||
if (config.temporarilyShowHidden || config.tempSkipDeleteConfirmation) {
|
if (config.temporarilyShowHidden || config.tempSkipDeleteConfirmation) {
|
||||||
mTempShowHiddenHandler.postDelayed({
|
mTempShowHiddenHandler.postDelayed({
|
||||||
|
|
Loading…
Reference in a new issue