diff options
author | orionlee <orionlee@yahoo.com> | 2019-04-02 15:59:27 -0700 |
---|---|---|
committer | orionlee <orionlee@yahoo.com> | 2019-04-02 15:59:27 -0700 |
commit | 364c9a308d1c18f4bb2d11f38a32781957fb5e9f (patch) | |
tree | 9a6ab20f09b3952e39478fe7bb09f79f0852d621 /core/src/main/java | |
parent | 70287a740ee0cfba23233e6cfb3757e2faaf65ad (diff) | |
download | AntennaPod-364c9a308d1c18f4bb2d11f38a32781957fb5e9f.zip |
bulk remove from queue - backend - implement the new API
Diffstat (limited to 'core/src/main/java')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java | 12 |
1 files changed, 5 insertions, 7 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 b2f28008a..909b46414 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 @@ -6,7 +6,6 @@ import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.util.Log; -import android.widget.Toast; import org.shredzone.flattr4j.model.Flattr; @@ -434,6 +433,11 @@ public class DBWriter { return dbExec.submit(() -> removeQueueItemSynchronous(context, performAutoDownload, item.getId())); } + public static Future<?> removeQueueItem(final Context context, final boolean performAutoDownload, + final long... itemIds) { + return dbExec.submit(() -> removeQueueItemSynchronous(context, performAutoDownload, itemIds)); + } + private static void removeQueueItemSynchronous(final Context context, final boolean performAutoDownload, final long... itemIds) { @@ -484,12 +488,6 @@ public class DBWriter { } } - public static Future<?> removeQueueItem(final Context context, final boolean performAutoDownload, - final long... itemIds) { - Toast.makeText(context, "To implement: remove from queue. ids=" + itemIds, Toast.LENGTH_SHORT).show(); - return dbExec.submit(() -> { }); - } - public static Future<?> addFavoriteItem(final FeedItem item) { return dbExec.submit(() -> { final PodDBAdapter adapter = PodDBAdapter.getInstance().open(); |