Skip to content

Commit

Permalink
Dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriy-budiyev committed Mar 1, 2018
1 parent 4dfe552 commit a910ca9
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ protected final void loadImage() {
return;
}
}
if (isCancelled()) {
return;
}
// Storage cache
ImageCache storageCache = mStorageCache;
if (key != null && storageCache != null) {
Expand All @@ -191,6 +194,9 @@ protected final void loadImage() {
return;
}
}
if (isCancelled()) {
return;
}
// Load new image
Size requiredSize = mRequiredSize;
try {
Expand All @@ -203,6 +209,9 @@ protected final void loadImage() {
processError(new ImageNotLoadedException());
return;
}
if (isCancelled()) {
return;
}
// Transform image
BitmapTransformation transformation = mTransformation;
if (transformation != null) {
Expand All @@ -217,6 +226,9 @@ protected final void loadImage() {
return;
}
}
if (isCancelled()) {
return;
}
processImage(image);
if (key != null) {
if (memoryCache != null) {
Expand Down

0 comments on commit a910ca9

Please sign in to comment.