Fixed negative gain not allowed in audio settings

This commit is contained in:
Sylvain Berfini 2022-02-22 13:17:05 +01:00
parent 0f3dba4d38
commit 646ed09f2b
2 changed files with 5 additions and 2 deletions

View file

@ -12,6 +12,9 @@ Group changes to describe their impact on the project, as follows:
## [4.7.0] - Unreleased
### Fixed
- Negative gain in audio settings is allowed again
## [4.6.1] - 2022-02-14
### Fixed

View file

@ -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}"/>
<include
layout="@layout/settings_widget_text"
@ -137,7 +137,7 @@
linphone:subtitle="@{@string/audio_settings_playback_gain_summary}"
linphone:listener="@{viewModel.playbackGainListener}"
linphone:defaultValue="@{viewModel.playbackGain.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}"/>
<TextView
style="@style/settings_category_font"