[Android] [PATCH 1/4] isLolliPopOrLater() util method
Geoffrey Métais
geoffrey.metais at gmail.com
Mon Nov 24 16:07:29 CET 2014
---
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() {
--
1.9.1
More information about the Android
mailing list