Skip to content

Commit

Permalink
Fixing repeat playlist mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeancsanchez committed Sep 13, 2018
1 parent 9cfdbe8 commit e277d06
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,10 +221,10 @@ private constructor(private val serviceConnection: JcServiceConnection) : JcPlay
playlist[currentPositionList.inc()]
} catch (e: IndexOutOfBoundsException) {
if (repeatPlaylist) {
playlist.first()
return playlist.first()
}

return null
null
}
}
}
Expand All @@ -237,7 +237,7 @@ private constructor(private val serviceConnection: JcServiceConnection) : JcPlay
playlist[currentPositionList.dec()]

} catch (e: IndexOutOfBoundsException) {
playlist.first()
return playlist.first()
}
}
}
Expand Down

0 comments on commit e277d06

Please sign in to comment.