Skip to content

Commit 6da9677

Browse files
sganovAndroid (Google) Code Review
authored andcommitted
Merge "Views with zero alpha are shown for accessibility."
2 parents 6957b60 + b3830f6 commit 6da9677

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)