Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Commit

Permalink
Fixed an issue preventing playlists from appearing
Browse files Browse the repository at this point in the history
  • Loading branch information
timusus committed Oct 30, 2019
1 parent 496feec commit 41506e0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ public static Playlist podcastPlaylist() {
// Check if there are any podcasts
Query query = new Query.Builder()
.uri(MediaStore.Audio.Media.EXTERNAL_CONTENT_URI)
.projection(new String[] { "count(*)", "is_podcast=1" })
.projection(new String[] { "count(*)", MediaStore.Audio.Media.IS_PODCAST})
.selection(MediaStore.Audio.Media.IS_PODCAST + "=1")
.build();

return SqlUtils.createSingleQuery(ShuttleApplication.getInstance(), cursor -> new Playlist(
Expand Down

0 comments on commit 41506e0

Please sign in to comment.