mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-13 23:12:02 +02:00
Use instance check instead of comparison
This commit is contained in:
parent
95ec61ddc9
commit
514ffbe1e8
@ -154,7 +154,7 @@ class MainActivity : SimpleActivity(), ViewPager.OnPageChangeListener {
|
||||
super.onActionModeStarted(mode)
|
||||
if (wasInit) {
|
||||
currentNotesView()?.apply {
|
||||
if (config.clickableLinks || movementMethod == LinkMovementMethod.getInstance()) {
|
||||
if (config.clickableLinks || movementMethod is LinkMovementMethod) {
|
||||
movementMethod = ArrowKeyMovementMethod.getInstance()
|
||||
noteViewWithTextSelected = this
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user