OSDN Git Service

Evernote関連ノート取得数と連想ノート表示数を変更した
authoryuki <kimaira7@gmail.com>
Wed, 6 Nov 2013 02:34:59 +0000 (11:34 +0900)
committeryuki <kimaira7@gmail.com>
Wed, 6 Nov 2013 02:34:59 +0000 (11:34 +0900)
src/cx/fbn/nevernote/Global.java
src/cx/fbn/nevernote/threads/ENRelatedNotesRunner.java

index 0b04922..42f62c4 100644 (file)
@@ -2321,13 +2321,13 @@ public class Global {
                settings.beginGroup("RensoNoteList");
                Integer value;
                try {
                settings.beginGroup("RensoNoteList");
                Integer value;
                try {
-                       String val  = (String)settings.value("rensoListMaximum", 20);
+                       String val  = (String)settings.value("rensoListMaximum", 10);
                        value = new Integer(val.trim());
                } catch (Exception e) {
                        try {
                        value = new Integer(val.trim());
                } catch (Exception e) {
                        try {
-                               value = (Integer)settings.value("rensoListMaximum", 20);
+                               value = (Integer)settings.value("rensoListMaximum", 10);
                        } catch (Exception e1) {
                        } catch (Exception e1) {
-                               value = 20;
+                               value = 10;
                        }
                }
                settings.endGroup();
                        }
                }
                settings.endGroup();
index dab861a..5d92378 100644 (file)
@@ -27,7 +27,6 @@ import com.evernote.edam.error.EDAMErrorCode;
 import com.evernote.edam.error.EDAMNotFoundException;
 import com.evernote.edam.error.EDAMSystemException;
 import com.evernote.edam.error.EDAMUserException;
 import com.evernote.edam.error.EDAMNotFoundException;
 import com.evernote.edam.error.EDAMSystemException;
 import com.evernote.edam.error.EDAMUserException;
-import com.evernote.edam.limits.Constants;
 import com.evernote.edam.notestore.RelatedQuery;
 import com.evernote.edam.notestore.RelatedResult;
 import com.evernote.edam.notestore.RelatedResultSpec;
 import com.evernote.edam.notestore.RelatedQuery;
 import com.evernote.edam.notestore.RelatedResult;
 import com.evernote.edam.notestore.RelatedResultSpec;
@@ -130,7 +129,7 @@ public class ENRelatedNotesRunner extends QObject implements Runnable{
                RelatedQuery rquery = new RelatedQuery();
                rquery.setNoteGuid(guid);
                RelatedResultSpec resultSpec = new RelatedResultSpec();
                RelatedQuery rquery = new RelatedQuery();
                rquery.setNoteGuid(guid);
                RelatedResultSpec resultSpec = new RelatedResultSpec();
-               resultSpec.setMaxNotes(Constants.EDAM_RELATED_MAX_NOTES);
+               resultSpec.setMaxNotes(5);
                if (syncRunner != null && syncRunner.localNoteStore != null) {
                        try {
                                RelatedResult result = syncRunner.localNoteStore.findRelated(syncRunner.authToken, rquery, resultSpec);
                if (syncRunner != null && syncRunner.localNoteStore != null) {
                        try {
                                RelatedResult result = syncRunner.localNoteStore.findRelated(syncRunner.authToken, rquery, resultSpec);