Save configuratio change before auto language setting 97/280597/1
authorSuyeon Hwang <stom.hwang@samsung.com>
Thu, 1 Sep 2022 05:02:14 +0000 (14:02 +0900)
committerSuyeon Hwang <stom.hwang@samsung.com>
Thu, 1 Sep 2022 05:02:14 +0000 (14:02 +0900)
commit62458e2f4c6eaa2787bfb0945edfde0b3f1bff22
tree64337665e39d9192be2006c04aa5d44abf15797c
parent01dbb0c6e98ae4b1a365c9ce573c17b237e2a4eb
Save configuratio change before auto language setting

- Issue:
Setting API did not save the change of auto voice enabling
configuration.

- Solution:
The configuration is stored in memory by tts_parser_set_config_info() and
stored in configuration file by other functions from tts_parser module.
However, in current logic for change auto voice configuration,
tts_config_mgr_set_auto_voice() function tries to store configuration
file without storing memory when the auto voice is true. This may cause
the situation that the memory and file are not matched.
So this patch makes the function store the configuration in memory
first.

Change-Id: I9602bcc9cbc3aad0e56fad068e159b144b0d1ab9
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
common/tts_config_mgr.c