Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1902)

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java

Issue 1388283002: Fix OSK flickering issue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
index 98a547993ef0502681711acb5fdd371fd6b1a557..b6831241316c5f123399d11d290c0c0ff81afef2 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java
@@ -2484,8 +2484,9 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Screen
boolean focusedNodeIsPassword = (textInputType == TextInputType.PASSWORD);
if (!focusedNodeEditable) hidePastePopup();
+ mImeAdapter.attach(nativeImeAdapterAndroid);
mImeAdapter.updateKeyboardVisibility(
- nativeImeAdapterAndroid, textInputType, textInputFlags, showImeIfNeeded);
+ textInputType, textInputFlags, showImeIfNeeded);
if (mInputConnection != null) {
mInputConnection.updateState(text, selectionStart, selectionEnd, compositionStart,
@@ -2675,7 +2676,6 @@ public class ContentViewCore implements AccessibilityStateChangeListener, Screen
}
private boolean canPaste() {
- if (!mFocusedNodeEditable) return false;
return ((ClipboardManager) mContext.getSystemService(
Context.CLIPBOARD_SERVICE)).hasPrimaryClip();
}

Powered by Google App Engine
This is Rietveld 408576698