Skip to content

Commit

Permalink
feat : onMediaItemChanged 호출 시,currentPositionSecond 변수 0으로 초기화
Browse files Browse the repository at this point in the history
  • Loading branch information
2taezeat committed Dec 7, 2023
1 parent 6acefd2 commit 2ff31c3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class PlayerViewModel @Inject constructor(
it.copy(
duration = duration,
currentMusic = playlist.musics[index],
currentPositionSecond = 0,
isNextEnable = playlist.musics.lastIndex != index,
isPreviousEnable = index != 0
)
Expand Down

0 comments on commit 2ff31c3

Please sign in to comment.