[Android] Luke, do stuff twice you should not

Sébastien Toque git at videolan.org
Tue Oct 16 20:39:18 CEST 2012


vlc-ports/android | branch: master | Sébastien Toque <xilasz at gmail.com> | Tue Oct 16 20:39:13 2012 +0200| [4560ec2e398bfdbe90ec5a8f5987d839162b1efe] | committer: Sébastien Toque

Luke, do stuff twice you should not

> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=4560ec2e398bfdbe90ec5a8f5987d839162b1efe
---

 vlc-android/src/org/videolan/vlc/BitmapCache.java |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/BitmapCache.java b/vlc-android/src/org/videolan/vlc/BitmapCache.java
index 9d5ab6b..13725b8 100644
--- a/vlc-android/src/org/videolan/vlc/BitmapCache.java
+++ b/vlc-android/src/org/videolan/vlc/BitmapCache.java
@@ -69,7 +69,7 @@ public class BitmapCache {
         final Bitmap b = mMemCache.get(key);
         if (LOG_ENABLED)
             Log.d(TAG, (b == null) ? "Cache miss" : "Cache found");
-        return mMemCache.get(key);
+        return b;
     }
 
     public void addBitmapToMemCache(String key, Bitmap bitmap) {



More information about the Android mailing list