Merge pull request #66 from emaiannone/refactoring/aDoctor

Refactor Internal Setter smell in RecyclingImageView class
This commit is contained in:
Andrew Rabert 2020-04-30 12:55:58 -04:00 committed by GitHub
commit ffa048177e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public class RecyclingImageView extends AppCompatImageView {
if (drawable instanceof BitmapDrawable) {
if (isBitmapRecycled(drawable)) {
this.setImageDrawable(null);
setInvalidated(true);
this.invalidated = true;
}
} else if (drawable instanceof TransitionDrawable) {
TransitionDrawable transitionDrawable = (TransitionDrawable) drawable;