From 437075ff108e86a71ee86acad69a4e85a6eb7cce Mon Sep 17 00:00:00 2001 From: luozheng <1732036298@qq.com> Date: Thu, 20 Jun 2024 11:54:25 +0800 Subject: [PATCH] =?utf8?q?=E5=A3=B0=E9=9F=B3=E4=B8=8E=E9=9C=87=E5=8A=A8?= =?utf8?q?=E5=AF=B9=E6=8E=A5app=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- code/sdk/drivers/peripheral/config/src/ConfigModel.cpp | 3 +++ 1 file changed, 3 insertions(+) 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); } //获取通话音量 -- 2.17.1