Do not report Android as Java 7
This commit is contained in:
parent
e5bcc74cd5
commit
e10d113678
@ -61,6 +61,14 @@ public final class DetectionUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static int javaVersion0() {
|
private static int javaVersion0() {
|
||||||
|
// Android
|
||||||
|
try {
|
||||||
|
Class.forName("android.app.Application", false, ClassLoader.getSystemClassLoader());
|
||||||
|
return 6;
|
||||||
|
} catch (Exception e) {
|
||||||
|
// Ignore
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Deflater.class.getDeclaredField("SYNC_FLUSH");
|
Deflater.class.getDeclaredField("SYNC_FLUSH");
|
||||||
return 7;
|
return 7;
|
||||||
|
Loading…
Reference in New Issue
Block a user