Skip to content
Snippets Groups Projects
Commit d41fe59d authored by Duncan McNamara's avatar Duncan McNamara Committed by Nicolas Pomepuy
Browse files

WatchNext: update when home is pressed

The boolean !audio is false when home is pressed but true when back is
pressed, because of this setResumeProgram was not called when pressing
home, and watch next was not updated
parent 1857e4ae
No related branches found
No related tags found
1 merge request!1092WatchNext: improvements and fixes
......@@ -259,7 +259,9 @@ class PlaylistManager(val service: PlaybackService) : MediaWrapperList.EventList
val audio = isAudioList() // check before dispatching in saveMediaMeta()
launch(start = CoroutineStart.UNDISPATCHED) {
saveMediaMeta().join()
if (AndroidDevices.isAndroidTv && AndroidUtil.isOOrLater && !audio) setResumeProgram(service.applicationContext, it)
if (AndroidDevices.isAndroidTv && AndroidUtil.isOOrLater && video) {
setResumeProgram(service.applicationContext, it)
}
}
}
mediaList.removeEventListener(this)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment