From: Caisking <3449750381@qq.com> Date: Fri, 5 Jul 2024 08:46:39 +0000 (+0800) Subject: 修复主界面不刷新 X-Git-Tag: release_V1.2.70_20241020_135402~844 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F465%2Fhead;p=mirrors%2FFD230.git 修复主界面不刷新 --- diff --git a/code/sdk/application/wearable/nativeabilityfwk/src/Ability.cpp b/code/sdk/application/wearable/nativeabilityfwk/src/Ability.cpp index 7daacf004..8d5467b82 100755 --- a/code/sdk/application/wearable/nativeabilityfwk/src/Ability.cpp +++ b/code/sdk/application/wearable/nativeabilityfwk/src/Ability.cpp @@ -118,9 +118,11 @@ ListsNode* Ability::Find(const uint16_t sliceId) */ void Ability::ChangeSlice(const uint16_t targetSliceId, TransitionType type, const uint16_t priority) { - if (GetCurSliceId() == targetSliceId) { + /* + if (GetCurSliceId() == targetSliceId) { return; - } + } + */ if (osal_atomic_read(&transitionCount_) <= 0) { osal_atomic_inc(&transitionCount_); // onStop释放当前页面需要和当前页面的事件监听异步执行,否则会出现自己杀掉自己的情况 diff --git a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp index 809b41fab..f3f9edd31 100644 --- a/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp +++ b/code/sdk/application/wearable/service/msg_center/src/msg_center_customer.cpp @@ -954,7 +954,7 @@ void MsgCenterNotifyDrinkReminderProc(const Topic topic, Request *req) break; } } - +//每日训练 void MsgCenterNotifyActivityProc(const Topic topic, Request* req) { unused(topic);