From 122ed2135a634d8dfb575298ec9f12599bfa3b2d Mon Sep 17 00:00:00 2001 From: square group sky <2992305964@qq.com> Date: Fri, 11 Oct 2019 23:51:57 +0800 Subject: [PATCH] 1 --- app/src/main/java/net/micode/notes/tool/BackupUtils.java | 2 ++ 1 file changed, 2 insertions(+) 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()); }