issue #176 closed

parent fff79ad3
......@@ -164,6 +164,7 @@ public class PictoUploader {
Log.e(LOG_TAG, " Error: " + e.getLocalizedMessage());
}
Log.i(LOG_TAG,"Uploading attributes ");
PictoUploader.this.picto.set_local_status(false);
PCBcontext.getRestapiWrapper().ask(PCBcontext.getPcbdb().getCurrentUser().get_restapi_operation_stu() + "/picto/"+id_picto, params, "post", true, new RestapiWrapper.iRestapiListener() {
@Override
public void preExecute() {
......@@ -201,6 +202,7 @@ public class PictoUploader {
@Override
public void error(RestapiWrapper.HTTPException e) {
Log.e(LOG_TAG, " Error uploading attributes: " + e.getLocalizedMessage());
PictoUploader.this.picto.set_local_status(true);
listener.success(false,e.getLocalizedMessage());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment