diff options
author | Petar Kukolj <petarkukolj3@yahoo.com> | 2019-01-03 22:50:30 +0100 |
---|---|---|
committer | Petar Kukolj <petarkukolj3@yahoo.com> | 2019-01-03 22:50:30 +0100 |
commit | ebc02009682d8ad0c724ed3f6d13f97e6668b622 (patch) | |
tree | a3e4a4e40553fd41ecdc40c1780edbd0c237c373 /core | |
parent | c327fd75ee58e10e5d643ca9f6684aaf17bc631a (diff) | |
download | AntennaPod-ebc02009682d8ad0c724ed3f6d13f97e6668b622.zip |
Fix a style issue and fix the test
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java | 3 |
1 files changed, 2 insertions, 1 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 23ed04866..93f51d63c 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 @@ -138,10 +138,11 @@ public class DBWriter { */ public static Future<?> deleteFeedMediaOfItem(final Context context, final long mediaId) { + Future res = doDeleteFeedMediaOfItem(context, mediaId); if (UserPreferences.shouldDeleteRemoveFromQueue()) { DBWriter.removeQueueItem(context, DBReader.getFeedMedia(mediaId).getItem(), false); } - return doDeleteFeedMediaOfItem(context, mediaId); + return res; } /** |