diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2021-08-28 10:54:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-28 10:54:30 +0200 |
commit | ddae5e2278fe6b6e950576cdc460ec7ffe761d5d (patch) | |
tree | d16111276a0c5f8a3bda1713b762c6f0682c331c /app | |
parent | e75d8db2981ffe9abbb9b0e9395862e83dda34df (diff) | |
parent | 74f85ceb9b2cfc85e677ca5f6d4b8244763da5d5 (diff) | |
download | AntennaPod-ddae5e2278fe6b6e950576cdc460ec7ffe761d5d.zip |
Merge pull request #5361 from ByteHamster/mark-non-new
Only change item state if it is actually in the inbox
Diffstat (limited to 'app')
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/swipeactions/RemoveFromInboxSwipeAction.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/swipeactions/RemoveFromInboxSwipeAction.java b/app/src/main/java/de/danoeh/antennapod/fragment/swipeactions/RemoveFromInboxSwipeAction.java index 9852269fb..614cd0227 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/swipeactions/RemoveFromInboxSwipeAction.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/swipeactions/RemoveFromInboxSwipeAction.java @@ -33,8 +33,9 @@ public class RemoveFromInboxSwipeAction implements SwipeAction { @Override public void performAction(FeedItem item, Fragment fragment, FeedItemFilter filter) { - FeedItemMenuHandler.markReadWithUndo(fragment, - item, FeedItem.UNPLAYED, willRemove(filter)); + if (item.isNew()) { + FeedItemMenuHandler.markReadWithUndo(fragment, item, FeedItem.UNPLAYED, willRemove(filter)); + } } @Override |