Update local wallpaper colors when areas added and fix stale clock

Test: manual
Fixes: 200252681
Change-Id: I5e46f5513eebe8ef1d1b01338e323bca6ea401b8
This commit is contained in:
Jay Aliomer
2021-10-05 12:46:11 -04:00
parent bcc3f65352
commit d5d115a29c

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