Don't try to sync local folders
This commit is contained in:
parent
434cd2b79f
commit
6703946a7b
|
@ -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();
|
||||
|
||||
if (!feed.isLocalFeed()) {
|
||||
SynchronizationQueueSink.enqueueFeedRemovedIfSynchronizationIsActive(context, feed.getDownload_url());
|
||||
}
|
||||
EventBus.getDefault().post(new FeedListUpdateEvent(feed));
|
||||
});
|
||||
}
|
||||
|
@ -779,8 +780,10 @@ public class DBWriter {
|
|||
adapter.close();
|
||||
|
||||
for (Feed feed : feeds) {
|
||||
if (!feed.isLocalFeed()) {
|
||||
SynchronizationQueueSink.enqueueFeedAddedIfSynchronizationIsActive(context, feed.getDownload_url());
|
||||
}
|
||||
}
|
||||
|
||||
BackupManager backupManager = new BackupManager(context);
|
||||
backupManager.dataChanged();
|
||||
|
|
Loading…
Reference in New Issue