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