diff options
author | hush <hush@chromium.org> | 2015-12-01 18:43:11 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-12-02 02:44:08 +0000 |
commit | a9630d742d9577095a3a30b276ffad579b2e8a60 (patch) | |
tree | 047a7011dce1785d7903f50a946216f9a2d06257 /android_webview | |
parent | bd8a661bac1bd8616dc47db6aef02150a395b312 (diff) | |
download | chromium_src-a9630d742d9577095a3a30b276ffad579b2e8a60.zip chromium_src-a9630d742d9577095a3a30b276ffad579b2e8a60.tar.gz chromium_src-a9630d742d9577095a3a30b276ffad579b2e8a60.tar.bz2 |
Set readonly flag for text processing intents for M release only
It is possible that SDK_INT == 23 while SDK == "N". We need to allow
selected text to be replaced in this case.
BUG=
Review URL: https://codereview.chromium.org/1490073002
Cr-Commit-Position: refs/heads/master@{#362598}
Diffstat (limited to 'android_webview')
-rw-r--r-- | android_webview/java/src/org/chromium/android_webview/AwContents.java | 4 |
1 files changed, 3 insertions, 1 deletions
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 c610d5a..fb2391a 100644 --- a/android_webview/java/src/org/chromium/android_webview/AwContents.java +++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java @@ -2247,7 +2247,9 @@ public class AwContents implements SmartClipProvider, 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 && !"N".equals(Build.VERSION.CODENAME)) { intent.putExtra(Intent.EXTRA_PROCESS_TEXT_READONLY, true); } |