2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-02 03:40:16 +00:00

For #1917: Hides search suggestions in shortcuts when needed (#1988)

This commit is contained in:
Sawyer Blatz 2019-04-24 13:50:55 -07:00 committed by GitHub
parent 578a00a49b
commit 36cd275eed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -176,7 +176,9 @@ class AwesomeBarUIView(
} }
private fun showSearchSuggestionProvider() { private fun showSearchSuggestionProvider() {
view.addProviders(searchSuggestionProvider!!) if (Settings.getInstance(container.context).showSearchSuggestions()) {
view.addProviders(searchSuggestionProvider!!)
}
} }
private fun setShortcutEngine(engine: SearchEngine) { private fun setShortcutEngine(engine: SearchEngine) {