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

Test: atest CtsContentCaptureServiceTestCases
Fixes: 124203774

Change-Id: Ib79c847d68dfcde89155e18feea1bc34206269f9
This commit is contained in:
Feng Cao
2019-05-28 17:10:23 -07:00
parent 0c2d505dfb
commit 2a42d99897

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