Skip to content

Commit

Permalink
Change shelf type to grid
Browse files Browse the repository at this point in the history
  • Loading branch information
LuftVerbot committed Jan 13, 2025
1 parent 9507df4 commit fc27a8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ class DeezerParser(private val session: DeezerSession) {
val itemsArray = jsonObject["items"]?.jsonArray ?: return Shelf.Lists.Categories(name, emptyList())
return Shelf.Lists.Categories(
title = name,
list = itemsArray.take(5).mapNotNull { it.jsonObject.toShelfCategory(block) },
type = Shelf.Lists.Type.Linear,
list = itemsArray.take(6).mapNotNull { it.jsonObject.toShelfCategory(block) },
type = Shelf.Lists.Type.Grid,
more = PagedData.Single {
itemsArray.mapNotNull { it.jsonObject.toShelfCategory(block) }
}
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ android.useAndroidX=true
kotlin.code.style=official
android.nonTransitiveRClass=true

libVersion=b585210955
libVersion=4cc66f06db

extType=music
extId=deezer
Expand Down

0 comments on commit fc27a8f

Please sign in to comment.