diff options
author | Scott Jackson <daneren2005@gmail.com> | 2016-03-10 17:57:23 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2016-03-10 17:57:23 -0800 |
commit | 69ba57fa67a374a3f3e4c3a02da84ec6130fb081 (patch) | |
tree | 5e8fe5e2a4c2c9b492a1275d20f0bbdf2e139ffd /app | |
parent | 1a5fb5c35b0992ed988c2103dc47bf6c3175161e (diff) | |
download | dsub-69ba57fa67a374a3f3e4c3a02da84ec6130fb081.tar.gz dsub-69ba57fa67a374a3f3e4c3a02da84ec6130fb081.tar.bz2 dsub-69ba57fa67a374a3f3e4c3a02da84ec6130fb081.zip |
Don't add bookmarks near the end of a podcast/audio book on pause
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/github/daneren2005/dsub/service/DownloadService.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java index 84a884ed..b5a44ec1 100644 --- a/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java +++ b/app/src/main/java/github/daneren2005/dsub/service/DownloadService.java @@ -1380,7 +1380,9 @@ public class DownloadService extends Service { if (playerState == PAUSED) { lifecycleSupport.serializeDownloadQueue(); - checkAddBookmark(true); + if(!isPastCutoff()) { + checkAddBookmark(true); + } } boolean show = playerState == PlayerState.STARTED; |