Don't remove feed item from screen after "toggle played", if filter setting includes "not played" (#6079)
This commit is contained in:
parent
2eddd27c45
commit
93bcac0a4a
|
@ -39,6 +39,10 @@ public class TogglePlaybackStateSwipeAction implements SwipeAction {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean willRemove(FeedItemFilter filter, FeedItem item) {
|
public boolean willRemove(FeedItemFilter filter, FeedItem item) {
|
||||||
|
if (item.getPlayState() == FeedItem.NEW) {
|
||||||
|
return filter.showPlayed || filter.showNew;
|
||||||
|
} else {
|
||||||
return filter.showUnplayed || filter.showPlayed || filter.showNew;
|
return filter.showUnplayed || filter.showPlayed || filter.showNew;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue