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

Commit 2a42d998 authored by Feng Cao's avatar Feng Cao
Browse files

Make content capture send text update event for TextView even when it is not editable (EditText)

Test: atest CtsContentCaptureServiceTestCases
Fixes: 124203774

Change-Id: Ib79c847d68dfcde89155e18feea1bc34206269f9
parent 0c2d505d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10578,7 +10578,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        // notifyAppeared was not sent.
        // ContentCapture
        if (isLaidOut() && isImportantForContentCapture() && isTextEditable()) {
        if (isLaidOut() && isImportantForContentCapture()) {
            final ContentCaptureManager cm = mContext.getSystemService(ContentCaptureManager.class);
            if (cm != null && cm.isContentCaptureEnabled()) {
                final ContentCaptureSession session = getContentCaptureSession();