From: luozheng <1732036298@qq.com> Date: Wed, 28 Feb 2024 01:32:55 +0000 (+0800) Subject: 因功能键跳转血氧界面会出现死机,修改功能键默认跳转applist界面 X-Git-Tag: release_V1.2.70_20241020_135402~1298^2~4 X-Git-Url: http://git.snicker.com.cn/Users/apple/Desktop/static/gitweb.css?a=commitdiff_plain;h=f59fa7e7080f4a19b4d10541e6e1dbfc991491b8;p=mirrors%2FFD230.git 因功能键跳转血氧界面会出现死机,修改功能键默认跳转applist界面 --- diff --git a/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp b/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp index 2a1314bf9..80522d2e0 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/key/src/KeyInputListener.cpp @@ -132,12 +132,12 @@ void KeyInputListener::OnKeyRelease(const KeyEvent& event) // 切换到用户配置的快捷卡片 if(SecondaryFunctionModel::GetInstance()->GetHeartRateOrBloodOxygenQuickAccessSwitch() == true) { - NativeAbility::GetInstance().ChangeSlice(VIEW_BLOODOXY, TRANSITION_ZOOM); + NativeAbility::GetInstance().ChangeSlice(VIEW_APPLIST, TRANSITION_ZOOM); } else { //之后需要将VIEW_APPLIST改成心率的SliceID - NativeAbility::GetInstance().ChangeSlice(VIEW_APPLIST, TRANSITION_ZOOM); + NativeAbility::GetInstance().ChangeSlice(VIEW_SETTING, TRANSITION_ZOOM); } } } diff --git a/code/sdk/application/wearable/fd230app/nativeui/secondaryfunction/src/SecondaryFunctionPresenter.cpp b/code/sdk/application/wearable/fd230app/nativeui/secondaryfunction/src/SecondaryFunctionPresenter.cpp index 6bc613888..7375fb302 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/secondaryfunction/src/SecondaryFunctionPresenter.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/secondaryfunction/src/SecondaryFunctionPresenter.cpp @@ -39,7 +39,7 @@ namespace OHOS } if (state != 0) { - p_QuickAccessView->HeartRateOrBloodOxygenQuickAccessRadioButtonSelectStateSet(1); + p_QuickAccessView->HeartRateOrBloodOxygenQuickAccessRadioButtonSelectStateSet(state); SecondaryFunctionModel::GetInstance()->KeepHeartRateOrBloodOxygenQuickAccessRadioButtonSelectState(0); } else