修改搜索界面奔溃bug

This commit is contained in:
huangzhuanghua
2016-05-18 16:23:36 +08:00
parent 85849255e6
commit 6bf1d8954b
6 changed files with 7 additions and 32 deletions

View File

@ -139,7 +139,7 @@ public class DataCollectionManager {
}
Map<String, Object> map = new HashMap<String, Object>();
map.put("data", data);
map.put("createOn", System.currentTimeMillis() / 100);
map.put("createdOn", System.currentTimeMillis() / 1000);
onEvent(mContext, "click", map);
dao.delete(ids);
}
@ -195,6 +195,10 @@ public class DataCollectionManager {
ids.add(dataCollectionEntity.getId());
}
if (ids.size() > 20) {
return;
}
ArrayList<Object> params = new ArrayList<Object>();
for (String key : map.keySet()) {
HashMap<String, Object> hashMap = new HashMap<String, Object>();