Skip to content

Commit b3830f6

Browse files
committed
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
1 parent 31725b3 commit b3830f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/java/android/view/AccessibilityInteractionController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,7 @@ private boolean isDisplayedOnScreen(View view) {
602602
// tree traversal.
603603
return (view.mAttachInfo != null
604604
&& view.mAttachInfo.mWindowVisibility == View.VISIBLE
605+
&& view.getAlpha() > 0
605606
&& view.isShown()
606607
&& view.getGlobalVisibleRect(mViewRootImpl.mTempRect));
607608
}

0 commit comments

Comments
 (0)