Skip to content

Commit ffaf491

Browse files
authored
Merge pull request #652 from wordpress-mobile/issue/651-IOOB-Paste
Fix IOOB in AztecText.onTextContextMenuItem -> paste
2 parents f2fbc3d + e105cc2 commit ffaf491

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1238,7 +1238,8 @@ open class AztecText : AppCompatEditText, TextWatcher, UnknownHtmlSpan.OnUnknown
12381238
}
12391239

12401240
when (id) {
1241-
android.R.id.paste -> paste(text, min, max)
1241+
android.R.id.paste,
1242+
android.R.id.pasteAsPlainText -> paste(text, min, max)
12421243
android.R.id.copy -> {
12431244
copy(text, min, max)
12441245
clearFocus() // hide text action menu

0 commit comments

Comments
 (0)