Skip to content

Commit 025acd1

Browse files
authored
Fix omnibar focus issue when Input Screen enabled (#6336)
Task/Issue URL: https://app.asana.com/1/137249556945/project/488551667048375/task/1210660229808941?focus=true ### Description - Fixes the omnibar focussing when Input Screen is enabled ### Steps to test this PR - [ ] Enable Settings > Duck.ai > Search Input - [ ] Tap on the omnibar - [ ] Verify that the omnibar is not focussed - [ ] Go back - [ ] Try again 😁 - [ ] Verify omnibar never focusses
1 parent 1ddce1c commit 025acd1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

app/src/main/java/com/duckduckgo/app/browser/omnibar/experiments/FadeOmnibarLayout.kt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,17 @@ class FadeOmnibarLayout @JvmOverloads constructor(
225225
backIcon.gone()
226226
}
227227

228-
omniBarClickCatcher.isVisible = viewState.showClickCatcher
228+
enableClickCatcher(viewState.showClickCatcher)
229+
}
230+
231+
private fun enableClickCatcher(enabled: Boolean) {
232+
omniBarClickCatcher.isVisible = enabled
233+
234+
omnibarTextInput.apply {
235+
isEnabled = !enabled
236+
isFocusable = !enabled
237+
isFocusableInTouchMode = !enabled
238+
}
229239
}
230240

231241
/**

0 commit comments

Comments
 (0)