mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-02 18:00:12 +02:00
Use MyMovementMethod on hotfix fixing crash on selection (SDK<=23)
- fixes #621 - hotfix causing the issue implemented in 1741070686d83745762bf285455aac985f10fca1
This commit is contained in:
parent
148c9e58b8
commit
716f96a4b4
@ -243,7 +243,7 @@ class MainActivity : SimpleActivity() {
|
|||||||
super.onActionModeStarted(mode)
|
super.onActionModeStarted(mode)
|
||||||
if (wasInit) {
|
if (wasInit) {
|
||||||
currentNotesView()?.apply {
|
currentNotesView()?.apply {
|
||||||
if (config.clickableLinks || movementMethod is LinkMovementMethod) {
|
if (config.clickableLinks || movementMethod is LinkMovementMethod || movementMethod is MyMovementMethod) {
|
||||||
movementMethod = ArrowKeyMovementMethod.getInstance()
|
movementMethod = ArrowKeyMovementMethod.getInstance()
|
||||||
noteViewWithTextSelected = this
|
noteViewWithTextSelected = this
|
||||||
}
|
}
|
||||||
@ -254,7 +254,7 @@ class MainActivity : SimpleActivity() {
|
|||||||
override fun onActionModeFinished(mode: ActionMode?) {
|
override fun onActionModeFinished(mode: ActionMode?) {
|
||||||
super.onActionModeFinished(mode)
|
super.onActionModeFinished(mode)
|
||||||
if (config.clickableLinks) {
|
if (config.clickableLinks) {
|
||||||
noteViewWithTextSelected?.movementMethod = LinkMovementMethod.getInstance()
|
noteViewWithTextSelected?.movementMethod = MyMovementMethod.getInstance()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user