Stop playBookmak from being updated when a song is paused.

This commit is contained in:
Jonathan Bernard 2016-06-01 11:29:10 -05:00
parent 7101f3fd53
commit aa640bb4f9

View File

@ -393,7 +393,10 @@ Configuration:
dismissMsgDate = new Date(new Date().time + msgTimeout) } } } dismissMsgDate = new Date(new Date().time + msgTimeout) } } }
else { else {
drawLeader() drawLeader()
if (curMediaFile && System.currentTimeMillis() > nextBookmarkUpdate) { if (curMediaFile &&
vlcj.mediaListPlayer.mediaPlayer.isPlaying() &&
System.currentTimeMillis() > nextBookmarkUpdate) {
playBookmark.playTimeMs = playBookmark.playTimeMs =
vlcj.mediaListPlayer.mediaPlayer.time vlcj.mediaListPlayer.mediaPlayer.time
library.save(playBookmark) library.save(playBookmark)