Fix bottom navigation hiding
This commit is contained in:
parent
3a68c7de12
commit
ff20b3a052
10 changed files with 114 additions and 138 deletions
|
@ -143,9 +143,10 @@ class RepositoryImpl(
|
|||
|
||||
override suspend fun suggestionsHome(): Home {
|
||||
val songs =
|
||||
NotRecentlyPlayedPlaylist(context).getSongs(context).shuffled().takeUnless {
|
||||
NotRecentlyPlayedPlaylist(context).getSongs(context).shuffled().takeIf {
|
||||
it.size > 9
|
||||
}?.take(9) ?: emptyList<Song>()
|
||||
} ?: emptyList()
|
||||
println(songs.size)
|
||||
return Home(songs, SUGGESTIONS)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue