From bc86e20e35b3c320f42ea34b26c6d84c2d462586 Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Tue, 12 Dec 2023 16:03:44 +0800 Subject: [PATCH] =?utf8?q?=E5=90=8C=E6=AD=A5=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/nativeapp/nativeui/player/src/PlayersView.cpp | 4 ++++ .../nativeapp/nativeui/screensetting/include/ScreenModels.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/code/sdk/application/wearable/nativeapp/nativeui/player/src/PlayersView.cpp b/code/sdk/application/wearable/nativeapp/nativeui/player/src/PlayersView.cpp index 50b85e871..1522244ce 100755 --- a/code/sdk/application/wearable/nativeapp/nativeui/player/src/PlayersView.cpp +++ b/code/sdk/application/wearable/nativeapp/nativeui/player/src/PlayersView.cpp @@ -286,6 +286,9 @@ int PlayersView::ShowUpCheckBoxButton() WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "playerlistener new fail"); return OHOS_FAILURE; } + + playerButton->SetState(UICheckBox::UICheckBoxState::SELECTED); + playerButton->SetPosition(140, 139, 172, 172); // 140:x 139:y 172:width 172:height playerButton->SetOnClickListener(playerlistener); image = ImageCacheManager::GetInstance().LoadOneInMultiRes(PLAYER_PLAYER, PLAYER_IAMGES); @@ -585,6 +588,7 @@ bool PlayersView::InitView(void) ShowUpListView(); SetTouchable(true); SetDraggable(true); + return true; } diff --git a/code/sdk/application/wearable/nativeapp/nativeui/screensetting/include/ScreenModels.h b/code/sdk/application/wearable/nativeapp/nativeui/screensetting/include/ScreenModels.h index 593a5bd08..14da46d44 100755 --- a/code/sdk/application/wearable/nativeapp/nativeui/screensetting/include/ScreenModels.h +++ b/code/sdk/application/wearable/nativeapp/nativeui/screensetting/include/ScreenModels.h @@ -13,11 +13,11 @@ namespace OHOS { typedef enum { - WATCH_FACE = 0, + MUSIC_PLAYER = 0, HEART_RATE, COMPASS, ACTIVITY, - MUSIC_PLAYER, + MWATCH_FACE, MAX_CARD, } CardId; -- 2.17.1