Ignore 'new' action during sync (#6415)
We never want to overwrite the local playback state.
This commit is contained in:
parent
596bdaed3f
commit
7ed78887c4
|
@ -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:
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue