mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-15 07:52:02 +02:00
make a fragment nullable at saving text
This commit is contained in:
parent
74b818b6a5
commit
d6b4fbd9e8
@ -32,7 +32,7 @@ class NotesPagerAdapter(fm: FragmentManager, private val notes: List<Note>) : Fr
|
|||||||
|
|
||||||
fun getCurrentNoteViewText(position: Int) = fragments[position].getCurrentNoteViewText()
|
fun getCurrentNoteViewText(position: Int) = fragments[position].getCurrentNoteViewText()
|
||||||
|
|
||||||
fun saveCurrentNote(position: Int) = fragments[position].saveText()
|
fun saveCurrentNote(position: Int) = fragments[position]?.saveText()
|
||||||
|
|
||||||
fun showKeyboard(position: Int) = fragments[position]?.showKeyboard()
|
fun showKeyboard(position: Int) = fragments[position]?.showKeyboard()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user