For #12430: Hide the mic when not using Google
parent
d3a07e95c9
commit
0e438ef9a7
|
@ -160,7 +160,11 @@ class SearchFragment : Fragment(), UserInteractionHandler {
|
|||
BrowserToolbar.Button(
|
||||
ContextCompat.getDrawable(requireContext(), R.drawable.ic_microphone)!!,
|
||||
requireContext().getString(R.string.voice_search_content_description),
|
||||
visible = { requireContext().settings().shouldShowVoiceSearch && speechIsAvailable() },
|
||||
visible = {
|
||||
currentSearchEngine.searchEngine.identifier.contains("google") &&
|
||||
speechIsAvailable() &&
|
||||
requireContext().settings().shouldShowVoiceSearch
|
||||
},
|
||||
listener = ::launchVoiceSearch
|
||||
)
|
||||
)
|
||||
|
|
472
docs/metrics.md
472
docs/metrics.md
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue