检查for循环中的remove,检查response的length != 0
This commit is contained in:
@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user