Ignore 'new' action during sync (#6415)

We never want to overwrite the local playback state.
This commit is contained in:
ByteHamster 2023-04-06 20:01:39 +02:00 committed by GitHub
parent 596bdaed3f
commit 7ed78887c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View File

@ -25,8 +25,6 @@ public class EpisodeActionFilter {
Pair<String, String> key = new Pair<>(remoteAction.getPodcast(), remoteAction.getEpisode());
switch (remoteAction.getAction()) {
case NEW:
remoteActionsThatOverrideLocalActions.put(key, remoteAction);
break;
case DOWNLOAD:
break;
case PLAY:

View File

@ -274,10 +274,6 @@ public class SyncService extends Worker {
Log.i(TAG, "Feed item has no media: " + action);
continue;
}
if (action.getAction() == EpisodeAction.NEW) {
DBWriter.markItemPlayed(feedItem, FeedItem.UNPLAYED, true);
continue;
}
feedItem.getMedia().setPosition(action.getPosition() * 1000);
if (FeedItemUtil.hasAlmostEnded(feedItem.getMedia())) {
Log.d(TAG, "Marking as played: " + action);