diff options
| author | Feng Cao <fengcao@google.com> | 2019-06-02 11:05:16 -0700 |
|---|---|---|
| committer | Feng Cao <fengcao@google.com> | 2019-06-08 00:56:43 +0000 |
| commit | 9e4ca44e28ff23d56be186943adec9721e76d1dc (patch) | |
| tree | 8878292b480d00afd7909892155c2615e7e8898d /core/java/android/widget/TextView.java | |
| parent | 44ba2ebda445f575db396bf53de8fc0a36c8d5a5 (diff) | |
Only send text update for TextView after VIEW_ADDED is notified
Test: atest CtsContentCaptureServiceTestCases (sanity check)
Fixes: 134309443
Change-Id: Ia94194576db0a1679bbb2a9b76c84a871b965435
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 ac144b202bd5..0918c5fdefa8 100644 --- a/core/java/android/widget/TextView.java +++ b/core/java/android/widget/TextView.java @@ -10586,7 +10586,7 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener // notifyAppeared was not sent. // ContentCapture - if (isLaidOut() && isImportantForContentCapture()) { + if (isLaidOut() && isImportantForContentCapture() && getNotifiedContentCaptureAppeared()) { final ContentCaptureManager cm = mContext.getSystemService(ContentCaptureManager.class); if (cm != null && cm.isContentCaptureEnabled()) { final ContentCaptureSession session = getContentCaptureSession(); |
