@@ -56,7 +56,7 @@ static ThreadPoolExecutor threadPoolExecutor() {
5656 public interface CompleteCallback {
5757 void onComplete (Object result , Object tag );
5858
59- void onError (Object tag );
59+ void onError (String error , Object tag );
6060 }
6161
6262 static class PriorityThreadFactory implements ThreadFactory {
@@ -194,7 +194,7 @@ protected void onPostExecute(final Bitmap result) {
194194 if (result != null ) {
195195 this .callback .onComplete (result , this .context );
196196 } else {
197- this .callback .onError (this .context );
197+ this .callback .onError ("DownloadImageTask returns no result." , this .context );
198198 }
199199 }
200200 }
@@ -227,7 +227,7 @@ protected void onPostExecute(final Bitmap result) {
227227 if (result != null ) {
228228 this .callback .onComplete (result , this .requestId );
229229 } else {
230- this .callback .onError (this .requestId );
230+ this .callback .onError ("LoadImageFromResourceTask returns no result." , this .requestId );
231231 }
232232 }
233233 }
@@ -250,7 +250,7 @@ protected void onPostExecute(final Bitmap result) {
250250 if (result != null ) {
251251 this .callback .onComplete (result , this .requestId );
252252 } else {
253- this .callback .onError (this .requestId );
253+ this .callback .onError ("LoadImageFromFileTask returns no result." , this .requestId );
254254 }
255255 }
256256 }
@@ -274,7 +274,7 @@ protected void onPostExecute(final Bitmap result) {
274274 if (result != null ) {
275275 this .callback .onComplete (result , this .requestId );
276276 } else {
277- this .callback .onError (this .requestId );
277+ this .callback .onError ("LoadImageFromBase64StringTask returns no result." , this .requestId );
278278 }
279279 }
280280 }
@@ -572,7 +572,7 @@ protected void onPostExecute(final RequestResult result) {
572572 if (result != null ) {
573573 this .callback .onComplete (result , this .context );
574574 } else {
575- this .callback .onError (this .context );
575+ this .callback .onError ("HttpRequestTask returns no result." , this .context );
576576 }
577577 }
578578
0 commit comments