detect when processor doesn't have ARM NEON instructions and disable video then
This commit is contained in:
parent
3f8f6959e1
commit
9f29ac0337
3 changed files with 7 additions and 5 deletions
|
@ -96,7 +96,7 @@ public class LinphonePreferencesActivity extends PreferenceActivity implements E
|
|||
detectAudioCodec(pref_codec_amr_key,"AMR",8000);
|
||||
|
||||
// No video
|
||||
if (Version.sdkStrictlyBelow(5) || !fastCpu || !LinphoneManager.getInstance().hasCamera()) {
|
||||
if (Version.sdkStrictlyBelow(5) || !Version.hasNeon() || !LinphoneManager.getInstance().hasCamera()) {
|
||||
uncheckAndDisableCheckbox(pref_video_enable_key);
|
||||
}
|
||||
if (prefs().getBoolean(LinphoneActivity.PREF_FIRST_LAUNCH,true)) {
|
||||
|
|
|
@ -25,7 +25,7 @@ import android.os.Build;
|
|||
* @author Guillaume Beraudo
|
||||
*/
|
||||
public class Version {
|
||||
|
||||
private static native boolean nativeHasNeon();
|
||||
private static final int buildVersion =
|
||||
Integer.parseInt(Build.VERSION.SDK);
|
||||
// 8; // 2.2
|
||||
|
@ -50,6 +50,8 @@ public class Version {
|
|||
} catch (Throwable e) {}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean hasNeon(){
|
||||
return nativeHasNeon();
|
||||
}
|
||||
|
||||
}
|
|
@ -1 +1 @@
|
|||
Subproject commit 749c984e862a617146869cee5b1de5de3bfc6103
|
||||
Subproject commit 47e2ef29c779dd9b1dd1e767902365c12c04a4c7
|
Loading…
Reference in a new issue