From 2a42d99897c5da804926627984c0fb587d9ce78f Mon Sep 17 00:00:00 2001 From: Feng Cao Date: Tue, 28 May 2019 17:10:23 -0700 Subject: Make content capture send text update event for TextView even when it is not editable (EditText) Test: atest CtsContentCaptureServiceTestCases Fixes: 124203774 Change-Id: Ib79c847d68dfcde89155e18feea1bc34206269f9 --- core/java/android/widget/TextView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/java/android/widget/TextView.java') diff --git a/core/java/android/widget/TextView.java b/core/java/android/widget/TextView.java index cdbec293a96d..383d9b4e9c41 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -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(); -- cgit v1.2.3