mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-11-04 20:12:56 -05:00
close search at pressing Back
This commit is contained in:
1 parent
decb60de84
commit
56e2d4f67b
1 file changed
+3
-1
+3
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user