mirror of
https://github.com/cmclark00/RetroMusicPlayer.git
synced 2025-05-18 16:15:20 +01:00
Added show empty in home
This commit is contained in:
parent
647e5b2d3f
commit
d2804bdcd4
11 changed files with 77 additions and 55 deletions
|
@ -87,11 +87,9 @@ object TopAndRecentlyPlayedTracksLoader {
|
|||
val songs = SongPlayCountStore.getInstance(context)
|
||||
.getTopPlayedResults(NUMBER_OF_TOP_TRACKS)
|
||||
|
||||
try {
|
||||
return makeSortedCursor(context, songs,
|
||||
songs!!.getColumnIndex(SongPlayCountStore.SongPlayCountColumns.ID))
|
||||
} finally {
|
||||
songs?.close()
|
||||
songs.use { localSongs ->
|
||||
return makeSortedCursor(context, localSongs,
|
||||
localSongs.getColumnIndex(SongPlayCountStore.SongPlayCountColumns.ID))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue