A Kotlin-based Android application that allows the user to play music from their device while custom animations fall over the album artwork of the currently playing song.
In MusicDao.kt we have the following queries that should probably use = rather than LIKE. May also need to investigate PlaylistDao.kt
@Query("SELECT * from music_library WHERE song_album_id LIKE :albumID LIMIT 1")
suspend fun getSongWithAlbumId(albumID: String): List
@Query("SELECT * FROM music_library WHERE song_album_id LIKE :albumID ORDER BY song_track ASC")
fun findAlbumSongs(albumID: String): LiveData<List>
@Query("SELECT * FROM music_library WHERE song_artist LIKE :artistName ORDER BY song_title ASC")
fun findArtistsSongs(artistName: String): LiveData<List>
In MusicDao.kt we have the following queries that should probably use = rather than LIKE. May also need to investigate PlaylistDao.kt
@Query("SELECT * from music_library WHERE song_album_id LIKE :albumID LIMIT 1") suspend fun getSongWithAlbumId(albumID: String): List
@Query("SELECT * FROM music_library WHERE song_album_id LIKE :albumID ORDER BY song_track ASC") fun findAlbumSongs(albumID: String): LiveData<List>
@Query("SELECT * FROM music_library WHERE song_artist LIKE :artistName ORDER BY song_title ASC") fun findArtistsSongs(artistName: String): LiveData<List>