From 9ba98d8a08ace787aa4dcb17f5cd302c783ea098 Mon Sep 17 00:00:00 2001 From: hcj <1224667075@qq.com> Date: Thu, 19 Sep 2024 16:58:05 +0800 Subject: [PATCH] =?utf8?q?=E5=A2=9E=E5=8A=A0=E9=80=9A=E8=AF=9D=E8=AE=B0?= =?utf8?q?=E5=BD=95=E5=88=A0=E9=99=A4(=E8=A1=A5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../fd230app/nativeui/phone/src/MainPhoneView.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/code/sdk/application/wearable/fd230app/nativeui/phone/src/MainPhoneView.cpp b/code/sdk/application/wearable/fd230app/nativeui/phone/src/MainPhoneView.cpp index 3fadc43d2..eb3cc077c 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/phone/src/MainPhoneView.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/phone/src/MainPhoneView.cpp @@ -201,27 +201,29 @@ namespace OHOS void MainPhoneView::deletecallloginfo(uint8_t id) { - WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%d",id); + if(id==255) { ClearCallLogFile(); NativeAbility::GetInstance().ChangeSlice(VIEW_MAIN_PHONE); return; } - id--; if(id>num) { return; } + id=num-id; + + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "%d",id); if(info[id]!=nullptr) { //updatacalllogbutton(false); for(int i=id;i