Skip to content

Commit

Permalink
davemorrissey#130 Make sure both onReady and onImageLoaded are called…
Browse files Browse the repository at this point in the history
… for bitmaps
  • Loading branch information
davemorrissey committed Oct 13, 2015
1 parent 0e3b145 commit 7d42d6c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1623,7 +1623,9 @@ private synchronized void onImageLoaded(Bitmap bitmap, int sOrientation, boolean
this.sWidth = bitmap.getWidth();
this.sHeight = bitmap.getHeight();
this.sOrientation = sOrientation;
if (checkReady() || checkImageLoaded()) {
boolean ready = checkReady();
boolean imageLoaded = checkImageLoaded();
if (ready || imageLoaded) {
invalidate();
requestLayout();
}
Expand Down

0 comments on commit 7d42d6c

Please sign in to comment.