Commit bade4480 authored by danielpark@chromium.org's avatar danielpark@chromium.org Committed by Commit Bot

Hides keyboard after search

Adds a call to hideKeyboard when the sheet is closed

Bug: 746803
Change-Id: Ib9d7a6a4696e7bf8f1864d0aaf3d6d3bb734f8d5
Reviewed-on: https://chromium-review.googlesource.com/579790
Commit-Queue: Daniel Park <danielpark@chromium.org>
Reviewed-by: default avatarTheresa <twellington@chromium.org>
Cr-Commit-Position: refs/heads/master@{#488478}
parent 277fb712
......@@ -37,6 +37,7 @@ import org.chromium.chrome.browser.tabmodel.TabModelSelector;
import org.chromium.chrome.browser.tabmodel.TabModelSelectorObserver;
import org.chromium.chrome.browser.util.MathUtils;
import org.chromium.chrome.browser.widget.bottomsheet.BottomSheet.BottomSheetContent;
import org.chromium.ui.UiUtils;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
......@@ -106,6 +107,9 @@ public class BottomSheetContentController extends BottomNavigationView
} else {
clearBottomSheetContents(false);
}
// The keyboard should be hidden when the sheet is closed in case it was made visible by
// sheet content.
UiUtils.hideKeyboard((View) BottomSheetContentController.this);
// TODO(twellington): determine a policy for destroying the
// SuggestionsBottomSheetContent.
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment