diff --git a/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt b/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt index 043f88335e..16824b9a1d 100644 --- a/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt +++ b/app/src/main/java/org/mozilla/fenix/search/SearchDialogFragment.kt @@ -279,6 +279,10 @@ class SearchDialogFragment : AppCompatDialogFragment(), UserInteractionHandler { when (event?.action) { MotionEvent.ACTION_DOWN, MotionEvent.ACTION_MOVE -> { isPrivateButtonClicked = isTouchingPrivateButton(event.x, event.y) + // Immediately drop Search Bar focus when the touch is not on the private button. + if (!isPrivateButtonClicked) { + toolbarView.view.clearFocus() + } } MotionEvent.ACTION_UP -> { if (!isTouchingPrivateButton(