[fenix] For https://github.com/mozilla-mobile/fenix/issues/25816: Support changing...
commit4aef99da320ee34e3da0050d6a88abf822aab7ac
authorMugurell <Mugurell@users.noreply.github.com>
Wed, 16 Nov 2022 15:11:15 +0000 (16 17:11 +0200)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Tue, 31 Jan 2023 20:04:23 +0000 (31 20:04 +0000)
tree76966213d0a234ddec351d81b906cdfbfc0f4b91
parentb0c2ed0aca924d8af71888b93856663b068b4c95
[fenix] For https://github.com/mozilla-mobile/fenix/issues/25816: Support changing autocomplete providers.

Everywhere the toolbar which needs to show autocomplete suggestions is used we
show a `ToolbarView`. So instead of having this configurable in 2 or more
places as it happened before the autocomplete functionality is configured only
from the `ToolbarView` class.
It will contain a `ToolbarAutocompleteFeature` that will be immediately updated
with the appropriate autocomplete providers or remove all such providers to
immediately update the current autocomplete or remove it entirely depending on
the new search engine selected.
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/BackgroundServices.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/Core.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/BrowserToolbarView.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/components/toolbar/ToolbarIntegration.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt
mobile/android/fenix/app/src/main/java/org/mozilla/fenix/search/toolbar/ToolbarView.kt
mobile/android/fenix/app/src/test/java/org/mozilla/fenix/components/toolbar/DefaultToolbarIntegrationTest.kt
mobile/android/fenix/app/src/test/java/org/mozilla/fenix/search/toolbar/ToolbarViewTest.kt