Permalink
Browse files

[library] Fix #14: Exception because getCallback() is Honeycomb API

  • Loading branch information...
1 parent 8ac2617 commit c7e7c290d0376cbbf0c3025c668da0f4b85bc752 @chrisbanes committed Mar 12, 2013
Showing with 0 additions and 10 deletions.
  1. +0 −10 library/src/uk/co/senab/bitmapcache/CacheableBitmapDrawable.java
@@ -63,8 +63,6 @@
@Override
public void draw(Canvas canvas) {
- checkCallback();
-
try {
super.draw(canvas);
} catch (RuntimeException re) {
@@ -163,14 +161,6 @@ private void cancelCheckStateCallback() {
}
}
- private void checkCallback() {
- if (!(getCallback() instanceof CacheableImageView)) {
- mRecyclePolicy = BitmapLruCache.RecyclePolicy.DISABLED;
- Log.w(LOG_TAG,
- "CacheableBitmapDrawable should only be used with CacheableImageView. Turning off all recycling functionality");
- }
- }
-
/**
* Calls {@link #checkState(boolean)} with default parameter of <code>false</code>.
*/

0 comments on commit c7e7c29

Please sign in to comment.