[Android] Add isMarshMallowOrLater util method
Geoffrey Métais
git at videolan.org
Tue Oct 27 17:47:02 CET 2015
vlc-ports/android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Oct 26 16:48:00 2015 +0100| [180aeb94a6accec364f94b3791d252b950ebde4d] | committer: Geoffrey Métais
Add isMarshMallowOrLater util method
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=180aeb94a6accec364f94b3791d252b950ebde4d
---
libvlc/src/org/videolan/libvlc/util/AndroidUtil.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libvlc/src/org/videolan/libvlc/util/AndroidUtil.java b/libvlc/src/org/videolan/libvlc/util/AndroidUtil.java
index 2b795c3..f87bc3f 100644
--- a/libvlc/src/org/videolan/libvlc/util/AndroidUtil.java
+++ b/libvlc/src/org/videolan/libvlc/util/AndroidUtil.java
@@ -67,6 +67,10 @@ public class AndroidUtil {
return Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP;
}
+ public static boolean isMarshMallowOrLater() {
+ return Build.VERSION.SDK_INT >= Build.VERSION_CODES.M;
+ }
+
public static File UriToFile(Uri uri) {
return new File(uri.getPath().replaceFirst("file://", ""));
}
More information about the Android
mailing list