mirror of
https://github.com/FossifyOrg/File-Manager.git
synced 2026-03-03 14:07:18 -05:00
close search at pressing Back
This commit is contained in:
@@ -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