mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-06-07 17:14:06 +00:00
Show correct reply count in dialog
This commit is contained in:
parent
37d1c784fa
commit
aea2b7c7f3
@ -116,6 +116,24 @@ private fun CommentRepliesDialog(
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (parentComment.replyCount >= 0) {
|
||||||
|
item {
|
||||||
|
Text(
|
||||||
|
modifier = Modifier.padding(
|
||||||
|
horizontal = 12.dp,
|
||||||
|
vertical = 4.dp
|
||||||
|
),
|
||||||
|
text = pluralStringResource(
|
||||||
|
R.plurals.replies,
|
||||||
|
parentComment.replyCount,
|
||||||
|
parentComment.replyCount,
|
||||||
|
),
|
||||||
|
maxLines = 1,
|
||||||
|
style = MaterialTheme.typography.titleMedium
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (comments.itemCount == 0) {
|
if (comments.itemCount == 0) {
|
||||||
item {
|
item {
|
||||||
val refresh = comments.loadState.refresh
|
val refresh = comments.loadState.refresh
|
||||||
@ -131,21 +149,6 @@ private fun CommentRepliesDialog(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (comments.itemCount >= 0) {
|
|
||||||
item {
|
|
||||||
Text(
|
|
||||||
modifier = Modifier.padding(
|
|
||||||
horizontal = 12.dp,
|
|
||||||
vertical = 4.dp
|
|
||||||
),
|
|
||||||
text = pluralStringResource(
|
|
||||||
R.plurals.replies, comments.itemCount, comments.itemCount
|
|
||||||
),
|
|
||||||
maxLines = 1,
|
|
||||||
style = MaterialTheme.typography.titleMedium
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
items(comments.itemCount) {
|
items(comments.itemCount) {
|
||||||
Comment(
|
Comment(
|
||||||
comment = comments[it]!!,
|
comment = comments[it]!!,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user