Commit 4a59fa8e authored by Wenzhao Zang's avatar Wenzhao Zang Committed by Commit Bot

cros: Fix empty preview wallpaper description issue

Bug: 873340
Change-Id: Ia5979ba5305b154a27689157db573f8bc6803801
Reviewed-on: https://chromium-review.googlesource.com/1171790Reviewed-by: default avatarAlexander Alekseev <alemate@chromium.org>
Commit-Queue: Wenzhao (Colin) Zang <wzang@chromium.org>
Cr-Commit-Position: refs/heads/master@{#582407}
parent 1f3cf71c
......@@ -1548,10 +1548,9 @@ WallpaperManager.prototype.onFileSystemError_ = function(e) {
* Handles changing of selectedItem in wallpaper manager.
*/
WallpaperManager.prototype.onSelectedItemChanged_ = function() {
this.setWallpaperAttribution(this.selectedItem_);
if (!this.selectedItem_ || this.selectedItem_.source == 'ADDNEW')
return;
this.setWallpaperAttribution(this.selectedItem_);
if (this.selectedItem_.baseURL &&
(this.useNewWallpaperPicker_ ||
......
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