File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
aztec/src/main/kotlin/org/wordpress/aztec Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import android.view.inputmethod.ExtractedText
1515import android.view.inputmethod.ExtractedTextRequest
1616import android.view.inputmethod.InputConnection
1717import android.view.inputmethod.InputContentInfo
18+ import org.wordpress.aztec.Constants.ZWJ_CHAR
1819import org.wordpress.aztec.spans.IAztecSpan
1920
2021/* *
@@ -77,7 +78,8 @@ class SamsungInputConnection(
7778 }
7879
7980 override fun commitText (text : CharSequence? , newCursorPosition : Int ): Boolean {
80- val isSameStringValue = text.toString() == editable.toString()
81+ val isSameStringValue = text.toString().replace(ZWJ_CHAR .toString(), " " , true ) ==
82+ editable.toString().replace(ZWJ_CHAR .toString(), " " , true )
8183 val incomingTextHasSuggestions = text is Spanned &&
8284 text.getSpans(0 , text.length, SuggestionSpan ::class .java).isNotEmpty()
8385
You can’t perform that action at this time.
0 commit comments