diff options
author | ByteHamster <info@bytehamster.com> | 2020-05-16 19:01:25 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-05-16 22:29:31 +0200 |
commit | 05ab7dc3fe1bb0edbcaf4580eb1247e27436a7e0 (patch) | |
tree | 7c235046b9aa2865ef09e05e108e3dfe9e77b0f1 /core/src/main/java | |
parent | 62fc413f9c626f4e749d2aa9c4e2e0b7225b16cb (diff) | |
download | AntennaPod-05ab7dc3fe1bb0edbcaf4580eb1247e27436a7e0.zip |
Do not mark as played if the duration is unknown
Diffstat (limited to 'core/src/main/java')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java b/core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java index a41b04b53..7e1a5fd9b 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java +++ b/core/src/main/java/de/danoeh/antennapod/core/feed/FeedMedia.java @@ -224,7 +224,7 @@ public class FeedMedia extends FeedFile implements Playable { public boolean hasAlmostEnded() { int smartMarkAsPlayedSecs = UserPreferences.getSmartMarkAsPlayedSecs(); - return this.position >= this.duration - smartMarkAsPlayedSecs * 1000; + return this.duration > 0 && this.position >= this.duration - smartMarkAsPlayedSecs * 1000; } @Override |