summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorByteHamster <ByteHamster@users.noreply.github.com>2021-12-11 08:09:36 +0100
committerGitHub <noreply@github.com>2021-12-11 08:09:36 +0100
commit1cb1b6035f2e15fec3b5c1af59af035e77dd1212 (patch)
tree6c88f6f48df14da04495530cc08b82b6be3db34d /core
parenteea0e9930d990fc44f06d2dcdefe253120f4edc3 (diff)
parent6703946a7b6a94fff6efc389861f1837954a7c66 (diff)
downloadantennapod-1cb1b6035f2e15fec3b5c1af59af035e77dd1212.zip
Merge pull request #5593 from ByteHamster/sync-local
Don't try to sync local folders
Diffstat (limited to 'core')
-rw-r--r--core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java b/core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java
index 0e996c6c8..fdaab745e 100644
--- a/core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java
+++ b/core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java
@@ -149,7 +149,6 @@ public class DBWriter {
*/
public static Future<?> deleteFeed(final Context context, final long feedId) {
return dbExec.submit(() -> {
- DownloadRequester requester = DownloadRequester.getInstance();
final Feed feed = DBReader.getFeed(feedId);
if (feed == null) {
return;
@@ -167,7 +166,9 @@ public class DBWriter {
adapter.removeFeed(feed);
adapter.close();
- SynchronizationQueueSink.enqueueFeedRemovedIfSynchronizationIsActive(context, feed.getDownload_url());
+ if (!feed.isLocalFeed()) {
+ SynchronizationQueueSink.enqueueFeedRemovedIfSynchronizationIsActive(context, feed.getDownload_url());
+ }
EventBus.getDefault().post(new FeedListUpdateEvent(feed));
});
}
@@ -779,7 +780,9 @@ public class DBWriter {
adapter.close();
for (Feed feed : feeds) {
- SynchronizationQueueSink.enqueueFeedAddedIfSynchronizationIsActive(context, feed.getDownload_url());
+ if (!feed.isLocalFeed()) {
+ SynchronizationQueueSink.enqueueFeedAddedIfSynchronizationIsActive(context, feed.getDownload_url());
+ }
}
BackupManager backupManager = new BackupManager(context);