Improved operation errors

This commit is contained in:
M66B
2021-04-30 19:45:20 +02:00
parent 1c797f5f6c
commit fcc893627e
3 changed files with 27 additions and 1 deletions

View File

@@ -511,7 +511,9 @@ public class EntityOperation {
if (EntityOperation.ATTACHMENT.equals(name))
try {
JSONArray jargs = new JSONArray(args);
db.attachment().setProgress(jargs.getLong(0), null);
long id = jargs.getLong(0);
db.attachment().setProgress(id, null);
db.attachment().setError(id, error);
return;
} catch (JSONException ex) {
Log.e(ex);