Skip to content

Commit 716f96a

Browse files
committed
Use MyMovementMethod on hotfix fixing crash on selection (SDK<=23)
- fixes #621 - hotfix causing the issue implemented in 1741070
1 parent 148c9e5 commit 716f96a

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
@@ -243,7 +243,7 @@ class MainActivity : SimpleActivity() {
243243
super.onActionModeStarted(mode)
244244
if (wasInit) {
245245
currentNotesView()?.apply {
246-
if (config.clickableLinks || movementMethod is LinkMovementMethod) {
246+
if (config.clickableLinks || movementMethod is LinkMovementMethod || movementMethod is MyMovementMethod) {
247247
movementMethod = ArrowKeyMovementMethod.getInstance()
248248
noteViewWithTextSelected = this
249249
}
@@ -254,7 +254,7 @@ class MainActivity : SimpleActivity() {
254254
override fun onActionModeFinished(mode: ActionMode?) {
255255
super.onActionModeFinished(mode)
256256
if (config.clickableLinks) {
257-
noteViewWithTextSelected?.movementMethod = LinkMovementMethod.getInstance()
257+
noteViewWithTextSelected?.movementMethod = MyMovementMethod.getInstance()
258258
}
259259
}
260260

0 commit comments

Comments
 (0)