Send first sleep timer tick earlier (#6288)
This commit is contained in:
parent
13439e1a48
commit
78bce635c4
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue