We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75475da commit a885a88Copy full SHA for a885a88
1 file changed
app/src/main/java/org/schabi/newpipe/ui/screens/PlaylistScreen.kt
@@ -41,6 +41,10 @@ private fun PlaylistScreen(
41
) {
42
playlistInfo?.let {
43
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.
48
val totalDuration by remember {
49
derivedStateOf {
50
streams.itemSnapshotList.sumOf { it!!.duration }
0 commit comments