文档上传(1.1功能描述)

master
saltedfish-zjx 1 year ago
parent dc62b5453d
commit 25c58909f6

Binary file not shown.

@ -1,4 +1,4 @@
#Thu Sep 14 20:59:17 CST 2023
#Fri Sep 15 09:58:37 CST 2023
net.micode.notes.app-main-7\:/drawable-hdpi/font_super.png=D\:\\Code\\Repository\\Android\\Notes2\\src\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_font_super.png.flat
net.micode.notes.app-main-7\:/drawable-hdpi/call_record.png=D\:\\Code\\Repository\\Android\\Notes2\\src\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_call_record.png.flat
net.micode.notes.app-main-7\:/drawable-hdpi/new_note_normal.png=D\:\\Code\\Repository\\Android\\Notes2\\src\\app\\build\\intermediates\\merged_res\\debug\\drawable-hdpi_new_note_normal.png.flat

@ -1,4 +1,4 @@
#Fri Sep 15 08:20:45 CST 2023
#Sun Sep 17 16:46:56 CST 2023
base.0=D\:\\Code\\Repository\\Android\\Notes2\\src\\app\\build\\intermediates\\dex\\debug\\mergeDexDebug\\classes.dex
renamed.0=classes.dex
path.0=classes.dex

@ -66,6 +66,7 @@ public class Notes {
*/
public static final Uri CONTENT_DATA_URI = Uri.parse("content://" + AUTHORITY + "/data");
//数据库表列名定义
public interface NoteColumns {
/**
* The unique ID for a row

@ -35,6 +35,7 @@ import net.micode.notes.data.Notes.NoteColumns;
import net.micode.notes.data.NotesDatabaseHelper.TABLE;
//数据访问类
public class NotesProvider extends ContentProvider {
private static final UriMatcher mMatcher;

@ -220,6 +220,6 @@ public class NoteItemData {
}
public static int getNoteType(Cursor cursor) {
return cursor.getInt(TYPE_COLUMN);
return cursor.getInt(TYPE_COLUMN);
}
}

@ -423,6 +423,7 @@ public class NotesListActivity extends Activity implements OnClickListener, OnIt
}, NoteColumns.TYPE + " DESC," + NoteColumns.MODIFIED_DATE + " DESC");
}
//后台SQL操作类
private final class BackgroundQueryHandler extends AsyncQueryHandler {
public BackgroundQueryHandler(ContentResolver contentResolver) {
super(contentResolver);

@ -168,6 +168,7 @@ public class NotesListAdapter extends CursorAdapter {
calcNotesCount();
}
/** 计算当前文件夹下笔记数量 */
private void calcNotesCount() {
mNotesCount = 0;
for (int i = 0; i < getCount(); i++) {

Loading…
Cancel
Save