2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

[fenix] Issue https://github.com/mozilla-mobile/fenix/issues/24739: Set QR code button to autohide

This commit is contained in:
Roger Yang 2022-04-25 13:21:21 -04:00 committed by mergify[bot]
parent 85c0a8b33a
commit 5d50fae8dc

View File

@ -758,7 +758,8 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler {
val qrAction = BrowserToolbar.Button(
AppCompatResources.getDrawable(requireContext(), R.drawable.ic_qr)!!,
requireContext().getString(R.string.search_scan_button),
listener = ::launchQr
autoHide = { true },
listener = ::launchQr,
)
toolbarView.view.run {
addEditActionEnd(IncreasedTapAreaActionDecorator(qrAction))