don't initialize exoplayer, if view model exists and player is ready

this prevents the media being reloaded, when the app is moved to the background and to the foreground again
This commit is contained in:
2020-12-28 20:45:52 +01:00
parent 800c2a144c
commit 7a5f90cb82
2 changed files with 14 additions and 6 deletions

View File

@ -69,7 +69,7 @@ data class Info(
* number = episode number (0..n)
*/
data class Episode(
val id: Int = 0,
val id: Int = -1,
val streams: MutableList<Stream> = mutableListOf(),
val title: String = "",
val posterUrl: String = "",