From 6594b0879feb40a0620f39aba92460a58859f9bd Mon Sep 17 00:00:00 2001 From: xue <2144439972@qq.com> Date: Sat, 20 Sep 2025 22:14:38 +0800 Subject: [PATCH] =?utf8?q?=E5=AF=B9=E8=AF=9D=E7=95=8C=E9=9D=A2=E4=B8=8D?= =?utf8?q?=E6=81=AF=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../nativeui/thunderbird/src/ThunderBirdDialogueView.cpp | 4 ++++ .../nativeui/thunderbird/src/ThunderBirdMainView.cpp | 1 + .../nativeui/thunderbird/src/ThunderBirdReminderView.cpp | 2 ++ 3 files changed, 7 insertions(+) diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp index 551d3e488..2a837b370 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdDialogueView.cpp @@ -163,14 +163,17 @@ namespace OHOS { case THUNDERBIRD_DIALOGUEVIEW_SPEAKING: { + ScreenAlwaysOnCtr(OPEN_SCREEN_ALWAYS_ON); if (TextLabel) { TextLabel->SetPosition(0, 64, 360, 42); + TextLabel->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER); TextLabel->SetVisible(true); } if (TextLabel_Y) { TextLabel_Y->SetPosition(2, 66, 360, 42); + TextLabel_Y->SetAlign(TEXT_ALIGNMENT_CENTER, TEXT_ALIGNMENT_CENTER); TextLabel_Y->SetVisible(true); } if(ThunderBirdModel::GetInstance()->IsTextEmpty() == true) @@ -188,6 +191,7 @@ namespace OHOS } case THUNDERBIRD_DIALOGUEVIEW_LISTENING: { + ScreenAlwaysOnCtr(OPEN_SCREEN_ALWAYS_ON); if (TextLabel) { TextLabel->SetPosition(111, 64, 180, 42); diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp index a3d4b9b8d..62482c168 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdMainView.cpp @@ -569,6 +569,7 @@ namespace OHOS // 同用遮罩,部分界面在内部自行开启,其余界面关闭 iconView->SetVisible(false); backGroundView->SetVisible(false); + ScreenAlwaysOnCtr(CANCEL_SCREEN_ALWAYS_ON); // 关闭屏幕常亮 // 保存上一级视图信息 prevView_ = currentView_; prevSubView_ = currentSubView_; diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdReminderView.cpp b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdReminderView.cpp index a91b3c7f6..2cd468702 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdReminderView.cpp +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdReminderView.cpp @@ -3,6 +3,7 @@ #include "thunderbird/include/ThunderBirdMainView.h" #include "battery_hal.h" #include "battery_service.h" +#include "audio_manager.h" namespace OHOS { static ThunderBirdReminderView *g_pThunderBirdReminderView{nullptr}; @@ -398,6 +399,7 @@ namespace OHOS if (value < 0) { value = 0; } if (value > 100) { value = 100; } remindProgressValue_ = value; + AudioManager::GetInstance().SetVolume(AUDIO_STREAM_MUSIC, remindProgressValue_); VolumeProgress->SetValue(remindProgressValue_); VolumeProgress->Invalidate(); } -- 2.17.1