mirror of
https://github.com/SimpleMobileTools/Simple-Notes.git
synced 2025-06-05 17:00:23 +02:00
export notes into txt files
This commit is contained in:
@ -36,7 +36,7 @@ const val USE_INCOGNITO_MODE = "use_incognito_mode"
|
||||
const val LAST_CREATED_NOTE_TYPE = "last_created_note_type"
|
||||
const val MOVE_DONE_CHECKLIST_ITEMS = "move_undone_checklist_items" // it has been replaced from moving undone items at the top to moving done to bottom
|
||||
const val FONT_SIZE_PERCENTAGE = "font_size_percentage"
|
||||
const val EXPORT_MIME_TYPE = "application/json"
|
||||
const val EXPORT_MIME_TYPE = "text/plain"
|
||||
|
||||
// gravity
|
||||
const val GRAVITY_LEFT = 0
|
||||
|
@ -29,7 +29,7 @@ class NotesExporter(private val context: Context) {
|
||||
writer.beginArray()
|
||||
val notes = context.notesDB.getNotes() as ArrayList<Note>
|
||||
for (note in notes) {
|
||||
if (note.protectionType === PROTECTION_NONE) {
|
||||
if (note.protectionType == PROTECTION_NONE) {
|
||||
val noteToSave = getNoteToExport(note)
|
||||
writer.jsonValue(gson.toJson(noteToSave))
|
||||
written++
|
||||
|
Reference in New Issue
Block a user