Commit 9088deca authored by Wenzhao Zang's avatar Wenzhao Zang Committed by Commit Bot

Ensure the correct wallpaper is loaded when Add User screen is closed

If |focusedPod_| is already set, and it is the same with |podToFocus|,
early return is hit in focusPod(), however we should force a focus
update in order to ensure the correct wallpaper is set.

Bug: 769492
Change-Id: I820a523c863d693663411e436be2baa8b62fa178
Reviewed-on: https://chromium-review.googlesource.com/691046Reviewed-by: default avatarAlexander Alekseev <alemate@chromium.org>
Commit-Queue: Wenzhao (Colin) Zang <wzang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#505409}
parent e9ae372f
......@@ -4783,7 +4783,8 @@ cr.define('login', function() {
*/
maybePreselectPod: function() {
var pod = this.preselectedPod;
this.focusPod(pod);
// Force a focus update to ensure the correct wallpaper is loaded.
this.focusPod(pod, true /* force */);
// Hide user-type-bubble in case all user pods are disabled and we focus
// first pod.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment