mirror of
https://github.com/FossifyOrg/Notes.git
synced 2026-09-18 01:40:34 -04:00
Use instance check instead of comparison
This commit is contained in:
1 parent
95ec61ddc9
commit
514ffbe1e8
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user