creating a widgets table for holding individual widget info

This commit is contained in:
tibbi
2018-09-13 15:48:58 +02:00
parent 350572394c
commit ad3c6aecfd
7 changed files with 68 additions and 25 deletions

View File

@ -48,7 +48,7 @@ class NoteFragment : Fragment() {
view = inflater.inflate(R.layout.fragment_note, container, false) as ViewGroup
noteId = arguments!!.getInt(NOTE_ID)
db = context!!.dbHelper
note = db.getNote(noteId) ?: return view
note = db.getNoteWithId(noteId) ?: return view
retainInstance = true
val layoutToInflate = if (context!!.config.enableLineWrap) R.layout.note_view_static else R.layout.note_view_horiz_scrollable