diff options
author | orionlee <orionlee@yahoo.com> | 2019-04-02 14:11:22 -0700 |
---|---|---|
committer | orionlee <orionlee@yahoo.com> | 2019-04-02 14:11:22 -0700 |
commit | 7d78b88a1cf51fc14912fcf36ae2e1efff368f75 (patch) | |
tree | a86d3d57c7267a5c7a2cd9d04c38f98f0348b839 /core/src/main/java | |
parent | acbb1cf5e296f32b528856a88d36d7ff736daf75 (diff) | |
download | AntennaPod-7d78b88a1cf51fc14912fcf36ae2e1efff368f75.zip |
bulk remove from queue - frontend logic, with a stub backend.
Diffstat (limited to 'core/src/main/java')
-rw-r--r-- | core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java | 9 |
1 files changed, 8 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 ab55bd3c0..451bb8685 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,8 +6,8 @@ import android.content.Intent; import android.content.SharedPreferences; import android.preference.PreferenceManager; import android.util.Log; +import android.widget.Toast; -import io.reactivex.annotations.NonNull; import org.shredzone.flattr4j.model.Flattr; import java.io.File; @@ -49,6 +49,7 @@ import de.danoeh.antennapod.core.util.flattr.FlattrStatus; import de.danoeh.antennapod.core.util.flattr.FlattrThing; import de.danoeh.antennapod.core.util.flattr.SimpleFlattrThing; import de.greenrobot.event.EventBus; +import io.reactivex.annotations.NonNull; /** * Provides methods for writing data to AntennaPod's database. @@ -459,6 +460,12 @@ 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(); |