检查for循环中的remove,检查response的length != 0

This commit is contained in:
huangzhuanghua
2016-10-21 16:44:40 +08:00
parent 3100d6aede
commit 24238acf0e
32 changed files with 231 additions and 307 deletions

View File

@ -247,7 +247,6 @@ public class DataCollectionManager {
@Override
public void onResponse(JSONObject response) {
isUploading = false;
Utils.log(response);
try {
if ("success".equals(response.getString("status"))) {
// 上传成功,删除本地数据
@ -262,7 +261,6 @@ public class DataCollectionManager {
public void onErrorResponse(VolleyError error) {
isUploading = false;
// 上传失败,检查网络状态,继续上传
Utils.log(error);
if (error.networkResponse != null) {
Utils.log(new String(error.networkResponse.data));
}