diff options
author | ByteHamster <ByteHamster@users.noreply.github.com> | 2022-05-06 22:52:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-06 22:52:02 +0200 |
commit | 01bddcc0a9c214d6432493f4a881370c9328cf11 (patch) | |
tree | 110d085de7c26082fbc5d69307ba67517d734420 /storage | |
parent | dfcc342c57e263754bf145501cd237c7570debd2 (diff) | |
download | AntennaPod-01bddcc0a9c214d6432493f4a881370c9328cf11.zip |
Move download logs to a button on the downloads page instead of a tab (#5866)
Diffstat (limited to 'storage')
-rw-r--r-- | storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java b/storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java index 173354197..3f361eb89 100644 --- a/storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java +++ b/storage/database/src/main/java/de/danoeh/antennapod/storage/database/PodDBAdapter.java @@ -1106,6 +1106,15 @@ public class PodDBAdapter { return db.rawQuery(query, null); } + public final Cursor getFeedItemCursorByMediaIds(final Long[] ids) { + if (ids.length > IN_OPERATOR_MAXIMUM) { + throw new IllegalArgumentException("number of IDs must not be larger than " + IN_OPERATOR_MAXIMUM); + } + final String query = SELECT_FEED_ITEMS_AND_MEDIA + + " WHERE " + SELECT_KEY_MEDIA_ID + " IN (" + TextUtils.join(",", ids) + ")"; + return db.rawQuery(query, null); + } + public final Cursor getFeedItemCursor(final String guid, final String episodeUrl) { String escapedEpisodeUrl = DatabaseUtils.sqlEscapeString(episodeUrl); String whereClauseCondition = TABLE_NAME_FEED_MEDIA + "." + KEY_DOWNLOAD_URL + "=" + escapedEpisodeUrl; |