Skip to content

Commit d5f4fc9

Browse files
Shorten variable name
1 parent 934c4de commit d5f4fc9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/src/main/java/org/schabi/newpipe/ui/components/video/comment/CommentSection.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ import org.schabi.newpipe.viewmodels.VideoDetailViewModel
3838
import org.schabi.newpipe.viewmodels.util.Resource
3939

4040
@Composable
41-
fun CommentSection(videoDetailViewModel: VideoDetailViewModel) {
42-
val streamState by videoDetailViewModel.streamState.collectAsStateWithLifecycle()
43-
val commentState by videoDetailViewModel.commentState.collectAsStateWithLifecycle()
41+
fun CommentSection(viewModel: VideoDetailViewModel) {
42+
val streamState by viewModel.streamState.collectAsStateWithLifecycle()
43+
val commentState by viewModel.commentState.collectAsStateWithLifecycle()
4444
val avatars = (streamState as? Resource.Success)?.data?.uploaderAvatars.orEmpty()
4545
val uploaderAvatarUrl = ImageStrategy.choosePreferredImage(avatars)
4646

4747
CommentSection(
4848
commentState,
4949
uploaderAvatarUrl,
50-
videoDetailViewModel.comments,
50+
viewModel.comments,
5151
)
5252
}
5353

0 commit comments

Comments
 (0)