mirror of
https://github.com/SimpleMobileTools/Simple-File-Manager.git
synced 2025-02-16 20:00:36 +01:00
close search at pressing Back
This commit is contained in:
parent
decb60de84
commit
56e2d4f67b
@ -642,7 +642,9 @@ class MainActivity : SimpleActivity() {
|
||||
return
|
||||
}
|
||||
|
||||
if (getCurrentFragment()!!.breadcrumbs.getItemCount() <= 1) {
|
||||
if (isSearchOpen && mSearchMenuItem != null) {
|
||||
mSearchMenuItem!!.collapseActionView()
|
||||
} else if (getCurrentFragment()!!.breadcrumbs.getItemCount() <= 1) {
|
||||
if (!wasBackJustPressed && config.pressBackTwice) {
|
||||
wasBackJustPressed = true
|
||||
toast(R.string.press_back_again)
|
||||
|
Loading…
x
Reference in New Issue
Block a user