diff --git a/src/main/java/com/budiyev/android/imageloader/DisplayImageAction.java b/src/main/java/com/budiyev/android/imageloader/DisplayImageAction.java index d215193..a15e8fb 100644 --- a/src/main/java/com/budiyev/android/imageloader/DisplayImageAction.java +++ b/src/main/java/com/budiyev/android/imageloader/DisplayImageAction.java @@ -76,15 +76,12 @@ public boolean hasSameKey(@Nullable String key) { @Override protected void onImageLoaded(@NonNull Bitmap image) { - if (mView.get() == null || mResources.get() == null) { - return; - } mMainThreadHandler.post(new SetImageAction(image)); } @Override protected void onError(@NonNull Throwable error) { - if (mErrorDrawable != null || !isCancelled()) { + if (mErrorDrawable != null) { mMainThreadHandler.post(new SetErrorDrawableAction()); } } diff --git a/src/main/java/com/budiyev/android/imageloader/ImageRequest.java b/src/main/java/com/budiyev/android/imageloader/ImageRequest.java index c3f6b99..c866823 100644 --- a/src/main/java/com/budiyev/android/imageloader/ImageRequest.java +++ b/src/main/java/com/budiyev/android/imageloader/ImageRequest.java @@ -338,7 +338,7 @@ public void load(@NonNull View view) { } DisplayImageAction currentAction = InternalUtils.getDisplayImageAction(view); if (currentAction != null) { - if (currentAction.hasSameKey(key) && !currentAction.isCancelled()) { + if (currentAction.hasSameKey(key)) { return; } currentAction.cancel();