pull/8/head
dszubf 7 months ago
parent 98bd8e6a48
commit c5be0da1f1

@ -1,3 +1,4 @@
/* /*
* Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net) * Copyright (c) 2010-2011, The MiCode Open Source Community (www.micode.net)
* *
@ -208,4 +209,3 @@ public class NotesProvider extends ContentProvider {
* @return * @return
*/ */

@ -54,6 +54,7 @@ public class Task extends Node {
mMetaInfo = null; mMetaInfo = null;
} }
public JSONObject getCreateAction(int actionId) { public JSONObject getCreateAction(int actionId) {
JSONObject js = new JSONObject(); JSONObject js = new JSONObject();

@ -815,8 +815,8 @@ public class GTaskManager {
sqlNote.resetLocalModified(); sqlNote.resetLocalModified();
//commit到本地数据库 //commit到本地数据库
sqlNote.commit(true); sqlNote.commit(true);
} }
/** /**
* meta meta---------- * meta meta----------
* @author TTS * @author TTS
* @param gid * @param gid
@ -825,7 +825,7 @@ public class GTaskManager {
* ---使SqlNote * ---使SqlNote
* @throws NetworkFailureException * @throws NetworkFailureException
*/ */
private void updateRemoteMeta(String gid, SqlNote sqlNote) throws NetworkFailureException { private void updateRemoteMeta(String gid, SqlNote sqlNote) throws NetworkFailureException {
if (sqlNote != null && sqlNote.isNoteType()) { if (sqlNote != null && sqlNote.isNoteType()) {
MetaData metaData = mMetaHashMap.get(gid); MetaData metaData = mMetaHashMap.get(gid);
if (metaData != null) { if (metaData != null) {
@ -839,14 +839,14 @@ public class GTaskManager {
GTaskClient.getInstance().createTask(metaData); GTaskClient.getInstance().createTask(metaData);
} }
} }
} }
/** /**
* syncID * syncID
* @author TTS * @author TTS
* @return void * @return void
* @throws NetworkFailureException * @throws NetworkFailureException
*/ */
private void refreshLocalSyncId() throws NetworkFailureException { private void refreshLocalSyncId() throws NetworkFailureException {
if (mCancelled) { if (mCancelled) {
return; return;
} }
@ -888,20 +888,20 @@ public class GTaskManager {
c = null; c = null;
} }
} }
} }
/** /**
* ,mAccount.name * ,mAccount.name
* @author TTS * @author TTS
* @return String * @return String
*/ */
public String getSyncAccount() { public String getSyncAccount() {
return GTaskClient.getInstance().getSyncAccount().name; return GTaskClient.getInstance().getSyncAccount().name;
} }
/** /**
* mCancelledtrue * mCancelledtrue
* @author TTS * @author TTS
*/ */
public void cancelSync() { public void cancelSync() {
mCancelled = true; mCancelled = true;
} }
} }

@ -141,3 +141,4 @@ public class GTaskSyncService extends Service {
return mSyncProgress; return mSyncProgress;
} }
} }

@ -34,7 +34,7 @@ import net.micode.notes.data.Notes.TextNote;
import java.util.ArrayList; import java.util.ArrayList;
/** /**
* Note * Note
*/ */
public class Note { public class Note {

@ -32,7 +32,7 @@ import net.micode.notes.data.Notes.TextNote;
import net.micode.notes.tool.ResourceParser.NoteBgResources; import net.micode.notes.tool.ResourceParser.NoteBgResources;
/** /**
* WorkingNote * WorkingNote
*/ */
public class WorkingNote { public class WorkingNote {

Loading…
Cancel
Save