Skip to content

Commit 74983e5

Browse files
Patrick NolandChromium LUCI CQ
Patrick Noland
authored and
Chromium LUCI CQ
committed
[Journeys] Focus and show keyboard when starting search with empty text
Bug: 1354041 Change-Id: I9999bb1b05c43a8e20336af9f77d684cedcb71e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3840626 Reviewed-by: Gang Wu <gangwu@chromium.org> Commit-Queue: Patrick Noland <pnoland@chromium.org> Cr-Commit-Position: refs/heads/main@{#1037828}
1 parent b18af72 commit 74983e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chrome/browser/history_clusters/java/src/org/chromium/chrome/browser/history_clusters/HistoryClustersViewBinder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static void bindToolbar(
4545
if (key == HistoryClustersToolbarProperties.QUERY_STATE) {
4646
QueryState queryState = model.get(HistoryClustersToolbarProperties.QUERY_STATE);
4747
if (queryState.isSearching()) {
48-
toolbar.showSearchView(false);
48+
toolbar.showSearchView(queryState.getQuery().isEmpty());
4949
toolbar.setSearchText(queryState.getQuery());
5050
} else {
5151
toolbar.hideSearchView();

0 commit comments

Comments
 (0)