File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
app/src/main/kotlin/com/simplemobiletools/notes/pro Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -878,6 +878,7 @@ class MainActivity : SimpleActivity() {
878878 }
879879
880880 private fun tryExportNotes () {
881+ hideKeyboard()
881882 val fileName = " ${getString(R .string.notes)} _${getCurrentFormattedDateTime()} "
882883 Intent (Intent .ACTION_CREATE_DOCUMENT ).apply {
883884 type = EXPORT_MIME_TYPE
@@ -910,6 +911,7 @@ class MainActivity : SimpleActivity() {
910911 }
911912
912913 private fun tryImportNotes () {
914+ hideKeyboard()
913915 Intent (Intent .ACTION_GET_CONTENT ).apply {
914916 addCategory(Intent .CATEGORY_OPENABLE )
915917 type = EXPORT_MIME_TYPE
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ const val USE_INCOGNITO_MODE = "use_incognito_mode"
3636const val LAST_CREATED_NOTE_TYPE = " last_created_note_type"
3737const 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
3838const val FONT_SIZE_PERCENTAGE = " font_size_percentage"
39- const val EXPORT_MIME_TYPE = " application/json "
39+ const val EXPORT_MIME_TYPE = " text/plain "
4040
4141// gravity
4242const val GRAVITY_LEFT = 0
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ class NotesExporter(private val context: Context) {
2929 writer.beginArray()
3030 val notes = context.notesDB.getNotes() as ArrayList <Note >
3131 for (note in notes) {
32- if (note.protectionType == = PROTECTION_NONE ) {
32+ if (note.protectionType == PROTECTION_NONE ) {
3333 val noteToSave = getNoteToExport(note)
3434 writer.jsonValue(gson.toJson(noteToSave))
3535 written++
You can’t perform that action at this time.
0 commit comments