Commits

Michael Ma committed f69ed5e

BUG FIX:笔记本管理 删除笔记本

  • Participants
  • Parent commits d833cbf

Comments (0)

Files changed (1)

File Project/src/com/noodle/note/activity/NotebookManageActivity.java

 	OnItemClickListener oicl = new OnItemClickListener() {
 		public void onItemClick(AdapterView<?> adapter, View v, int position, long id) {
 			int pk = (Integer) listItem.get(position).get("id");
-			if (-1 == pk)
+			if (-2 == pk)
 				return;
 			else
 				shortpress(pk);
 			HashMap<String, Object> noContentMap = new HashMap<String, Object>();
 			noContentMap.put("notebookname", "暂无笔记");
 			noContentMap.put("notebookcount", "没有笔记,没有书签");
-			noContentMap.put("id", -1);
+			noContentMap.put("id", -2);
 			listItem.add(noContentMap);
 		}
 		SimpleAdapter listItemAdapter = new SimpleAdapter(this, listItem, R.layout.notebookmanage_listview, new String[] { "notebookname", "notebookcount" }, new int[] {