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

Commit d57c9734 authored by Feng Cao's avatar Feng Cao Committed by android-build-merger
Browse files

Merge "Only send text update for TextView after VIEW_ADDED is notified" into...

Merge "Only send text update for TextView after VIEW_ADDED is notified" into qt-r1-dev am: 691fa971
am: a1a275e6

Change-Id: Ie5e4104e6111c3a5d326e621c2528ece42879ebf
parents 4bdfa012 a1a275e6
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -9497,6 +9497,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        mPrivateFlags4 &= ~PFLAG4_NOTIFIED_CONTENT_CAPTURE_DISAPPEARED;
    }
    /** @hide */
    protected boolean getNotifiedContentCaptureAppeared() {
        return (mPrivateFlags4 & PFLAG4_NOTIFIED_CONTENT_CAPTURE_APPEARED) != 0;
    }
    /**
     * Sets the (optional) {@link ContentCaptureSession} associated with this view.
     *
+1 −1
Original line number Diff line number Diff line
@@ -10586,7 +10586,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
        // notifyAppeared was not sent.
        // ContentCapture
        if (isLaidOut() && isImportantForContentCapture()) {
        if (isLaidOut() && isImportantForContentCapture() && getNotifiedContentCaptureAppeared()) {
            final ContentCaptureManager cm = mContext.getSystemService(ContentCaptureManager.class);
            if (cm != null && cm.isContentCaptureEnabled()) {
                final ContentCaptureSession session = getContentCaptureSession();