Merge pull request #66 from emaiannone/refactoring/aDoctor
Refactor Internal Setter smell in RecyclingImageView class
This commit is contained in:
commit
ffa048177e
|
@ -46,7 +46,7 @@ public class RecyclingImageView extends AppCompatImageView {
|
||||||
if (drawable instanceof BitmapDrawable) {
|
if (drawable instanceof BitmapDrawable) {
|
||||||
if (isBitmapRecycled(drawable)) {
|
if (isBitmapRecycled(drawable)) {
|
||||||
this.setImageDrawable(null);
|
this.setImageDrawable(null);
|
||||||
setInvalidated(true);
|
this.invalidated = true;
|
||||||
}
|
}
|
||||||
} else if (drawable instanceof TransitionDrawable) {
|
} else if (drawable instanceof TransitionDrawable) {
|
||||||
TransitionDrawable transitionDrawable = (TransitionDrawable) drawable;
|
TransitionDrawable transitionDrawable = (TransitionDrawable) drawable;
|
||||||
|
|
Loading…
Reference in New Issue