mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-08 04:54:47 +02:00
Fix:Android sleep timer getting set to time left in media #659
This commit is contained in:
parent
922d9f22ce
commit
1b47c38efa
1 changed files with 0 additions and 4 deletions
|
@ -84,10 +84,6 @@ class SleepTimerManager constructor(private val playerNotificationService: Playe
|
||||||
} else {
|
} else {
|
||||||
sleepTimerLength = time
|
sleepTimerLength = time
|
||||||
sleepTimerEndTime = 0L
|
sleepTimerEndTime = 0L
|
||||||
|
|
||||||
if (sleepTimerLength + getCurrentTime() > getDuration()) {
|
|
||||||
sleepTimerLength = getDuration() - getCurrentTime()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
playerNotificationService.clientEventEmitter?.onSleepTimerSet(getSleepTimerTimeRemainingSeconds(), isAutoSleepTimer)
|
playerNotificationService.clientEventEmitter?.onSleepTimerSet(getSleepTimerTimeRemainingSeconds(), isAutoSleepTimer)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue