mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
fix some glitches related to exporting current notes
This commit is contained in:
@ -36,6 +36,13 @@ class NotesPagerAdapter(fm: FragmentManager, val notes: List<Note>, val activity
|
||||
|
||||
override fun getPageTitle(position: Int) = notes[position].title
|
||||
|
||||
fun updateCurrentNoteData(position: Int, path: String, value: String) {
|
||||
(fragments[position] as? TextFragment)?.apply {
|
||||
updateNotePath(path)
|
||||
updateNoteValue(value)
|
||||
}
|
||||
}
|
||||
|
||||
fun getCurrentNotesView(position: Int) = (fragments[position] as? TextFragment)?.getNotesView()
|
||||
|
||||
fun getCurrentNoteViewText(position: Int) = (fragments[position] as? TextFragment)?.getCurrentNoteViewText()
|
||||
|
Reference in New Issue
Block a user