Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d5bd0d08 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Change how notifyAppearedOrDisappearedForContentCaptureIfNeeded()...

Merge "Change how notifyAppearedOrDisappearedForContentCaptureIfNeeded() checks if view is visible."
parents 76a0f267 3835835a
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -9031,11 +9031,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        if (session == null) return;
        if (appeared) {
            if (!isLaidOut() || !isVisibleToUser()
            if (!isLaidOut() || getVisibility() != VISIBLE
                    || (mPrivateFlags4 & PFLAG4_NOTIFIED_CONTENT_CAPTURE_APPEARED) != 0) {
                if (Log.isLoggable(CONTENT_CAPTURE_LOG_TAG, Log.VERBOSE)) {
                    Log.v(CONTENT_CAPTURE_LOG_TAG, "Ignoring 'appeared' on " + this + ": laid="
                            + isLaidOut() + ", visible=" + isVisibleToUser()
                            + isLaidOut() + ", visibleToUser=" + isVisibleToUser()
                            + ", visible=" + (getVisibility() == VISIBLE)
                            + ": alreadyNotifiedAppeared="
                            + ((mPrivateFlags4 & PFLAG4_NOTIFIED_CONTENT_CAPTURE_APPEARED) != 0));
                }