[Android] Add isOOrLater util value
Geoffrey Métais
git at videolan.org
Mon Jun 12 14:28:32 CEST 2017
vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Mon Jun 12 14:17:17 2017 +0200| [dcc5ae63b4b1bea95a0ef37246f154e868963997] | committer: Geoffrey Métais
Add isOOrLater util value
> https://code.videolan.org/videolan/vlc-android/commit/dcc5ae63b4b1bea95a0ef37246f154e868963997
---
libvlc/src/org/videolan/libvlc/util/AndroidUtil.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libvlc/src/org/videolan/libvlc/util/AndroidUtil.java b/libvlc/src/org/videolan/libvlc/util/AndroidUtil.java
index e46034fcf..512b41422 100644
--- a/libvlc/src/org/videolan/libvlc/util/AndroidUtil.java
+++ b/libvlc/src/org/videolan/libvlc/util/AndroidUtil.java
@@ -27,7 +27,8 @@ import java.io.File;
public class AndroidUtil {
- public static final boolean isNougatOrLater = android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.N;
+ public static final boolean isOOrLater = android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.O;
+ public static final boolean isNougatOrLater = isOOrLater || android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.N;
public static final boolean isMarshMallowOrLater = isNougatOrLater || android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.M;
public static final boolean isLolliPopOrLater = isMarshMallowOrLater || android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP;
public static final boolean isKitKatOrLater = isLolliPopOrLater || android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
More information about the Android
mailing list