From: xue <2144439972@qq.com> Date: Wed, 22 Oct 2025 01:46:22 +0000 (+0800) Subject: 增加解绑提示 X-Git-Tag: V1.0.9_20251128_194606_LN~185 X-Git-Url: http://git.snicker.com.cn/?a=commitdiff_plain;h=8d71467c113fbd41b21ef59ff8e6bedbf8fd8e19;p=mirrors%2FFD230.git 增加解绑提示 --- diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdAdjustView.h b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdAdjustView.h index 9a1062d68..70bc05263 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdAdjustView.h +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdAdjustView.h @@ -92,6 +92,7 @@ namespace OHOS void ClearAll(void); void Show(int16_t showView); void UpdateTaskReminderText(const char* text); + void ShowUnbindWarning(); enum : int16_t { THUNDERBIRD_ADJUSTVIEW_BIND_SUCCESS = 0, // 绑定成功 diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdGuideView.h b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdGuideView.h index 8456fdefa..b809a4374 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdGuideView.h +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdGuideView.h @@ -20,6 +20,7 @@ namespace OHOS void ClearAll(void); void Show(int16_t showView); void UpdateQrcode(); + void UpdateTextLabel(const char* text); enum : int16_t { THUNDERBIRD_GUIDEVIEW_1 = 0, diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp index 4a7d6d1f9..dd603ab08 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp @@ -705,6 +705,11 @@ namespace OHOS WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ThunderBirdPresenter::HandleFuncKeyLongPress"); ThunderBirdMainView::GetInstance()->ChangeView(currentView, THUNDERBIRD_LULLABYVIEW, ThunderBirdLullabyView::THUNDERBIRD_LULLABYVIEW_5); } + else if(currentView == THUNDERBIRD_GUIDEVIEW) + { + ThunderBirdMainView::GetInstance()->ChangeView(currentView, THUNDERBIRD_GUIDEVIEW, ThunderBirdGuideView::THUNDERBIRD_GUIDEVIEW_3); + ThunderBirdGuideView::GetInstance()->UpdateTextLabel("先小程序扫码绑定\n才能开始对话哦~"); + } } }