Bug 1948618 - Refactor the SearchSelector composable to be driven from state r=android-reviewers,gl

SearchSelector will have it's entire UX configured through plain data and will
hoist user interactions through a standardized
> onInteraction: (BrowserToolbarEvent) -> Unit
call.

Differential Revision: https://phabricator.services.mozilla.com/D238984
This commit is contained in:
Mugurell
2025-03-25 19:08:54 +00:00
parent 787b23a23e
commit 7fa78bcec3
10 changed files with 133 additions and 24 deletions

View File

@@ -54,6 +54,7 @@ fun BrowserToolbar(
editActionsEnd = uiState.editState.editActionsEnd,
onUrlCommitted = { text -> onTextCommit(text) },
onUrlEdit = { text -> onTextEdit(text) },
onInteraction = {},
)
} else {
BrowserDisplayToolbar(
@@ -77,6 +78,7 @@ fun BrowserToolbar(
editActionsEnd = uiState.editState.editActionsEnd,
onUrlCommitted = { text -> onTextCommit(text) },
onUrlEdit = { text -> onTextEdit(text) },
onInteraction = {},
)
}