Merge pull request #2718 from Aga-C/change-search-hint

Change search hint on the main screen according to the setting
This commit is contained in:
Tibor Kaputa 2023-01-12 09:28:06 +01:00 committed by GitHub
commit 6195d6cf78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -245,6 +245,12 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
tryLoadGallery()
}
}
if (config.searchAllFilesByDefault) {
main_menu.updateHintText(getString(R.string.search_files))
} else {
main_menu.updateHintText(getString(R.string.search_folders))
}
}
override fun onPause() {
@ -330,7 +336,6 @@ class MainActivity : SimpleActivity(), DirectoryOperationsListener {
main_menu.getToolbar().inflateMenu(menuId)
main_menu.toggleHideOnScroll(true)
main_menu.setupMenu()
main_menu.updateHintText(getString(R.string.search_folders))
if (isPiePlus()) {
main_menu.onSearchOpenListener = {