Skip to content

Commit

Permalink
Merge pull request #225 from MohamedRejeb/1.x
Browse files Browse the repository at this point in the history
Fix isRichSpan method bug
  • Loading branch information
MohamedRejeb authored Mar 30, 2024
2 parents 3a825eb + 7d2dc43 commit 59e9b43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.kotlin
build
captures
.externalNativeBuild
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ fun rememberRichTextState(): RichTextState {
}
}

@OptIn(ExperimentalRichTextApi::class)
class RichTextState internal constructor(
initialRichParagraphList: List<RichParagraph>,
) {
Expand Down Expand Up @@ -101,7 +102,7 @@ class RichTextState internal constructor(
fun isRichSpan(spanStyle: RichSpanStyle): Boolean {
return (currentRichSpanStyle::class == spanStyle::class ||
toAddRichSpanStyle::class == spanStyle::class) &&
toRemoveRichSpanStyle::class == spanStyle::class
toRemoveRichSpanStyle::class != spanStyle::class
}

/**
Expand Down

0 comments on commit 59e9b43

Please # to comment.