|
|
|
@ -26,7 +26,10 @@ import net.micode.notes.data.Notes.NoteColumns;
|
|
|
|
|
import net.micode.notes.tool.DataUtils;
|
|
|
|
|
import net.micode.notes.ui.activities.NoteEditActivity;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 便签列表子项
|
|
|
|
|
* 存储许多便签有关的数据
|
|
|
|
|
*/
|
|
|
|
|
public class NoteItemData {
|
|
|
|
|
public static final String[] PROJECTION = new String[]{
|
|
|
|
|
NoteColumns.ID,
|
|
|
|
@ -82,7 +85,7 @@ public class NoteItemData {
|
|
|
|
|
mAlertDate = cursor.getLong(ALERTED_DATE_COLUMN);
|
|
|
|
|
mBgColorId = cursor.getInt(BG_COLOR_ID_COLUMN);
|
|
|
|
|
mCreatedDate = cursor.getLong(CREATED_DATE_COLUMN);
|
|
|
|
|
mHasAttachment = (cursor.getInt(HAS_ATTACHMENT_COLUMN) > 0) ? true : false;
|
|
|
|
|
mHasAttachment = cursor.getInt(HAS_ATTACHMENT_COLUMN) > 0;
|
|
|
|
|
mModifiedDate = cursor.getLong(MODIFIED_DATE_COLUMN);
|
|
|
|
|
mNotesCount = cursor.getInt(NOTES_COUNT_COLUMN);
|
|
|
|
|
mParentId = cursor.getLong(PARENT_ID_COLUMN);
|
|
|
|
@ -111,8 +114,8 @@ public class NoteItemData {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void checkPostion(Cursor cursor) {
|
|
|
|
|
mIsLastItem = cursor.isLast() ? true : false;
|
|
|
|
|
mIsFirstItem = cursor.isFirst() ? true : false;
|
|
|
|
|
mIsLastItem = cursor.isLast();
|
|
|
|
|
mIsFirstItem = cursor.isFirst();
|
|
|
|
|
mIsOnlyOneItem = (cursor.getCount() == 1);
|
|
|
|
|
mIsMultiNotesFollowingFolder = false;
|
|
|
|
|
mIsOneNoteFollowingFolder = false;
|
|
|
|
|