From: Caisking <3449750381@qq.com> Date: Tue, 12 Dec 2023 08:03:44 +0000 (+0800) Subject: 同步代码 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=bc86e20e35b3c320f42ea34b26c6d84c2d462586;p=mirrors%2FFD230.git 同步代码 --- 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;