Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update androidx-paging-compose version #350

Merged
merged 1 commit into from
Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.paging.compose.LazyPagingItems
import androidx.paging.compose.items
import com.maximillianleonov.cinemax.core.designsystem.component.CinemaxCenteredBox
import com.maximillianleonov.cinemax.core.designsystem.component.CinemaxCircularProgressIndicator
import com.maximillianleonov.cinemax.core.designsystem.component.CinemaxMessage
Expand Down Expand Up @@ -135,7 +134,8 @@ fun MoviesContainer(
) {
when {
movies.isNotEmpty() -> {
items(movies) { movie ->
items(count = movies.itemCount) { index ->
val movie = movies[index]
if (movie == null) {
VerticalMovieItemPlaceholder()
} else {
Expand Down Expand Up @@ -208,7 +208,8 @@ fun TvShowsContainer(
) {
when {
tvShows.isNotEmpty() -> {
items(tvShows) { tvShow ->
items(count = tvShows.itemCount) { index ->
val tvShow = tvShows[index]
if (tvShow == null) {
VerticalTvShowItemPlaceholder()
} else {
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ androidx-navigation = "2.6.0"
androidx-room = "2.5.2"
androidx-datastore = "1.0.0"
androidx-paging = "3.1.1"
androidx-paging-compose = "1.0.0-alpha20"
androidx-paging-compose = "3.2.0-rc01"
androidx-hilt = "1.0.0"
androidx-test-ext = "1.1.5"
androidx-test-espresso = "3.5.1"
Expand Down