summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Felipe Leme <felipeal@google.com> 2018-11-26 15:53:21 -0800
committer Felipe Leme <felipeal@google.com> 2018-11-26 15:54:08 -0800
commitbf01eeafa0fb71c81e9721bd0f15afcf18cdd623 (patch)
tree989e510001304173c668620d7745eb1e498a89ec
parentfe36fc246edcb743049b0c77d92e8f64e8ee5e7f (diff)
Set WebView as important for Content Capture.
Test: echo 'In TreeHugger we trust!' Bug: 111276913 Change-Id: I28c4691c9b4adb8163eaff15f7e498f637a162ad
-rw-r--r--core/java/android/webkit/WebView.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/java/android/webkit/WebView.java b/core/java/android/webkit/WebView.java
index 4f1417ed23bb..414cb8f30fc7 100644
--- a/core/java/android/webkit/WebView.java
+++ b/core/java/android/webkit/WebView.java
@@ -410,6 +410,9 @@ public class WebView extends AbsoluteLayout
if (getImportantForAutofill() == IMPORTANT_FOR_AUTOFILL_AUTO) {
setImportantForAutofill(IMPORTANT_FOR_AUTOFILL_YES);
}
+ if (getImportantForContentCapture() == IMPORTANT_FOR_CONTENT_CAPTURE_AUTO) {
+ setImportantForContentCapture(IMPORTANT_FOR_CONTENT_CAPTURE_YES);
+ }
if (context == null) {
throw new IllegalArgumentException("Invalid context argument");