OSDN Git Service

Cleanup of initial sync with ink notes and added the ability to highlight words in...
[neighbornote/NeighborNote.git] / src / cx / fbn / nevernote / threads / SyncRunner.java
index 29a2afb..912e63a 100644 (file)
@@ -1076,12 +1076,14 @@ public class SyncRunner extends QObject implements Runnable {
                                \r
                                if (saveNeeded) \r
                                        conn.getNoteTable().noteResourceTable.updateNoteResource(r, false);\r
+                               if (r.getMime().equalsIgnoreCase("application/vnd.evernote.ink"))\r
+                                       downloadInkNoteImage(r.getGuid());\r
 \r
                        }\r
                }\r
                logger.log(logger.EXTREME, "Leaving SyncRunner.syncRemoteResources");\r
        }\r
-       // Sync remote notebooks\r
+       // Sync remote notes\r
        private void syncRemoteNotes(List<Note> note, boolean fullSync) {\r
                logger.log(logger.EXTREME, "Entering SyncRunner.syncRemoteNotes");\r
                if (note != null) {\r
@@ -1117,6 +1119,8 @@ public class SyncRunner extends QObject implements Runnable {
                                                        for (int q=0; q<n.getResources().size() && keepRunning; q++) {\r
                                                                logger.log(logger.EXTREME, "Getting note resources.");\r
                                                                conn.getNoteTable().noteResourceTable.updateNoteResource(n.getResources().get(q), false);\r
+                                                               if (n.getResources().get(q).getMime().equalsIgnoreCase("application/vnd.evernote.ink"))\r
+                                                                       downloadInkNoteImage(n.getResources().get(q).getGuid());\r
                                                        }\r
                                                }\r
                                        }\r