Commit e00b5f13 authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Fixed DTMF mode in call settings

parent 554a868b
Pipeline #11851 passed with stages
in 6 minutes and 19 seconds
......@@ -144,8 +144,10 @@ public class CallSettingsFragment extends SettingsFragment {
new SettingListenerBase() {
@Override
public void onBoolValueChanged(boolean newValue) {
if (newValue) mDtmfRfc2833.setChecked(false);
mPrefs.sendDTMFsAsSipInfo(newValue);
if (!newValue && !mDtmfRfc2833.isChecked()) {
mDtmfRfc2833.setChecked(true);
}
}
});
......@@ -153,8 +155,10 @@ public class CallSettingsFragment extends SettingsFragment {
new SettingListenerBase() {
@Override
public void onBoolValueChanged(boolean newValue) {
if (newValue) mDtmfSipInfo.setChecked(false);
mPrefs.sendDtmfsAsRfc2833(newValue);
if (!newValue && !mDtmfSipInfo.isChecked()) {
mDtmfRfc2833.setChecked(true);
}
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment