Do not mark as played if the duration is unknown
This commit is contained in:
parent
62fc413f9c
commit
05ab7dc3fe
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue