diff --git a/app/src/main/java/net/micode/notes/tool/BackupUtils.java b/app/src/main/java/net/micode/notes/tool/BackupUtils.java index a25a488..3ff1d0f 100644 --- a/app/src/main/java/net/micode/notes/tool/BackupUtils.java +++ b/app/src/main/java/net/micode/notes/tool/BackupUtils.java @@ -285,6 +285,7 @@ public class BackupUtils { + "=0", null, null); if (noteCursor != null) { + //如果不为空 if (noteCursor.moveToFirst()) { do { ps.println(String.format(getFormat(FORMAT_NOTE_DATE), DateFormat.format( @@ -292,6 +293,7 @@ public class BackupUtils { noteCursor.getLong(NOTE_COLUMN_MODIFIED_DATE)))); // Query data belong to this note String noteId = noteCursor.getString(NOTE_COLUMN_ID); + //通过id导出文本 exportNoteToText(noteId, ps); } while (noteCursor.moveToNext()); }