summaryrefslogtreecommitdiff
path: root/src/com/android/bitmap/view/BitmapDrawableImageView.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/bitmap/view/BitmapDrawableImageView.java')
-rw-r--r--src/com/android/bitmap/view/BitmapDrawableImageView.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/bitmap/view/BitmapDrawableImageView.java b/src/com/android/bitmap/view/BitmapDrawableImageView.java
index e9df6d3..9a88f3f 100644
--- a/src/com/android/bitmap/view/BitmapDrawableImageView.java
+++ b/src/com/android/bitmap/view/BitmapDrawableImageView.java
@@ -118,7 +118,8 @@ public class BitmapDrawableImageView extends ImageView {
protected void onAttachedToWindow() {
super.onAttachedToWindow();
mAttachedToWindow = true;
- if (mDrawable != null && mDrawable.getKey() == null) {
+ if (mDrawable != null && mDrawable.getKey() == null
+ && mDrawable.getPreviousKey() != null) {
mDrawable.bind(mDrawable.getPreviousKey());
}
}