mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-22 03:20:16 +01:00
Merge pull request #634 from Zocker1999NET/fix-621
Use MyMovementMethod on hotfix fixing crash on selection (SDK<=23)
This commit is contained in:
commit
07071b7b02
@ -240,7 +240,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
|
||||||
}
|
}
|
||||||
@ -251,7 +251,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