[Android] Util: add isJellyBeanOrLater version check

Ludovic Fauvet git at videolan.org
Sat Sep 29 16:35:13 CEST 2012


vlc-ports/android | branch: master | Ludovic Fauvet <etix at videolan.org> | Sat Sep 29 16:31:09 2012 +0200| [57c156f480e4dbf285230a253624f59da15a2c52] | committer: Ludovic Fauvet

Util: add isJellyBeanOrLater version check

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

 vlc-android/src/org/videolan/vlc/Util.java |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/vlc-android/src/org/videolan/vlc/Util.java b/vlc-android/src/org/videolan/vlc/Util.java
index 9f6b068..25cc37b 100644
--- a/vlc-android/src/org/videolan/vlc/Util.java
+++ b/vlc-android/src/org/videolan/vlc/Util.java
@@ -232,6 +232,12 @@ public class Util {
         return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.ICE_CREAM_SANDWICH;
     }
 
+    public static boolean isJellyBeanOrLater()
+    {
+        //TODO Compare with VERSION_CODES once targetSdkVersion >= 16
+        return android.os.Build.VERSION.SDK_INT >= 16;
+    }
+
     public static boolean hasNavBar()
     {
         return hasNavBar;



More information about the Android mailing list