Do not register onLayoutListener unless it is needed
isKeyboardShowing calls getWindowVisibleDisplayFrame which may be very expensive sine it involves ipc to other processes. Also layout happens a lot more often in webview than chrome, so this disproportionately affects webview. BUG=487487 Review URL: https://codereview.chromium.org/1140163004 Cr-Commit-Position: refs/heads/master@{#329973}
Showing
Please register or sign in to comment