mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
adding some crashfixes
This commit is contained in:
@ -31,7 +31,7 @@ class ChecklistFragment : NoteFragment(), ChecklistItemsListener {
|
||||
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
||||
view = inflater.inflate(R.layout.fragment_checklist, container, false) as ViewGroup
|
||||
noteId = arguments!!.getLong(NOTE_ID)
|
||||
noteId = arguments!!.getLong(NOTE_ID, 0L)
|
||||
return view
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ class TextFragment : NoteFragment() {
|
||||
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
||||
view = inflater.inflate(R.layout.fragment_text, container, false) as ViewGroup
|
||||
noteId = arguments!!.getLong(NOTE_ID)
|
||||
noteId = arguments!!.getLong(NOTE_ID, 0L)
|
||||
retainInstance = true
|
||||
|
||||
val layoutToInflate = if (config!!.enableLineWrap) R.layout.note_view_static else R.layout.note_view_horiz_scrollable
|
||||
|
Reference in New Issue
Block a user