Skip to content

Commit

Permalink
Fix paged item rows not always resetting
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Jun 4, 2024
1 parent 732b8b7 commit 99146e5
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,7 @@ fun ItemRowAdapter.retrieveLiveTvChannels(
)
)

if (startIndex == 0) clear()
totalItems = response.totalRecordCount
setItems(
items = response.items.orEmpty().toTypedArray(),
Expand Down Expand Up @@ -469,6 +470,7 @@ fun ItemRowAdapter.retrieveAlbumArtists(
)
)

if (startIndex == 0) clear()
totalItems = response.totalRecordCount
setItems(
items = response.items.orEmpty().toTypedArray(),
Expand Down Expand Up @@ -504,6 +506,7 @@ fun ItemRowAdapter.retrieveArtists(
)
)

if (startIndex == 0) clear()
totalItems = response.totalRecordCount
setItems(
items = response.items.orEmpty().toTypedArray(),
Expand Down Expand Up @@ -560,14 +563,14 @@ fun setAlbumArtistsStartLetter(
request: GetAlbumArtistsRequest,
startLetter: String?,
) = request.copy(
nameStartsWithOrGreater = startLetter,
nameStartsWith = startLetter,
)

fun setArtistsStartLetter(
request: GetArtistsRequest,
startLetter: String?,
) = request.copy(
nameStartsWithOrGreater = startLetter,
nameStartsWith = startLetter,
)

@JvmOverloads
Expand Down

0 comments on commit 99146e5

Please sign in to comment.