Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f208df64 authored by Chris Poultney's avatar Chris Poultney
Browse files

Adds color update notification when setting lock screen live wallpaper

Fixes the issue where the customization hub preview did not change when
setting a lock screen-only live wallpaper for most cases. A follow-up CL
will address the case where wallpaper changes but colors do not.

Fixes: 277746962
Test: manually verified that change causes preview to update correctly
Change-Id: I6743c29abb778b184029bbca7d11c3aebd7a8bd4
parent 2fecd503
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -1229,10 +1229,11 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
                    return;
                }

                // Live wallpapers always are system wallpapers unless lock screen live wp is
                // enabled.
                which = mIsLockscreenLiveWallpaperEnabled ? mWallpaper.mWhich : FLAG_SYSTEM;
                mWallpaper.primaryColors = primaryColors;

                // Live wallpapers always are system wallpapers.
                which = FLAG_SYSTEM;
                // It's also the lock screen wallpaper when we don't have a bitmap in there.
                if (displayId == DEFAULT_DISPLAY) {
                    final WallpaperData lockedWallpaper = mLockWallpaperMap.get(mWallpaper.userId);