From c3a67ed8815b5a205406648275dc2910e101f339 Mon Sep 17 00:00:00 2001 From: Alexander Terczka Date: Wed, 6 May 2015 12:47:05 +0200 Subject: [PATCH] Episodes that are not played yet "getPlaybackCompletionDate()==null) should be sorted in as now and not 1.1.1970 When sorted in as "now", these episodes are delete later in auto cleanup mode, than played once. --- .../de/danoeh/antennapod/core/storage/APCleanupAlgorithm.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/APCleanupAlgorithm.java b/core/src/main/java/de/danoeh/antennapod/core/storage/APCleanupAlgorithm.java index de6c02de7..f647fd537 100644 --- a/core/src/main/java/de/danoeh/antennapod/core/storage/APCleanupAlgorithm.java +++ b/core/src/main/java/de/danoeh/antennapod/core/storage/APCleanupAlgorithm.java @@ -41,10 +41,10 @@ public class APCleanupAlgorithm implements EpisodeCleanupAlgorithm { Date r = rhs.getMedia().getPlaybackCompletionDate(); if (l == null) { - l = new Date(0); + l = new Date(); } if (r == null) { - r = new Date(0); + r = new Date(); } return l.compareTo(r); }