Hide the soft keyboard even if WebTextView is not in use.
Sometimes clearTextEntry is called when mWebTextView is not being used. In those cases, we still want to hide the soft keyboard, since the user is no longer attempting to type. Bug: 2835685 Change-Id: I4e8d4bc60b23028e2840d6205caf13699bce6031
This commit is contained in:
@ -1817,9 +1817,12 @@ public class WebView extends AbsoluteLayout
|
||||
private void clearTextEntry(boolean disableFocusController) {
|
||||
if (inEditingMode()) {
|
||||
mWebTextView.remove();
|
||||
if (disableFocusController) {
|
||||
setFocusControllerInactive();
|
||||
}
|
||||
} else {
|
||||
// The keyboard may be open with the WebView as the served view
|
||||
hideSoftKeyboard();
|
||||
}
|
||||
if (disableFocusController) {
|
||||
setFocusControllerInactive();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user