|
|
|
@ -236,6 +236,8 @@ fun NewsResourceTopics(
|
|
|
|
|
// Store the ID of the Topic which has its "following" menu expanded, if any.
|
|
|
|
|
// To avoid UI confusion, only one topic can have an expanded menu at a time.
|
|
|
|
|
var expandedTopicId by remember { mutableStateOf<String?>(null) }
|
|
|
|
|
val isFollowed = stringResource(R.string.topic_is_followed)
|
|
|
|
|
val isNotFollowed = stringResource(R.string.topic_is_not_followed)
|
|
|
|
|
|
|
|
|
|
Row(
|
|
|
|
|
modifier = modifier.horizontalScroll(rememberScrollState()), // causes narrow chips
|
|
|
|
@ -255,10 +257,10 @@ fun NewsResourceTopics(
|
|
|
|
|
Text(
|
|
|
|
|
text = followableTopic.topic.name.uppercase(Locale.getDefault()),
|
|
|
|
|
modifier = Modifier.semantics {
|
|
|
|
|
|
|
|
|
|
contentDescription = followableTopic.topic.name +
|
|
|
|
|
if (followableTopic.isFollowed) " is followed"
|
|
|
|
|
else " is not followed"
|
|
|
|
|
// make sure this is the right place to add this - remove hardcoded strings
|
|
|
|
|
if (followableTopic.isFollowed) isFollowed
|
|
|
|
|
else isNotFollowed
|
|
|
|
|
}
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|