From: luozheng <1732036298@qq.com> Date: Thu, 20 Jun 2024 03:54:25 +0000 (+0800) Subject: 声音与震动对接app修改 X-Git-Tag: release_V1.2.70_20241020_135402~977 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=437075ff108e86a71ee86acad69a4e85a6eb7cce;p=mirrors%2FFD230.git 声音与震动对接app修改 --- diff --git a/code/sdk/drivers/peripheral/config/src/ConfigModel.cpp b/code/sdk/drivers/peripheral/config/src/ConfigModel.cpp index 0a3a0a664..cabe49a5d 100644 --- a/code/sdk/drivers/peripheral/config/src/ConfigModel.cpp +++ b/code/sdk/drivers/peripheral/config/src/ConfigModel.cpp @@ -791,6 +791,7 @@ namespace OHOS void ConfigModel::SetSilentMode(bool state) { set_condigData_Bool(CONFIGMODEL_ITEM_SILENT_MODE,state); + uapi_setSilentMode(state); } /*获取静音模式是否开启*/ @@ -865,6 +866,7 @@ namespace OHOS void ConfigModel::SetSystemVolume(int value) { set_condigData_Int(CONFIGMODEL_ITEM_SYSTEM_VOLUME,value); + uapi_systemVolumeSet(value); } //获取系统音量 @@ -877,6 +879,7 @@ namespace OHOS void ConfigModel::SetCallVolume(int value) { set_condigData_Int(CONFIGMODEL_ITEM_CALL_VOLUME,value); + uapi_callVolumeSet(value); } //获取通话音量