[Android] Replace version code by constant

Ludovic Fauvet git at videolan.org
Tue Oct 2 17:00:28 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Tue Oct  2 16:58:52 2012 +0200| [cba5031eb7688ea65127bd2fae0f03f6d6f3ff4c] | committer: Ludovic Fauvet

Replace version code by constant

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

 vlc-android/src/org/videolan/vlc/Util.java |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/vlc-android/src/org/videolan/vlc/Util.java b/vlc-android/src/org/videolan/vlc/Util.java
index 25cc37b..56f1b8d 100644
--- a/vlc-android/src/org/videolan/vlc/Util.java
+++ b/vlc-android/src/org/videolan/vlc/Util.java
@@ -234,8 +234,7 @@ public class Util {
 
     public static boolean isJellyBeanOrLater()
     {
-        //TODO Compare with VERSION_CODES once targetSdkVersion >= 16
-        return android.os.Build.VERSION.SDK_INT >= 16;
+        return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN;
     }
 
     public static boolean hasNavBar()



More information about the Android mailing list