searching for strings in a given note, then highlighting and looping through the string occurrences with some arrows.

This commit is contained in:
Pavol Franek
2020-03-24 08:46:59 +01:00
parent 716953ec9d
commit 8b20ccde0b
3 changed files with 36 additions and 7 deletions

View File

@ -45,6 +45,8 @@ class NotesPagerAdapter(fm: FragmentManager, val notes: List<Note>, val activity
}
}
fun textFragment(position: Int): TextFragment? = (fragments[position] as? TextFragment)
fun getCurrentNotesView(position: Int) = (fragments[position] as? TextFragment)?.getNotesView()
fun getCurrentNoteViewText(position: Int) = (fragments[position] as? TextFragment)?.getCurrentNoteViewText()