From 309014139d53e4775f2deb14385baa0ac7c3c57d Mon Sep 17 00:00:00 2001 From: Sawyer Blatz Date: Wed, 26 Jun 2019 13:40:07 -0700 Subject: [PATCH] For #3488: Cleans up edit mode calls (#3689) --- .../java/org/mozilla/fenix/components/toolbar/ToolbarUIView.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/components/toolbar/ToolbarUIView.kt b/app/src/main/java/org/mozilla/fenix/components/toolbar/ToolbarUIView.kt index 4a79924b28..22b3553129 100644 --- a/app/src/main/java/org/mozilla/fenix/components/toolbar/ToolbarUIView.kt +++ b/app/src/main/java/org/mozilla/fenix/components/toolbar/ToolbarUIView.kt @@ -134,8 +134,7 @@ class ToolbarUIView( newState = SearchState("", "", it.isEditing, it.engine, it.focused, it.isQueryUpdated) } - // Need to set edit mode if the url value was cleared - if (newState.focused || shouldClearSearchURL(it) || shouldUpdateEditingState(newState)) { + if (newState != it || shouldUpdateEditingState(newState)) { updateEditingState(newState) }