summaryrefslogtreecommitdiff
path: root/storage/database
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2024-05-24 10:00:28 +0200
committerGitHub <noreply@github.com>2024-05-24 10:00:28 +0200
commit155d769fca0046f32693d0a8191f44438fc30e0f (patch)
treebf6339dfee3f93eae6ff3f6c34ed8fa057104ad6 /storage/database
parentbaeb0d8ced36f645397d962ba27150fc630763a4 (diff)
downloadAntennaPod-155d769fca0046f32693d0a8191f44438fc30e0f.zip
Fix marking as played when there is no media (#7192)
Diffstat (limited to 'storage/database')
-rw-r--r--storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java b/storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java
index 19660fb77..15debd029 100644
--- a/storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java
+++ b/storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java
@@ -693,7 +693,7 @@ public class PodDBAdapter {
db.update(TABLE_NAME_FEED_ITEMS, values, KEY_ID + "=?", new String[]{String.valueOf(item.getId())});
item.setPlayed(played == FeedItem.PLAYED);
- if (resetMediaPosition) {
+ if (resetMediaPosition && item.hasMedia()) {
values.clear();
values.put(KEY_POSITION, 0);
db.update(TABLE_NAME_FEED_MEDIA, values, KEY_ID + "=?",