Use hasFastCpu() method.
This commit is contained in:
parent
f37be81e91
commit
cc4668438f
2 changed files with 2 additions and 2 deletions
|
@ -1111,7 +1111,7 @@ public final class LinphoneManager implements LinphoneCoreListener {
|
||||||
public void initializePayloads() {
|
public void initializePayloads() {
|
||||||
Log.i("Initializing supported payloads");
|
Log.i("Initializing supported payloads");
|
||||||
Editor e = mPref.edit();
|
Editor e = mPref.edit();
|
||||||
boolean fastCpu = Version.isArmv7();
|
boolean fastCpu = Version.hasFastCpu();
|
||||||
|
|
||||||
e.putBoolean(getString(R.string.pref_codec_gsm_key), true);
|
e.putBoolean(getString(R.string.pref_codec_gsm_key), true);
|
||||||
e.putBoolean(getString(R.string.pref_codec_pcma_key), true);
|
e.putBoolean(getString(R.string.pref_codec_pcma_key), true);
|
||||||
|
|
|
@ -251,7 +251,7 @@ public class PreferencesActivity extends LinphonePreferencesActivity implements
|
||||||
elPref = (CheckBoxPreference) findPreference(pref_echo_limiter_key);
|
elPref = (CheckBoxPreference) findPreference(pref_echo_limiter_key);
|
||||||
mencPref = (ListPreference) findPreference(pref_media_encryption_key);
|
mencPref = (ListPreference) findPreference(pref_media_encryption_key);
|
||||||
|
|
||||||
boolean fastCpu = Version.isArmv7();
|
boolean fastCpu = Version.hasFastCpu();
|
||||||
if (fastCpu) {
|
if (fastCpu) {
|
||||||
detectAudioCodec(pref_codec_ilbc_key, "iLBC", 8000, false);
|
detectAudioCodec(pref_codec_ilbc_key, "iLBC", 8000, false);
|
||||||
findPreference(pref_codec_speex16_key).setEnabled(true);
|
findPreference(pref_codec_speex16_key).setEnabled(true);
|
||||||
|
|
Loading…
Reference in a new issue