声音与震动对接app修改
authorluozheng <1732036298@qq.com>
Thu, 20 Jun 2024 03:54:25 +0000 (11:54 +0800)
committerluozheng <1732036298@qq.com>
Thu, 20 Jun 2024 03:54:25 +0000 (11:54 +0800)
code/sdk/drivers/peripheral/config/src/ConfigModel.cpp

index 0a3a0a6..cabe49a 100644 (file)
@@ -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);
     }
     
     //获取通话音量