pref: use AAC-ELD title instead of mpeg4-generic (mime-type)
This commit is contained in:
parent
4e665df2e0
commit
1105425508
2 changed files with 20 additions and 5 deletions
|
@ -427,6 +427,21 @@ public class SettingsFragment extends PreferencesListFragment implements EcCalib
|
|||
for (final PayloadType pt : lc.getAudioCodecs()) {
|
||||
CheckBoxPreference codec = new CheckBoxPreference(LinphoneService.instance());
|
||||
codec.setTitle(pt.getMime());
|
||||
/* Special case */
|
||||
if (pt.getMime().equals("mpeg4-generic")) {
|
||||
if (android.os.Build.VERSION.SDK_INT < 16) {
|
||||
/* Make sure AAC is disabled */
|
||||
try {
|
||||
lc.enablePayloadType(pt, false);
|
||||
} catch (LinphoneCoreException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
continue;
|
||||
} else {
|
||||
codec.setTitle("AAC-ELD");
|
||||
}
|
||||
}
|
||||
|
||||
codec.setSummary(pt.getRate() + " Hz");
|
||||
codec.setChecked(lc.isPayloadTypeEnabled(pt));
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 182d7989d8f4426c2a78e548647f00d57040c98a
|
||||
Subproject commit deaaf0a19b20f55ad258fb4a6b95a84af32146cc
|
Loading…
Reference in a new issue