1
- package org.schabi.newpipe.compose.playlist
1
+ package org.schabi.newpipe.ui.screens
2
2
3
3
import android.content.res.Configuration
4
4
import androidx.compose.foundation.lazy.grid.GridItemSpan
@@ -15,25 +15,27 @@ import androidx.paging.PagingData
15
15
import androidx.paging.compose.collectAsLazyPagingItems
16
16
import kotlinx.coroutines.flow.Flow
17
17
import kotlinx.coroutines.flow.flowOf
18
- import org.schabi.newpipe.compose.common.LoadingIndicator
19
- import org.schabi.newpipe.compose.stream.StreamInfoItem
20
- import org.schabi.newpipe.compose.stream.StreamList
21
- import org.schabi.newpipe.compose.theme.AppTheme
22
18
import org.schabi.newpipe.extractor.stream.Description
23
19
import org.schabi.newpipe.extractor.stream.StreamInfoItem
24
20
import org.schabi.newpipe.extractor.stream.StreamType
21
+ import org.schabi.newpipe.ui.components.common.LoadingIndicator
22
+ import org.schabi.newpipe.ui.components.playlist.PlaylistHeader
23
+ import org.schabi.newpipe.ui.components.playlist.PlaylistInfo
24
+ import org.schabi.newpipe.ui.components.stream.StreamInfoItem
25
+ import org.schabi.newpipe.ui.components.stream.StreamList
26
+ import org.schabi.newpipe.ui.theme.AppTheme
25
27
import org.schabi.newpipe.viewmodels.PlaylistViewModel
26
28
27
29
@Composable
28
- fun Playlist (playlistViewModel : PlaylistViewModel = viewModel()) {
30
+ fun PlaylistScreen (playlistViewModel : PlaylistViewModel = viewModel()) {
29
31
Surface (color = MaterialTheme .colorScheme.background) {
30
32
val playlistInfo by playlistViewModel.playlistInfo.collectAsState()
31
- Playlist (playlistInfo, playlistViewModel.streamItems)
33
+ PlaylistScreen (playlistInfo, playlistViewModel.streamItems)
32
34
}
33
35
}
34
36
35
37
@Composable
36
- private fun Playlist (
38
+ private fun PlaylistScreen (
37
39
playlistInfo : PlaylistInfo ? ,
38
40
streamFlow : Flow <PagingData <StreamInfoItem >>
39
41
) {
@@ -75,7 +77,7 @@ private fun PlaylistPreview() {
75
77
76
78
AppTheme {
77
79
Surface (color = MaterialTheme .colorScheme.background) {
78
- Playlist (playlistInfo, streamFlow)
80
+ PlaylistScreen (playlistInfo, streamFlow)
79
81
}
80
82
}
81
83
}
0 commit comments