mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-02-10 16:30:54 +01:00
Merge pull request #168 from trubitsyn/instance-check
Use instance check instead of comparison
This commit is contained in:
commit
9721a34eff
@ -154,7 +154,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
|
|||||||
super.onActionModeStarted(mode)
|
super.onActionModeStarted(mode)
|
||||||
if (wasInit) {
|
if (wasInit) {
|
||||||
currentNotesView()?.apply {
|
currentNotesView()?.apply {
|
||||||
if (config.clickableLinks || movementMethod == LinkMovementMethod.getInstance()) {
|
if (config.clickableLinks || movementMethod is LinkMovementMethod) {
|
||||||
movementMethod = ArrowKeyMovementMethod.getInstance()
|
movementMethod = ArrowKeyMovementMethod.getInstance()
|
||||||
noteViewWithTextSelected = this
|
noteViewWithTextSelected = this
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user