mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
do not close main screens Search on opening a folder
This commit is contained in:
parent
db9c5ec8e3
commit
97b19fe169
1 changed files with 13 additions and 12 deletions
|
@ -207,13 +207,14 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
|||
directories_horizontal_fastscroller.allowBubbleDisplay = config.showInfoBubble
|
||||
directories_vertical_fastscroller.allowBubbleDisplay = config.showInfoBubble
|
||||
directories_refresh_layout.isEnabled = config.enablePullToRefresh
|
||||
invalidateOptionsMenu()
|
||||
|
||||
directories_empty_placeholder.setTextColor(config.textColor)
|
||||
directories_empty_placeholder_2.setTextColor(getAdjustedPrimaryColor())
|
||||
directories_switch_searching.setTextColor(getAdjustedPrimaryColor())
|
||||
directories_switch_searching.underlineText()
|
||||
|
||||
if (!mIsSearchOpen) {
|
||||
invalidateOptionsMenu()
|
||||
if (mIsPasswordProtectionPending && !mWasProtectionHandled) {
|
||||
handleAppPasswordProtection {
|
||||
mWasProtectionHandled = it
|
||||
|
@ -228,6 +229,7 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
|||
tryLoadGallery()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
override fun onPause() {
|
||||
super.onPause()
|
||||
|
@ -239,7 +241,6 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
|||
|
||||
override fun onStop() {
|
||||
super.onStop()
|
||||
mSearchMenuItem?.collapseActionView()
|
||||
|
||||
if (config.temporarilyShowHidden || config.tempSkipDeleteConfirmation) {
|
||||
mTempShowHiddenHandler.postDelayed({
|
||||
|
|
Loading…
Reference in a new issue