DescriptionFix fading overlay events
Previously the FadingViewObserver had events triggered by setAlpha
to avoid null checks required by Android K. This turns out to have
issues with calling the "change" event too many times. As a result
the list of obscuring views in ChromeActivity gets the same view
added to it multiple times, breaking accessibility.
This change does two things. First, the event system for the fading
view is changed to work based on View's onVisibilityChanged event.
The observers are null checked to avoid issues on Android K. Second,
the list of obscuring views has been changed to be a set so that it
will not contain multiple references to the same view.
BUG=689203
Review-Url: https://codereview.chromium.org/2709883002
Cr-Commit-Position: refs/heads/master@{#452190}
Committed: https://chromium.googlesource.com/chromium/src/+/e18b88a5d18f93520fe9e97851e14582b0eb5e50
Patch Set 1 #
Total comments: 2
Patch Set 2 : rearrange null check #
Messages
Total messages: 10 (5 generated)
|