[Android] Add a JB_MR1 check

Jean-Baptiste Kempf git at videolan.org
Fri Feb 14 15:23:26 CET 2014


vlc-ports/android | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Feb 14 14:59:40 2014 +0100| [ccd7d36a93c224f35dad112875ee968b4224b1a1] | committer: Jean-Baptiste Kempf

Add a JB_MR1 check

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

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

diff --git a/vlc-android/src/org/videolan/vlc/Util.java b/vlc-android/src/org/videolan/vlc/Util.java
index ef9f400..cd40611 100644
--- a/vlc-android/src/org/videolan/vlc/Util.java
+++ b/vlc-android/src/org/videolan/vlc/Util.java
@@ -417,6 +417,11 @@ public class Util {
         return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.JELLY_BEAN;
     }
 
+    public static boolean isJellyBeanMR1OrLater()
+    {
+        return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES. JELLY_BEAN_MR1;
+    }
+
     public static boolean hasExternalStorage() {
         return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED);
     }



More information about the Android mailing list