close search at pressing Back
This commit is contained in:
parent
decb60de84
commit
56e2d4f67b
|
@ -642,7 +642,9 @@ class MainActivity : SimpleActivity() {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getCurrentFragment()!!.breadcrumbs.getItemCount() <= 1) {
|
if (isSearchOpen && mSearchMenuItem != null) {
|
||||||
|
mSearchMenuItem!!.collapseActionView()
|
||||||
|
} else if (getCurrentFragment()!!.breadcrumbs.getItemCount() <= 1) {
|
||||||
if (!wasBackJustPressed && config.pressBackTwice) {
|
if (!wasBackJustPressed && config.pressBackTwice) {
|
||||||
wasBackJustPressed = true
|
wasBackJustPressed = true
|
||||||
toast(R.string.press_back_again)
|
toast(R.string.press_back_again)
|
||||||
|
|
Loading…
Reference in New Issue