Do not try to sync local feeds (#6722)
This commit is contained in:
parent
69be89881a
commit
fa75317bce
|
@ -154,7 +154,7 @@ public class FeedItemMenuHandler {
|
||||||
} else if (menuItemId == R.id.mark_read_item) {
|
} else if (menuItemId == R.id.mark_read_item) {
|
||||||
selectedItem.setPlayed(true);
|
selectedItem.setPlayed(true);
|
||||||
DBWriter.markItemPlayed(selectedItem, FeedItem.PLAYED, true);
|
DBWriter.markItemPlayed(selectedItem, FeedItem.PLAYED, true);
|
||||||
if (SynchronizationSettings.isProviderConnected()) {
|
if (!selectedItem.getFeed().isLocalFeed() && SynchronizationSettings.isProviderConnected()) {
|
||||||
FeedMedia media = selectedItem.getMedia();
|
FeedMedia media = selectedItem.getMedia();
|
||||||
// not all items have media, Gpodder only cares about those that do
|
// not all items have media, Gpodder only cares about those that do
|
||||||
if (media != null) {
|
if (media != null) {
|
||||||
|
@ -170,7 +170,7 @@ public class FeedItemMenuHandler {
|
||||||
} else if (menuItemId == R.id.mark_unread_item) {
|
} else if (menuItemId == R.id.mark_unread_item) {
|
||||||
selectedItem.setPlayed(false);
|
selectedItem.setPlayed(false);
|
||||||
DBWriter.markItemPlayed(selectedItem, FeedItem.UNPLAYED, false);
|
DBWriter.markItemPlayed(selectedItem, FeedItem.UNPLAYED, false);
|
||||||
if (selectedItem.getMedia() != null) {
|
if (!selectedItem.getFeed().isLocalFeed() && selectedItem.getMedia() != null) {
|
||||||
EpisodeAction actionNew = new EpisodeAction.Builder(selectedItem, EpisodeAction.NEW)
|
EpisodeAction actionNew = new EpisodeAction.Builder(selectedItem, EpisodeAction.NEW)
|
||||||
.currentTimestamp()
|
.currentTimestamp()
|
||||||
.build();
|
.build();
|
||||||
|
|
|
@ -64,7 +64,7 @@ public class SynchronizationQueueSink {
|
||||||
if (!SynchronizationSettings.isProviderConnected()) {
|
if (!SynchronizationSettings.isProviderConnected()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (media.getItem() == null) {
|
if (media.getItem() == null || media.getItem().getFeed().isLocalFeed()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (media.getStartPosition() < 0 || (!completed && media.getStartPosition() >= media.getPosition())) {
|
if (media.getStartPosition() < 0 || (!completed && media.getStartPosition() >= media.getPosition())) {
|
||||||
|
|
Loading…
Reference in New Issue