mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-03-13 07:00:10 +01:00
adding a null check
This commit is contained in:
parent
6aa6bd073b
commit
80378cd18e
@ -87,7 +87,7 @@ class NoteFragment : Fragment() {
|
||||
}
|
||||
}
|
||||
|
||||
fun getCurrentNoteViewText() = view.notes_view.text.toString()
|
||||
fun getCurrentNoteViewText() = view.notes_view?.text.toString()
|
||||
|
||||
private fun getTextGravity() = when (context.config.gravity) {
|
||||
GRAVITY_CENTER -> Gravity.CENTER_HORIZONTAL
|
||||
|
Loading…
x
Reference in New Issue
Block a user