learn to code a condition

This commit is contained in:
Erwan Croze 2016-11-17 14:43:09 +01:00
parent 1f5cf60531
commit b1a48fb816

View file

@ -104,7 +104,7 @@ public class LinphoneCoreFactoryImpl extends LinphoneCoreFactory {
File file = new File(context.getFilesDir()+"/../lib/libmsopenh264.so");
// Only enable for android <= 5.0
if (!file.exists() && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
if (!file.exists() || Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP_MR1) {
Log.i("LinphoneCoreFactoryImpl"," Openh264 disabled on the project");
return false;
}