2
0
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:
mcarare 2020-12-22 17:03:29 +02:00 committed by Mihai Adrian Carare
parent 39c21ff474
commit d9e06f581a

View File

@ -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()