Skip to content

Commit 76c68df

Browse files
authored
Fix issue where 'Read less' would appear on non-collapsible text. (#119)
* Fix issue where 'Read less' would appear on non-collapsible text. * Change screenshots
1 parent fc2c491 commit 76c68df

13 files changed

+1
-1
lines changed
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading

readmore-foundation/src/main/java/com/webtoonscorp/android/readmore/foundation/BasicReadMoreText.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ private fun CoreReadMoreText(
247247
val currentText = buildAnnotatedString {
248248
if (expanded) {
249249
append(text)
250-
if (readLessTextWithStyle.isNotEmpty()) {
250+
if (state.isCollapsible && readLessTextWithStyle.isNotEmpty()) {
251251
append(' ')
252252
if (toggleArea == ToggleArea.More) {
253253
withLink(
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading
0 Bytes
Loading

0 commit comments

Comments
 (0)