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

Commit b3830f67 authored by Svetoslav Ganov's avatar Svetoslav Ganov
Browse files

Views with zero alpha are shown for accessibility.

1. Views that a user cannot see should not be reported for
   accessibility. The check for zero alpha was missing.

bug:6291855

Change-Id: I3cb4c19cccf0dc2427677df630d124c36bd4770b
parent 31725b3f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -602,6 +602,7 @@ final class AccessibilityInteractionController {
        // tree traversal.
        return (view.mAttachInfo != null
                && view.mAttachInfo.mWindowVisibility == View.VISIBLE
                && view.getAlpha() > 0
                && view.isShown()
                && view.getGlobalVisibleRect(mViewRootImpl.mTempRect));
    }