summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeon Scroggins III <scroggo@google.com>2010-08-12 14:24:00 -0400
committerLeon Scroggins III <scroggo@google.com>2010-08-12 14:45:38 -0400
commit6f99270cbe2d3385962a895d387f9024b829bc22 (patch)
tree1839f2df0275fb2dd7acbd6a3376581fc579a6ff
parent81a81f02d6d1ec7527d62189b6708c1d17f4c5dd (diff)
downloadframeworks_base-6f99270cbe2d3385962a895d387f9024b829bc22.zip
frameworks_base-6f99270cbe2d3385962a895d387f9024b829bc22.tar.gz
frameworks_base-6f99270cbe2d3385962a895d387f9024b829bc22.tar.bz2
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
-rw-r--r--core/java/android/webkit/WebView.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index eb363c7..32009be 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -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();
}
}