[Android] AudioUtil: trivial simplification

Jean-Baptiste Kempf git at videolan.org
Mon Oct 15 16:02:21 CEST 2012


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Oct 15 16:02:10 2012 +0200| [98105c2f1f4b42af31cf8e595a3213e80461a85a] | committer: Jean-Baptiste Kempf

AudioUtil: trivial simplification

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

 vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java b/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
index 1a189dc..bd92a95 100644
--- a/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
+++ b/vlc-android/src/org/videolan/vlc/gui/audio/AudioUtil.java
@@ -109,9 +109,7 @@ public class AudioUtil {
             String albumArt = cursor.getString(titleColumn);
             cursor.close();
             if(albumArt != null) { // could be null (no album art stored)
-                Bitmap b = BitmapFactory.decodeFile(albumArt);
-                if (b != null)
-                    return b;
+                return BitmapFactory.decodeFile(albumArt);
             }
         }
         return null;



More information about the Android mailing list