Loading core/java/android/view/View.java +6 −0 Original line number Diff line number Diff line Loading @@ -9510,6 +9510,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback, mPrivateFlags4 &= ~PFLAG4_NOTIFIED_CONTENT_CAPTURE_DISAPPEARED; } /** @hide */ protected boolean getNotifiedContentCaptureAppeared() { return (mPrivateFlags4 & PFLAG4_NOTIFIED_CONTENT_CAPTURE_APPEARED) != 0; } /** * Sets the (optional) {@link ContentCaptureSession} associated with this view. * core/java/android/widget/TextView.java +1 −1 Original line number Diff line number Diff line Loading @@ -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(); Loading Loading
core/java/android/view/View.java +6 −0 Original line number Diff line number Diff line Loading @@ -9510,6 +9510,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback, mPrivateFlags4 &= ~PFLAG4_NOTIFIED_CONTENT_CAPTURE_DISAPPEARED; } /** @hide */ protected boolean getNotifiedContentCaptureAppeared() { return (mPrivateFlags4 & PFLAG4_NOTIFIED_CONTENT_CAPTURE_APPEARED) != 0; } /** * Sets the (optional) {@link ContentCaptureSession} associated with this view. *
core/java/android/widget/TextView.java +1 −1 Original line number Diff line number Diff line Loading @@ -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(); Loading