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 c8447b0e7cf88b35d5e2948a92549eaaabaf3231..b8f0cd6029e1de64ae97bf94c5dc78c16eb65a0b 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 |
@@ -347,6 +347,7 @@ public class ImeAdapter { |
if (nativeImeAdapter != 0) { |
createInputConnectionFactory(); |
} |
+ resetAndHideKeyboard(); |
} |
/** |
@@ -427,6 +428,7 @@ public class ImeAdapter { |
* Call this when view is detached from window |
*/ |
public void onViewDetachedFromWindow() { |
+ resetAndHideKeyboard(); |
if (mInputConnectionFactory != null) { |
mInputConnectionFactory.onViewDetachedFromWindow(); |
} |
@@ -438,7 +440,6 @@ public class ImeAdapter { |
*/ |
public void onViewFocusChanged(boolean gainFocus) { |
if (DEBUG_LOGS) Log.w(TAG, "onViewFocusChanged: gainFocus [%b]", gainFocus); |
- if (!gainFocus) resetAndHideKeyboard(); |
if (mInputConnectionFactory != null) { |
mInputConnectionFactory.onViewFocusChanged(gainFocus); |
} |