Skip to content

Commit d00f113

Browse files
authored
fix: toggling lists - android (#216)
1 parent 6adcdaf commit d00f113

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

android/src/main/java/com/swmansion/enriched/styles/ListStyles.kt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,11 @@ class ListStyles(private val view: EnrichedTextInputView) {
5858
val spans = ssb.getSpans(start, end, clazz)
5959
if (spans.isEmpty()) return false
6060

61-
ssb.replace(start, end, ssb.substring(start, end).replace("\u200B", ""))
62-
6361
for (span in spans) {
6462
ssb.removeSpan(span)
6563
}
6664

65+
ssb.replace(start, end, ssb.substring(start, end).replace("\u200B", ""))
6766
return true
6867
}
6968

0 commit comments

Comments
 (0)