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

Commit 0fb7e834 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Don't generate VIEW_TEXT_CHANGED events when the TextView is not laid out."

parents 05b3b033 507bf13d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10209,7 +10209,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        }

        // ContentCapture
        if (isImportantForContentCapture() && isTextEditable()) {
        if (isLaidOut() && isImportantForContentCapture() && isTextEditable()) {
            final ContentCaptureManager cm = mContext.getSystemService(ContentCaptureManager.class);
            if (cm != null && cm.isContentCaptureEnabled()) {
                // TODO(b/111276913): pass flags when edited by user / add CTS test