Fix on-screen keyboard issue when search box is focused
Background: In some devices like nocturne, on-screen keyboard pops up when launcher is focused. When launcher is focused, search box textfield will be the initial focused view. SearchBoxViewBase::ContentsChanged() gets called to activate the search box, which triggers the on-screen keyboard. Change: Avoid activate the search box when new contents are empty string. Bug: 895249 Change-Id: I32b0f5a76037b5287d1b179fa20140101ce4f853 Reviewed-on: https://chromium-review.googlesource.com/c/1284754Reviewed-by:Alex Newcomer <newcomer@chromium.org> Commit-Queue: Weidong Guo <weidongg@chromium.org> Cr-Commit-Position: refs/heads/master@{#600577}
Showing
Please register or sign in to comment