From: Caisking <3449750381@qq.com> Date: Thu, 17 Oct 2024 12:54:09 +0000 (+0800) Subject: 心率:优化错误弹窗 X-Git-Tag: release_V1.2.70_20241020_135402~20 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=refs%2Fchanges%2F1212%2F3;p=mirrors%2FFD230.git 心率:优化错误弹窗 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckAbnormalPresenter.cpp b/code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckAbnormalPresenter.cpp index e044d9f69..60aebf4d2 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckAbnormalPresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckAbnormalPresenter.cpp @@ -82,7 +82,7 @@ namespace OHOS if (strcmp(view.GetViewId(), CLICK_BLOOD_STOP) == 0) { - NativeAbility::GetInstance().Back(TransitionType::TRANSITION_ZOOM); + NativeAbility::GetInstance().Back(); } if (strcmp(view.GetViewId(), CLICK_BLOOD_RE) == 0) { @@ -93,16 +93,18 @@ namespace OHOS HealthState highHealthState; highHealthState.checkType = CHARGE; HealthService::GetInstance()->SetHealthCurrent(highHealthState); - NativeAbility::GetInstance().ChangeSlice(VIEW_CHECK_INVALID, TransitionType::TRANSITION_ZOOM); + NativeAbility::GetInstance().ChangeSlice(VIEW_CHECK_INVALID); return true; } // 回到上一个检测界面 uint16 preSlice = NativeAbility::GetInstance().GetPreSliceId(); + WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "preSlice %d", preSlice); + if (preSlice == VIEW_MAIN) { MainModel::GetInstance().SetFromSetCardView(true); MainModel::GetInstance().SetFromCardId(HEART_RATE); } - NativeAbility::GetInstance().ChangeSlice(preSlice, TransitionType::TRANSITION_ZOOM); + NativeAbility::GetInstance().ChangeSlice(preSlice); } return true; } diff --git a/code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckInvalidPresenter.cpp b/code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckInvalidPresenter.cpp index 693baf7a8..7f03b6842 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckInvalidPresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/heart_blood/CheckInvalidPresenter.cpp @@ -81,7 +81,7 @@ namespace OHOS if (strcmp(view.GetViewId(), CLICK_HEALTH_KONW) == 0) { - NativeAbility::GetInstance().Back(TransitionType::TRANSITION_ZOOM); + NativeAbility::GetInstance().Back(); } return true; }