Index: content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java |
diff --git a/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java b/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java |
index bfc8ea5b419112ed1af2c03d68581aa3ce044af8..cffc903183d58c4ed76675642a306f50251500bf 100644 |
--- a/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java |
+++ b/content/public/android/java/src/org/chromium/content/browser/input/ImeAdapter.java |
@@ -250,6 +250,9 @@ public class ImeAdapter { |
if (nativeImeAdapter != 0) { |
nativeAttachImeAdapter(mNativeImeAdapterAndroid); |
} |
+ if (mTextInputType == sTextInputTypeNone) { |
+ dismissInput(false); |
+ } |
} |
/** |
@@ -258,13 +261,7 @@ public class ImeAdapter { |
* @param nativeImeAdapter The pointer to the native ImeAdapter object. |
*/ |
public void attach(long nativeImeAdapter) { |
- if (mNativeImeAdapterAndroid != 0) { |
- nativeResetImeAdapter(mNativeImeAdapterAndroid); |
- } |
- mNativeImeAdapterAndroid = nativeImeAdapter; |
- if (nativeImeAdapter != 0) { |
- nativeAttachImeAdapter(mNativeImeAdapterAndroid); |
- } |
+ attach(nativeImeAdapter, sTextInputTypeNone); |
} |
private void showKeyboard() { |