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

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

Merge "Don't default accessibilityDataPrivate when the window is FLAG_SECURE."

parents acd732b2 43215fbb
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -3095,7 +3095,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * <p>
     * Accessibility interactions from services without {@code isAccessibilityTool} set to true are
     * disallowed for any of the following conditions:
     * <li>this view's window sets {@link WindowManager.LayoutParams#FLAG_SECURE}.</li>
     * <li>this view sets {@link #getFilterTouchesWhenObscured()}.</li>
     * <li>any parent of this view returns true from {@link #isAccessibilityDataPrivate()}.</li>
     * </p>
@@ -14531,9 +14530,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        // Use the explicit value if set.
        if (mExplicitAccessibilityDataPrivate != ACCESSIBILITY_DATA_PRIVATE_AUTO) {
            mInferredAccessibilityDataPrivate = mExplicitAccessibilityDataPrivate;
        } else if (mAttachInfo != null && mAttachInfo.mWindowSecure) {
            // Views inside FLAG_SECURE windows default to accessibilityDataPrivate.
            mInferredAccessibilityDataPrivate = ACCESSIBILITY_DATA_PRIVATE_YES;
        } else if (getFilterTouchesWhenObscured()) {
            // Views that set filterTouchesWhenObscured default to accessibilityDataPrivate.
            mInferredAccessibilityDataPrivate = ACCESSIBILITY_DATA_PRIVATE_YES;
@@ -30261,11 +30257,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
         */
        int mWindowVisibility;
        /**
         * Indicates whether the view's window sets {@link WindowManager.LayoutParams#FLAG_SECURE}.
         */
        boolean mWindowSecure;
        /**
         * Indicates the time at which drawing started to occur.
         */
+0 −1
Original line number Diff line number Diff line
@@ -2838,7 +2838,6 @@ public final class ViewRootImpl implements ViewParent,
            // However, windows are now always 32 bits by default, so choose 32 bits
            mAttachInfo.mUse32BitDrawingCache = true;
            mAttachInfo.mWindowVisibility = viewVisibility;
            mAttachInfo.mWindowSecure = (lp.flags & WindowManager.LayoutParams.FLAG_SECURE) != 0;
            mAttachInfo.mRecomputeGlobalAttributes = false;
            mLastConfigurationFromResources.setTo(config);
            mLastSystemUiVisibility = mAttachInfo.mSystemUiVisibility;