mirror of
https://github.com/SimpleMobileTools/Simple-App-Launcher.git
synced 2025-03-04 19:37:57 +01:00
close search on pressing Back
This commit is contained in:
parent
67b77ae8cb
commit
b7a4b2a58f
@ -81,6 +81,14 @@ class MainActivity : SimpleActivity(), LauncherAdapterUpdateListener {
|
||||
storeStateVariables()
|
||||
}
|
||||
|
||||
override fun onBackPressed() {
|
||||
if (main_menu.isSearchOpen) {
|
||||
main_menu.closeSearch()
|
||||
} else {
|
||||
super.onBackPressed()
|
||||
}
|
||||
}
|
||||
|
||||
private fun refreshMenuItems() {
|
||||
main_menu.getToolbar().menu.apply {
|
||||
findItem(R.id.more_apps_from_us).isVisible = !resources.getBoolean(R.bool.hide_google_relations)
|
||||
|
Loading…
x
Reference in New Issue
Block a user