mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-04-02 18:00:12 +02: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) {
|
private fun getTextGravity() = when (context.config.gravity) {
|
||||||
GRAVITY_CENTER -> Gravity.CENTER_HORIZONTAL
|
GRAVITY_CENTER -> Gravity.CENTER_HORIZONTAL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user