Index: android_webview/java/src/org/chromium/android_webview/AwContents.java |
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java |
index 561a0191fa7fb16b7a58a4d41e4b9c6ec12baf3b..6e5400008fc2ab43ef06e668f841e59adbc85d0a 100644 |
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java |
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java |
@@ -2356,7 +2356,9 @@ |
void startProcessTextIntent(Intent intent) { |
// on Android M, WebView is not able to replace the text with the processed text. |
// So set the readonly flag for M. |
- if (Build.VERSION.SDK_INT == Build.VERSION_CODES.M) { |
+ // TODO(hush): remove the part about VERSION.CODENAME equality with N, after N release. |
+ // crbug.com/543272 |
+ if (Build.VERSION.SDK_INT == Build.VERSION_CODES.M && !Build.VERSION.CODENAME.equals("N")) { |
intent.putExtra(Intent.EXTRA_PROCESS_TEXT_READONLY, true); |
} |