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

This commit is contained in:
Jay Aliomer
2021-11-11 20:47:01 +00:00
committed by Android (Google) Code Review

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);
}
/**