This commit is contained in:
square group sky 2020-01-08 20:34:23 +08:00
parent 9bcf3c3eb2
commit 9cb5395d89
1 changed files with 7 additions and 6 deletions

View File

@ -43,10 +43,10 @@ public class Note {
private NoteData mNoteData;
private static final String TAG = "Note";
private static final String WRONGNOTEID = "Wrong note id:";
/**
* Create a new note id for adding a new note to databases
* 返回值为新建的note的Id
*/
/*
* Create a new note id for adding a new note to databases
* 返回值为新建的note的Id
* */
public static synchronized long getNewNoteId(Context context, long folderId) {
// 在数据库中创建新便签
ContentValues values = new ContentValues();
@ -78,7 +78,6 @@ public class Note {
return noteId;
}
//构造函数
public Note() {
//为mNoteDiffValues与mNoteData初始化
mNoteDiffValues = new ContentValues();
@ -173,7 +172,9 @@ public class Note {
private static final String TAG = "NoteData";
//构造函数初始化变量
/*
* 构造函数初始化变量
* */
public NoteData() {
mTextDataValues = new ContentValues();
mCallDataValues = new ContentValues();