From 6e13bc9aad6960aaf081da1f70c27247d96f8537 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 22 Feb 2022 13:17:05 +0100 Subject: [PATCH] Fixed negative gain not allowed in audio settings --- CHANGELOG.md | 3 +++ app/src/main/res/layout/settings_audio_fragment.xml | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f55da3c2e..aa1290ee5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,9 @@ Group changes to describe their impact on the project, as follows: ### Changed - Contacts lists now show LDAP contacts if any, as well as "generated" contacts from SIP addresses you have interacted with +### Fixed +- Negative gain in audio settings is allowed again + ## [4.6.1] - 2022-02-14 ### Fixed diff --git a/app/src/main/res/layout/settings_audio_fragment.xml b/app/src/main/res/layout/settings_audio_fragment.xml index 75fa5a969..36cb83651 100644 --- a/app/src/main/res/layout/settings_audio_fragment.xml +++ b/app/src/main/res/layout/settings_audio_fragment.xml @@ -129,7 +129,7 @@ linphone:subtitle="@{@string/audio_settings_microphone_gain_summary}" linphone:listener="@{viewModel.microphoneGainListener}" linphone:defaultValue="@{viewModel.microphoneGain.toString()}" - linphone:inputType="@{InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_DECIMAL}"/> + linphone:inputType="@{InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_SIGNED | InputType.TYPE_NUMBER_FLAG_DECIMAL}"/> + linphone:inputType="@{InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_FLAG_SIGNED | InputType.TYPE_NUMBER_FLAG_DECIMAL}"/>