Merge "Set WebView as important for Content Capture."

This commit is contained in:
TreeHugger Robot
2018-11-27 17:28:17 +00:00
committed by Android (Google) Code Review

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