mirror of
https://github.com/bbara04/Purefin.git
synced 2026-07-24 03:36:51 +00:00
Code cleanup
This commit is contained in:
@@ -177,7 +177,7 @@ class PlayerManager @Inject constructor(
|
|||||||
}
|
}
|
||||||
|
|
||||||
private suspend fun playNewMedia(mediaId: UUID) {
|
private suspend fun playNewMedia(mediaId: UUID) {
|
||||||
var playableMedia = playableMediaRepository.getPlayableMedia(mediaId)
|
val playableMedia = playableMediaRepository.getPlayableMedia(mediaId)
|
||||||
if (playableMedia == null) {
|
if (playableMedia == null) {
|
||||||
_playbackState.update { it.copy(error = "Media not found") }
|
_playbackState.update { it.copy(error = "Media not found") }
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user