We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f5b236 commit d56dbc0Copy full SHA for d56dbc0
aztec/src/main/kotlin/org/wordpress/aztec/EnhancedMovementMethod.kt
@@ -1,7 +1,6 @@
1
package org.wordpress.aztec
2
3
import android.graphics.Rect
4
-import android.text.Selection
5
import android.text.Spannable
6
import android.text.method.ArrowKeyMovementMethod
7
import android.text.style.ClickableSpan
@@ -52,11 +51,7 @@ object EnhancedMovementMethod : ArrowKeyMovementMethod() {
52
51
if (link != null && (link is AztecMediaClickableSpan || link is UnknownClickableSpan)) {
53
if (action == MotionEvent.ACTION_UP) {
54
link.onClick(widget)
55
- } else {
56
- if (link is UnknownClickableSpan)
57
- Selection.setSelection(text, text.getSpanStart(link), text.getSpanEnd(link))
58
}
59
-
60
return true
61
62
0 commit comments