summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2021-06-24 16:25:22 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2021-06-24 16:25:22 +0000
commit8c9039fca8c467fcf0a8c57787aa84d74d162b9a (patch)
treedce1738ff700d9825d0e1dbd84cb56a6347a2f40
parentef1bb2c9fab128b2a9ee869f295b41954629b98f (diff)
parent518bc8ac7099e83ade1129184a9f53dcc3f55d10 (diff)
Merge "Save one notifyColorListeners() call" into sc-dev
-rw-r--r--services/core/java/com/android/server/wallpaper/WallpaperManagerService.java12
1 files changed, 1 insertions, 11 deletions
diff --git a/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java b/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java
index 782e18b0250c..771332071756 100644
--- a/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java
+++ b/services/core/java/com/android/server/wallpaper/WallpaperManagerService.java
@@ -405,20 +405,10 @@ 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);
}
+ notifyColorListeners(wallpaper.primaryColors, which, wallpaper.userId, displayId);
}
private static <T extends IInterface> boolean emptyCallbackList(RemoteCallbackList<T> list) {