wordpress-mobile / AztecEditor-Android

A reusable native Android rich text editor component.
Mozilla Public License 2.0
700 stars 115 forks source link

Day One: Crash in editor when Talkback is enabled #1075

Closed nbradbury closed 9 months ago

nbradbury commented 9 months ago

Related to this Day One issue:

java.lang.StringIndexOutOfBoundsException
at android.text.SpannableStringBuilder.<init>(SpannableStringBuilder.java:63)
at androidx.emoji2.text.SpannableBuilder.<init>(SpannableBuilder.java:82)
at androidx.emoji2.text.SpannableBuilder.subSequence(SpannableBuilder.java:120)
at org.wordpress.aztec.formatting.IndentFormatter.isOutdentAvailable(IndentFormatter.kt:170)
at org.wordpress.aztec.formatting.BlockFormatter.isOutdentAvailable(BlockFormatter.kt:90)
at org.wordpress.aztec.AztecText.isOutdentAvailable(AztecText.kt:1132)
at org.wordpress.aztec.toolbar.AztecToolbar.setIndentState(AztecToolbar.kt:561)
at org.wordpress.aztec.toolbar.AztecToolbar.highlightAppliedStyles(AztecToolbar.kt:553)
at org.wordpress.aztec.toolbar.AztecToolbar.access$highlightAppliedStyles(AztecToolbar.kt:46)
at org.wordpress.aztec.toolbar.AztecToolbar$setEditor$1.onSelectionChanged(AztecToolbar.kt:414)
at org.wordpress.aztec.AztecText.onSelectionChanged(AztecText.kt:1244)