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

This commit is contained in:
TreeHugger Robot
2019-05-30 00:25:04 +00:00
committed by Android (Google) Code Review

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