This commit is contained in:
square group sky 2019-10-11 23:51:57 +08:00
parent 2186942fb4
commit 122ed2135a
1 changed files with 2 additions and 0 deletions

View File

@ -285,6 +285,7 @@ public class BackupUtils {
+ "=0", null, null); + "=0", null, null);
if (noteCursor != null) { if (noteCursor != null) {
//如果不为空
if (noteCursor.moveToFirst()) { if (noteCursor.moveToFirst()) {
do { do {
ps.println(String.format(getFormat(FORMAT_NOTE_DATE), DateFormat.format( ps.println(String.format(getFormat(FORMAT_NOTE_DATE), DateFormat.format(
@ -292,6 +293,7 @@ public class BackupUtils {
noteCursor.getLong(NOTE_COLUMN_MODIFIED_DATE)))); noteCursor.getLong(NOTE_COLUMN_MODIFIED_DATE))));
// Query data belong to this note // Query data belong to this note
String noteId = noteCursor.getString(NOTE_COLUMN_ID); String noteId = noteCursor.getString(NOTE_COLUMN_ID);
//通过id导出文本
exportNoteToText(noteId, ps); exportNoteToText(noteId, ps);
} while (noteCursor.moveToNext()); } while (noteCursor.moveToNext());
} }