Skip to content

Commit 07071b7

Browse files
authored
Merge pull request #634 from Zocker1999NET/fix-621
Use MyMovementMethod on hotfix fixing crash on selection (SDK<=23)
2 parents 6c7d3aa + 716f96a commit 07071b7

File tree

1 file changed

+2
-2
lines changed
  • app/src/main/kotlin/com/simplemobiletools/notes/pro/activities

1 file changed

+2
-2
lines changed

app/src/main/kotlin/com/simplemobiletools/notes/pro/activities/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ class MainActivity : SimpleActivity() {
240240
super.onActionModeStarted(mode)
241241
if (wasInit) {
242242
currentNotesView()?.apply {
243-
if (config.clickableLinks || movementMethod is LinkMovementMethod) {
243+
if (config.clickableLinks || movementMethod is LinkMovementMethod || movementMethod is MyMovementMethod) {
244244
movementMethod = ArrowKeyMovementMethod.getInstance()
245245
noteViewWithTextSelected = this
246246
}
@@ -251,7 +251,7 @@ class MainActivity : SimpleActivity() {
251251
override fun onActionModeFinished(mode: ActionMode?) {
252252
super.onActionModeFinished(mode)
253253
if (config.clickableLinks) {
254-
noteViewWithTextSelected?.movementMethod = LinkMovementMethod.getInstance()
254+
noteViewWithTextSelected?.movementMethod = MyMovementMethod.getInstance()
255255
}
256256
}
257257

0 commit comments

Comments
 (0)