Send first sleep timer tick earlier (#6288)

This commit is contained in:
ByteHamster 2023-01-28 10:14:53 +01:00 committed by GitHub
parent 13439e1a48
commit 78bce635c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -294,6 +294,7 @@ public class PlaybackServiceTaskManager {
public void run() { public void run() {
Log.d(TAG, "Starting"); Log.d(TAG, "Starting");
long lastTick = System.currentTimeMillis(); long lastTick = System.currentTimeMillis();
EventBus.getDefault().post(SleepTimerUpdatedEvent.updated(timeLeft));
while (timeLeft > 0) { while (timeLeft > 0) {
try { try {
Thread.sleep(UPDATE_INTERVAL); Thread.sleep(UPDATE_INTERVAL);