Skip to content

Commit

Permalink
🐛 Set COMPLETED status before ImageDisplayer.display()
Browse files Browse the repository at this point in the history
  • Loading branch information
Flyge committed Sep 3, 2017
1 parent 2f9e750 commit dd35c36
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,10 +267,11 @@ private void displayImage(Drawable drawable) {
displayResult.getImageFrom().name(), drawableInfo, Integer.toHexString(viewInterface.hashCode()), getThreadName(), getKey());
}

displayOptions.getImageDisplayer().display(viewInterface, drawable);

// 一定要在 ImageDisplayer().display 之前执行
setStatus(Status.COMPLETED);

displayOptions.getImageDisplayer().display(viewInterface, drawable);

if (displayListener != null) {
displayListener.onCompleted(displayResult.getDrawable(), displayResult.getImageFrom(), displayResult.getImageAttrs());
}
Expand Down

0 comments on commit dd35c36

Please sign in to comment.