Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5e7d8f5 authored by Adam He's avatar Adam He
Browse files

View gets View_importantForContentCapture from attributes.

Fixes: 123697685
Test: atest android.contentcaptureservice.cts.LoginActivityTest#testSimpleLifecycle_defaultSession
Change-Id: I30993e4034bbcc9682397794a366fc574a7ad58b
parent ac4eafc9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -5803,6 +5803,11 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
                        setImportantForAutofill(a.getInt(attr, IMPORTANT_FOR_AUTOFILL_AUTO));
                    }
                    break;
                case R.styleable.View_importantForContentCapture:
                    if (a.peekValue(attr) != null) {
                        setImportantForContentCapture(a.getInt(attr,
                                IMPORTANT_FOR_CONTENT_CAPTURE_AUTO));
                    }
                case R.styleable.View_defaultFocusHighlightEnabled:
                    if (a.peekValue(attr) != null) {
                        setDefaultFocusHighlightEnabled(a.getBoolean(attr, true));