2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-09 19:10:42 +00:00

For #3488: Cleans up edit mode calls (#3689)

This commit is contained in:
Sawyer Blatz 2019-06-26 13:40:07 -07:00 committed by Colin Lee
parent 2cafd5bba6
commit 309014139d

View File

@ -134,8 +134,7 @@ class ToolbarUIView(
newState = SearchState("", "", it.isEditing, it.engine, it.focused, it.isQueryUpdated) newState = SearchState("", "", it.isEditing, it.engine, it.focused, it.isQueryUpdated)
} }
// Need to set edit mode if the url value was cleared if (newState != it || shouldUpdateEditingState(newState)) {
if (newState.focused || shouldClearSearchURL(it) || shouldUpdateEditingState(newState)) {
updateEditingState(newState) updateEditingState(newState)
} }