Fix missing devices on Bluetooth settings subpage.
The Bluetooth settings subpage has two iron-list elements, one for paired devices and one for unpaired devices. On an interval we look for devices and then call updateScrollabelContents() to update the UI. If there are no devices in one of the lists, it will remain hidden with a |scrollHeight| of 0. This will cause the timed interval to never be cleared, and updateScrollableContents() will continuously exit early, leaving the other list in a stale state. This CL will only recheck a list if it is not hidden. A corresponding UI test will be added in a future task: https://bugs.chromium.org/p/chromium/issues/detail?id=1121679 Bug: 1107646 Change-Id: I81b090e4b0052a0abff6cbf9dab5257318571b9e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2353562 Commit-Queue: Michael Hansen <hansenmichael@google.com> Reviewed-by:dpapad <dpapad@chromium.org> Reviewed-by:
Ryan Hansberry <hansberry@chromium.org> Cr-Commit-Position: refs/heads/master@{#801536}
Showing
Please register or sign in to comment