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

Commit 020c3b85 authored by Eric Rahm's avatar Eric Rahm
Browse files

Move verbose wallpaper update log

Only log wallpapr updates when the system or lock wallpaper are actually
changing. This reduces a fair amount of logging and makes it easier to
debug wallpaper transitions.

Bug: 296508731
Test: atest WallpaperManagerTest
Change-Id: I73a4516b3db1615ec05cb871f09332f72b436f06
parent 3c9c6205
Loading
Loading
Loading
Loading
+9 −9
Original line number Diff line number Diff line
@@ -256,6 +256,15 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
                    || event != CLOSE_WRITE // includes the MOVED_TO case
                    || wallpaper.imageWallpaperPending;

            if (isMigration) {
                // When separate lock screen engine is supported, migration will be handled by
                // WallpaperDestinationChangeHandler.
                return;
            }
            if (!(sysWallpaperChanged || lockWallpaperChanged)) {
                return;
            }

            if (DEBUG) {
                Slog.v(TAG, "Wallpaper file change: evt=" + event
                        + " path=" + path
@@ -270,15 +279,6 @@ public class WallpaperManagerService extends IWallpaperManager.Stub
                        + " needsUpdate=" + needsUpdate);
            }

            if (isMigration) {
                // When separate lock screen engine is supported, migration will be handled by
                // WallpaperDestinationChangeHandler.
                return;
            }
            if (!(sysWallpaperChanged || lockWallpaperChanged)) {
                return;
            }

            int notifyColorsWhich = 0;
            synchronized (mLock) {
                notifyCallbacksLocked(wallpaper);