diff options
| author | Feng Cao <fengcao@google.com> | 2019-05-28 17:10:23 -0700 |
|---|---|---|
| committer | Feng Cao <fengcao@google.com> | 2019-05-29 01:09:47 +0000 |
| commit | 2a42d99897c5da804926627984c0fb587d9ce78f (patch) | |
| tree | 63b58035dac528c76a4960c9c06c36ee32545560 /core/java/android/widget/TextView.java | |
| parent | 0c2d505dfbbeaaa90420921fb56f943b0c4b6765 (diff) | |
Make content capture send text update event for TextView even when it is not editable (EditText)
Test: atest CtsContentCaptureServiceTestCases
Fixes: 124203774
Change-Id: Ib79c847d68dfcde89155e18feea1bc34206269f9
Diffstat (limited to 'core/java/android/widget/TextView.java')
| -rw-r--r-- | core/java/android/widget/TextView.java | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |
