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:
Leon Scroggins III
2010-08-12 14:24:00 -04:00
parent 81a81f02d6
commit 6f99270cbe

View File

@ -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();
}
}