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:
@@ -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 = {},
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user