[fenix] Address breaking changes in A-C 100.0.20220324222826

pull/600/head
Christian Sadilek 3 years ago committed by mergify[bot]
parent 4d248a775b
commit ccd58284c3

@ -790,7 +790,6 @@ abstract class BaseBrowserFragment :
webchannelIntegration.set( webchannelIntegration.set(
feature = FxaWebChannelFeature( feature = FxaWebChannelFeature(
requireContext(),
customTabSessionId, customTabSessionId,
requireComponents.core.engine, requireComponents.core.engine,
requireComponents.core.store, requireComponents.core.store,

@ -44,14 +44,14 @@ class IntentProcessors(
* Provides intent processing functionality for ACTION_VIEW and ACTION_SEND intents. * Provides intent processing functionality for ACTION_VIEW and ACTION_SEND intents.
*/ */
val intentProcessor by lazyMonitored { val intentProcessor by lazyMonitored {
TabIntentProcessor(tabsUseCases, sessionUseCases.loadUrl, searchUseCases.newTabSearch, isPrivate = false) TabIntentProcessor(tabsUseCases, searchUseCases.newTabSearch, isPrivate = false)
} }
/** /**
* Provides intent processing functionality for ACTION_VIEW and ACTION_SEND intents in private tabs. * Provides intent processing functionality for ACTION_VIEW and ACTION_SEND intents in private tabs.
*/ */
val privateIntentProcessor by lazyMonitored { val privateIntentProcessor by lazyMonitored {
TabIntentProcessor(tabsUseCases, sessionUseCases.loadUrl, searchUseCases.newTabSearch, isPrivate = true) TabIntentProcessor(tabsUseCases, searchUseCases.newTabSearch, isPrivate = true)
} }
val customTabIntentProcessor by lazyMonitored { val customTabIntentProcessor by lazyMonitored {

@ -283,7 +283,7 @@ class BookmarkSearchDialogFragment : AppCompatDialogFragment(), UserInteractionH
if (voiceSearchButtonAlreadyAdded || !shouldShowVoiceSearch) return if (voiceSearchButtonAlreadyAdded || !shouldShowVoiceSearch) return
toolbarView.view.addEditAction( toolbarView.view.addEditActionEnd(
BrowserToolbar.Button( BrowserToolbar.Button(
imageDrawable = AppCompatResources.getDrawable(requireContext(), R.drawable.ic_microphone)!!, imageDrawable = AppCompatResources.getDrawable(requireContext(), R.drawable.ic_microphone)!!,
contentDescription = requireContext().getString(R.string.voice_search_content_description), contentDescription = requireContext().getString(R.string.voice_search_content_description),

@ -285,7 +285,7 @@ class HistorySearchDialogFragment : AppCompatDialogFragment(), UserInteractionHa
if (voiceSearchButtonAlreadyAdded || !shouldShowVoiceSearch) return if (voiceSearchButtonAlreadyAdded || !shouldShowVoiceSearch) return
toolbarView.view.addEditAction( toolbarView.view.addEditActionEnd(
BrowserToolbar.Button( BrowserToolbar.Button(
imageDrawable = AppCompatResources.getDrawable(requireContext(), R.drawable.ic_microphone)!!, imageDrawable = AppCompatResources.getDrawable(requireContext(), R.drawable.ic_microphone)!!,
contentDescription = requireContext().getString(R.string.voice_search_content_description), contentDescription = requireContext().getString(R.string.voice_search_content_description),

@ -636,7 +636,7 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler {
requireContext().settings().shouldShowVoiceSearch requireContext().settings().shouldShowVoiceSearch
if (isVisible) { if (isVisible) {
toolbarView.view.addEditAction( toolbarView.view.addEditActionEnd(
BrowserToolbar.Button( BrowserToolbar.Button(
AppCompatResources.getDrawable(requireContext(), R.drawable.ic_microphone)!!, AppCompatResources.getDrawable(requireContext(), R.drawable.ic_microphone)!!,
requireContext().getString(R.string.voice_search_content_description), requireContext().getString(R.string.voice_search_content_description),

Loading…
Cancel
Save