Merge "Make content capture send text update event for TextView even when it is not editable (EditText)" into qt-r1-dev

am: f2f679afac

Change-Id: Ic51dfb3955783a015a4ae56c00c9746761517228
This commit is contained in:
Feng Cao
2019-05-29 17:40:50 -07:00
committed by android-build-merger

View File

@@ -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();