Refactor Internal Setter smell in RecyclingImageView class
This commit is contained in:
parent
8fc54ac68c
commit
061c318e05
|
@ -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