[fenix] For https://github.com/mozilla-mobile/fenix/issues/13922: Add indicator to synced tabs suggestions in awesomebar

pull/600/head
Hakkı Kaan Çalışkan 4 years ago committed by ekager
parent 9824d81afa
commit 18e1dded25

@ -19,6 +19,7 @@ import mozilla.components.feature.awesomebar.provider.SearchActionProvider
import mozilla.components.feature.awesomebar.provider.SearchSuggestionProvider
import mozilla.components.feature.awesomebar.provider.SessionSuggestionProvider
import mozilla.components.feature.search.SearchUseCases
import mozilla.components.feature.syncedtabs.DeviceIndicators
import mozilla.components.feature.session.SessionUseCases
import mozilla.components.feature.syncedtabs.SyncedTabsStorageSuggestionProvider
import mozilla.components.feature.tabs.TabsUseCases
@ -130,7 +131,12 @@ class AwesomeBarView(
SyncedTabsStorageSuggestionProvider(
components.backgroundServices.syncedTabsStorage,
components.useCases.tabsUseCases.addTab,
components.core.icons
components.core.icons,
DeviceIndicators(
getDrawable(activity, R.drawable.ic_search_results_device_desktop),
getDrawable(activity, R.drawable.ic_search_results_device_mobile),
getDrawable(activity, R.drawable.ic_search_results_device_tablet)
)
)
val searchBitmap = getDrawable(activity, R.drawable.ic_search)!!.apply {

Loading…
Cancel
Save