aboutsummaryrefslogtreecommitdiff
path: root/subsonic-android/src
diff options
context:
space:
mode:
authorScott Jackson <daneren2005@gmail.com>2013-02-19 19:59:04 -0800
committerScott Jackson <daneren2005@gmail.com>2013-02-19 19:59:04 -0800
commit1b67b83d7e55826c00dbfdadcc94ff084c2fcd97 (patch)
treea6d62d115c0ee5f7c62fb730a3cf4693a27d5cbf /subsonic-android/src
parent248a7460c02a601bea1d3b0a4ddf6e81a0f16c65 (diff)
parentc30a37550b0732076935ffa658490b77efa65035 (diff)
downloaddsub-1b67b83d7e55826c00dbfdadcc94ff084c2fcd97.tar.gz
dsub-1b67b83d7e55826c00dbfdadcc94ff084c2fcd97.tar.bz2
dsub-1b67b83d7e55826c00dbfdadcc94ff084c2fcd97.zip
Merge branch 'master' of https://github.com/daneren2005/Subsonic.git into Experimental
Diffstat (limited to 'subsonic-android/src')
-rw-r--r--subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java
index 35e24039..133f2c26 100644
--- a/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java
+++ b/subsonic-android/src/github/daneren2005/dsub/util/ImageLoader.java
@@ -158,6 +158,15 @@ public class ImageLoader implements Runnable {
emptyImage = Bitmap.createBitmap(imageSizeDefault, imageSizeDefault, Bitmap.Config.ARGB_8888);
}
existingDrawable = new BitmapDrawable(emptyImage);
+ } else {
+ // Try to get rid of old transitions
+ try {
+ TransitionDrawable tmp = (TransitionDrawable) existingDrawable;
+ int layers = tmp.getNumberOfLayers();
+ existingDrawable = tmp.getDrawable(layers - 1;)
+ } catch(Exception e) {
+ // Do nothing, just means that the drawable is a flat image
+ }
}
Drawable[] layers = new Drawable[]{existingDrawable, drawable};