Skip to content

Commit a885a88

Browse files
Add duration comment
1 parent 75475da commit a885a88

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

app/src/main/java/org/schabi/newpipe/ui/screens/PlaylistScreen.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ private fun PlaylistScreen(
4141
) {
4242
playlistInfo?.let {
4343
val streams = streamFlow.collectAsLazyPagingItems()
44+
45+
// Paging's load states only indicate when loading is currently happening, not if it can/will
46+
// happen. As such, the duration initially displayed will be the incomplete duration if more
47+
// items can be loaded.
4448
val totalDuration by remember {
4549
derivedStateOf {
4650
streams.itemSnapshotList.sumOf { it!!.duration }

0 commit comments

Comments
 (0)