From: luozheng <1732036298@qq.com> Date: Mon, 25 Mar 2024 07:32:09 +0000 (+0800) Subject: 解决删除不了录音的问题 X-Git-Tag: release_V1.2.70_20241020_135402~1250^2~13 X-Git-Url: http://git.snicker.com.cn/img/static/gitweb.css?a=commitdiff_plain;h=b90ae59700f4a7f819b2e6a8e5f07cee6e1c8478;p=mirrors%2FFD230.git 解决删除不了录音的问题 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/record/include/RecordingModel.h b/code/sdk/application/wearable/fd230app/nativeui/record/include/RecordingModel.h index 96c691022..e482a5022 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/record/include/RecordingModel.h +++ b/code/sdk/application/wearable/fd230app/nativeui/record/include/RecordingModel.h @@ -81,7 +81,7 @@ namespace OHOS void Recording_StartTimer(uint32_t interval); void Recording_StopTimer(void); char *DisplayRecordDuration(void); - + const char * GetRecordDirectory() const; private: RecordingModel(); RecordingModel(const RecordingModel &) = delete; diff --git a/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp index f3e4e3471..b96dfa169 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/record/src/RecordingModel.cpp @@ -203,8 +203,8 @@ namespace OHOS } /* - * @brief 退出录音播放界面后清除播放器资源 - */ + * @brief 退出录音播放界面后清除播放器资源 + */ void RecordingModel::ClearRecordingPlayer(void) { if (GetPlayerCtr() != nullptr) @@ -620,6 +620,10 @@ namespace OHOS return RecordingTimeAndDuration; } + const char *RecordingModel::GetRecordDirectory() const + { + return directory.c_str(); + } /* ----------------------------------- 定时器 ---------------------------------- */ // 声明定时器变量 osTimerId_t g_timer = NULL;