Skip to content

Commit d56dbc0

Browse files
committed
Completely removed selection from single click.
1 parent 4f5b236 commit d56dbc0

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package org.wordpress.aztec
22

33
import android.graphics.Rect
4-
import android.text.Selection
54
import android.text.Spannable
65
import android.text.method.ArrowKeyMovementMethod
76
import android.text.style.ClickableSpan
@@ -52,11 +51,7 @@ object EnhancedMovementMethod : ArrowKeyMovementMethod() {
5251
if (link != null && (link is AztecMediaClickableSpan || link is UnknownClickableSpan)) {
5352
if (action == MotionEvent.ACTION_UP) {
5453
link.onClick(widget)
55-
} else {
56-
if (link is UnknownClickableSpan)
57-
Selection.setSelection(text, text.getSpanStart(link), text.getSpanEnd(link))
5854
}
59-
6055
return true
6156
}
6257
}

0 commit comments

Comments
 (0)