mirror of
https://github.com/fork-maintainers/iceraven-browser
synced 2024-11-19 09:25:34 +00:00
[fenix] For https://github.com/mozilla-mobile/fenix/issues/15464: Always dismiss search dialog on url committed.
This commit is contained in:
parent
39c21ff474
commit
d9e06f581a
@ -74,13 +74,13 @@ class SearchDialogController(
|
|||||||
navController.navigateSafe(R.id.searchDialogFragment, directions)
|
navController.navigateSafe(R.id.searchDialogFragment, directions)
|
||||||
}
|
}
|
||||||
"moz://a" -> openSearchOrUrl(SupportUtils.getMozillaPageUrl(SupportUtils.MozillaPage.MANIFESTO))
|
"moz://a" -> openSearchOrUrl(SupportUtils.getMozillaPageUrl(SupportUtils.MozillaPage.MANIFESTO))
|
||||||
else -> if (url.isNotBlank()) {
|
else ->
|
||||||
|
if (url.isNotBlank()) {
|
||||||
openSearchOrUrl(url)
|
openSearchOrUrl(url)
|
||||||
} else {
|
}
|
||||||
|
}
|
||||||
dismissDialog()
|
dismissDialog()
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun openSearchOrUrl(url: String) {
|
private fun openSearchOrUrl(url: String) {
|
||||||
clearToolbarFocus()
|
clearToolbarFocus()
|
||||||
|
Loading…
Reference in New Issue
Block a user