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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 2745623003: Revert of Fix TODOs related to SDK 24 (Closed)
Patch Set: Created 3 years, 9 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: 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);
}

Powered by Google App Engine
This is Rietveld 408576698