mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-29 16:08:00 +01:00
Change search hint on the main screen according to the setting
This commit is contained in:
parent
93a0c00468
commit
4bca7cb12a
1 changed files with 6 additions and 1 deletions
|
@ -245,6 +245,12 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
tryLoadGallery()
|
tryLoadGallery()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (config.searchAllFilesByDefault) {
|
||||||
|
main_menu.updateHintText(getString(R.string.search_files))
|
||||||
|
} else {
|
||||||
|
main_menu.updateHintText(getString(R.string.search_folders))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun onPause() {
|
override fun onPause() {
|
||||||
|
@ -330,7 +336,6 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
|
||||||
main_menu.getToolbar().inflateMenu(menuId)
|
main_menu.getToolbar().inflateMenu(menuId)
|
||||||
main_menu.toggleHideOnScroll(true)
|
main_menu.toggleHideOnScroll(true)
|
||||||
main_menu.setupMenu()
|
main_menu.setupMenu()
|
||||||
main_menu.updateHintText(getString(R.string.search_folders))
|
|
||||||
|
|
||||||
if (isPiePlus()) {
|
if (isPiePlus()) {
|
||||||
main_menu.onSearchOpenListener = {
|
main_menu.onSearchOpenListener = {
|
||||||
|
|
Loading…
Reference in a new issue