[Android] Add a isLolliPopOrLater() util method
Geoffrey Métais
git at videolan.org
Tue Nov 25 11:45:41 CET 2014
vlc-ports/android | branch: 1.0.x | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Nov 24 16:07:29 2014 +0100| [1783b614340f6dcc1ead6d0d9b58788cddc4a6ba] | committer: Jean-Baptiste Kempf
Add a isLolliPopOrLater() util method
(cherry picked from commit afe14f599bf3217323052c6fbe25d5c3885149f4)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=1783b614340f6dcc1ead6d0d9b58788cddc4a6ba
---
vlc-android/src/org/videolan/libvlc/LibVlcUtil.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java b/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
index a4d5cd3..c358d49 100644
--- a/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
+++ b/vlc-android/src/org/videolan/libvlc/LibVlcUtil.java
@@ -79,6 +79,11 @@ public class LibVlcUtil {
return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.KITKAT;
}
+ public static boolean isLolliPopOrLater()
+ {
+ return android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.LOLLIPOP;
+ }
+
private static String errorMsg = null;
private static boolean isCompatible = false;
public static String getErrorMsg() {
More information about the Android
mailing list