mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-20 00:55:20 +01:00
Exit Playlist page when playlist is deleted
This commit is contained in:
parent
0c4cabc755
commit
b4dc50306f
5 changed files with 22 additions and 15 deletions
|
@ -64,4 +64,7 @@ interface PlaylistDao {
|
|||
|
||||
@Query("SELECT * FROM SongEntity WHERE playlist_creator_id= :playlistId")
|
||||
fun favoritesSongs(playlistId: Long): List<SongEntity>
|
||||
|
||||
@Query("SELECT EXISTS(SELECT * FROM PlaylistEntity WHERE playlist_id = :playlistId)")
|
||||
fun checkPlaylistExists(playlistId: Long): LiveData<Boolean>
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue