diff options
author | Scott Jackson <daneren2005@gmail.com> | 2013-01-16 20:20:53 -0800 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2013-01-16 20:20:53 -0800 |
commit | be2e9e1591ae7bd2a3c144124d1ed82237cfcabf (patch) | |
tree | bcf408f813d6b1e311d6a76c4f506af2aebf92c7 /subsonic-android | |
parent | dd1d7d59b35dc91fcb98b3f514adf4a33178cd65 (diff) | |
download | dsub-be2e9e1591ae7bd2a3c144124d1ed82237cfcabf.tar.gz dsub-be2e9e1591ae7bd2a3c144124d1ed82237cfcabf.tar.bz2 dsub-be2e9e1591ae7bd2a3c144124d1ed82237cfcabf.zip |
Compatibility fixes for ImageLoader on 2.3 and below devices
Diffstat (limited to 'subsonic-android')
-rw-r--r-- | subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java index f2b5e5f0..06b837e4 100644 --- a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java +++ b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java @@ -28,7 +28,7 @@ import android.media.RemoteControlClient; import android.os.Handler; import android.util.DisplayMetrics; import android.util.Log; -import android.util.LruCache; +import android.support.v4.util.LruCache; import android.view.View; import android.widget.ImageView; import android.widget.TextView; @@ -67,7 +67,7 @@ public class ImageLoader implements Runnable { cache = new LruCache<String, Bitmap>(cacheSize) { @Override protected int sizeOf(String key, Bitmap bitmap) { - return bitmap.getByteCount() / 1024; + return bitmap.getRowBytes() * bitmap.getHeight() / 1024; } @Override |