Loading services/core/java/com/android/server/wallpaper/WallpaperManagerService.java +1 −11 Original line number Diff line number Diff line Loading @@ -405,21 +405,11 @@ public class WallpaperManagerService extends IWallpaperManager.Stub needsExtraction = wallpaper.primaryColors == null; } // Let's notify the current values, it's fine if it's null, it just means // that we don't know yet. notifyColorListeners(wallpaper.primaryColors, which, wallpaper.userId, displayId); if (needsExtraction) { extractColors(wallpaper); synchronized (mLock) { // Don't need to notify if nothing changed. if (wallpaper.primaryColors == null) { return; } } notifyColorListeners(wallpaper.primaryColors, which, wallpaper.userId, displayId); } } private static <T extends IInterface> boolean emptyCallbackList(RemoteCallbackList<T> list) { return (list == null || list.getRegisteredCallbackCount() == 0); Loading Loading
services/core/java/com/android/server/wallpaper/WallpaperManagerService.java +1 −11 Original line number Diff line number Diff line Loading @@ -405,21 +405,11 @@ public class WallpaperManagerService extends IWallpaperManager.Stub needsExtraction = wallpaper.primaryColors == null; } // Let's notify the current values, it's fine if it's null, it just means // that we don't know yet. notifyColorListeners(wallpaper.primaryColors, which, wallpaper.userId, displayId); if (needsExtraction) { extractColors(wallpaper); synchronized (mLock) { // Don't need to notify if nothing changed. if (wallpaper.primaryColors == null) { return; } } notifyColorListeners(wallpaper.primaryColors, which, wallpaper.userId, displayId); } } private static <T extends IInterface> boolean emptyCallbackList(RemoteCallbackList<T> list) { return (list == null || list.getRegisteredCallbackCount() == 0); Loading