[Android] Fix accessibility issues for update menu.
The CL for updating the visuals of how a deprecated operating system should be displayed did not correctly pass along enough information to be able to always have an up to date content description, which is important for accessibility. The state of whether an update badge should be visible or not is always known at the time it has to be updated, so the state should be passed in. The reason is that whether the badge is really visible or not might be correct in all cases when the check happens. This CL therefore goes back to how things were before the visual update by passing the state in. In addition, the menu item itself did not always have a correct content description, but now it is forcefully set during decoriation of the item. Bug: 899695 Change-Id: I9f7e2d4cc6b60ccfaf95d7c07fc351c5c9e2a8ac Reviewed-on: https://chromium-review.googlesource.com/c/1306399 Commit-Queue: Tommy Nyquist <nyquist@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#604022}
Showing
Please register or sign in to comment