Merge "Update local wallpaper colors when areas added and fix stale clock" into sc-v2-dev am: b9902adf15

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15983695

Change-Id: I7fe2ebb469ae36a6fa6be37b83629029418bd80e
This commit is contained in:
Jay Aliomer
2021-11-11 20:53:12 +00:00
committed by Automerger Merge Worker

View File

@@ -1575,7 +1575,7 @@ public abstract class WallpaperService extends Service {
void updatePage(EngineWindowPage currentPage, int pageIndx, int numPages,
float xOffsetStep) {
// to save creating a runnable, check twice
long current = SystemClock.elapsedRealtime();
long current = System.currentTimeMillis();
long lapsed = current - currentPage.getLastUpdateTime();
// Always update the page when the last update time is <= 0
// This is important especially when the device first boots
@@ -1768,6 +1768,7 @@ public abstract class WallpaperService extends Service {
return;
}
}
processLocalColors(mPendingXOffset, mPendingYOffset);
}
/**