[Nearby] Fix unwanted toggle animation.
If we launch the settings app by navigating to the Nearby Share subpage, the "enabled" toggle can be seen animating from the off to the on state. This is because prefs are not bound until after the page is visible. Other elements also appear or update after the page loads, but this toggle is especially noticeable because of the animation. This fix wraps the toggle in a template so that it appears in the correct state after prefs have been bound. Fixed: 1158520 Change-Id: Ifbc753ca3faf6db65bba183621c861bc716c6746 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2602576Reviewed-by:Kyle Horimoto <khorimoto@chromium.org> Commit-Queue: Michael Hansen <hansenmichael@google.com> Cr-Commit-Position: refs/heads/master@{#841163}
Showing
Please register or sign in to comment