Use instance check instead of comparison

This commit is contained in:
Nikola Trubitsyn 2018-01-30 13:57:13 +03:00
parent 95ec61ddc9
commit 514ffbe1e8
1 changed files with 1 additions and 1 deletions

View File

@ -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
}