Set WebView as important for Content Capture.

Test: echo 'In TreeHugger we trust!'
Bug: 111276913

Change-Id: I28c4691c9b4adb8163eaff15f7e498f637a162ad
This commit is contained in:
Felipe Leme
2018-11-26 15:53:21 -08:00
parent fe36fc246e
commit bf01eeafa0

View File

@@ -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");