AndroidMgr: fixed library version check
This commit is contained in:
parent
33ab9ea188
commit
1d7d22e117
@ -69,6 +69,9 @@ public class OpenCVEngineService extends Service {
|
|||||||
if (diff > 0 || (diff != 0 && i == 0)) {
|
if (diff > 0 || (diff != 0 && i == 0)) {
|
||||||
// requested version is greater than actual OR major version differs
|
// requested version is greater than actual OR major version differs
|
||||||
return false;
|
return false;
|
||||||
|
} else if (diff < 0) {
|
||||||
|
// version is compatible
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (expected.length > i) {
|
if (expected.length > i) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user