aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2016-03-10 17:57:23 -0800
committerScott Jackson <daneren2005@gmail.com>2016-03-10 17:57:23 -0800
commit69ba57fa67a374a3f3e4c3a02da84ec6130fb081 (patch)
tree5e8fe5e2a4c2c9b492a1275d20f0bbdf2e139ffd
parent1a5fb5c35b0992ed988c2103dc47bf6c3175161e (diff)
downloaddsub-69ba57fa67a374a3f3e4c3a02da84ec6130fb081.tar.gz
dsub-69ba57fa67a374a3f3e4c3a02da84ec6130fb081.tar.bz2
dsub-69ba57fa67a374a3f3e4c3a02da84ec6130fb081.zip
Don't add bookmarks near the end of a podcast/audio book on pause
-rw-r--r--app/src/main/java/github/daneren2005/dsub/service/DownloadService.java4
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;