From deed9d5c72a1bf958f4b9a17a3f3a2e91e834d9c Mon Sep 17 00:00:00 2001 From: Caisking <3449750381@qq.com> Date: Wed, 26 Jun 2024 15:28:57 +0800 Subject: [PATCH] =?utf8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E5=8D=A1?= =?utf8?q?=E7=89=87=E5=8A=9F=E8=83=BD=E5=BC=82=E5=B8=B8=EF=BC=9B=E5=8D=A1?= =?utf8?q?=E7=89=87=E7=AE=A1=E7=90=86=E9=9C=80=E8=A6=81=E9=87=8D=E6=9E=84?= =?utf8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../wearable/fd230app/nativelauncher/include/UiConfig.h | 2 +- .../wearable/fd230app/nativeui/main/src/MainModel.cpp | 1 + .../wearable/fd230app/nativeui/main/src/MainViewSample.cpp | 4 ++-- .../test/hert/maincard/SleepCard.png:Zone.Identifier | 3 --- 4 files changed, 4 insertions(+), 6 deletions(-) delete mode 100644 tools/image_converter_tool/test/hert/maincard/SleepCard.png:Zone.Identifier diff --git a/code/sdk/application/wearable/fd230app/nativelauncher/include/UiConfig.h b/code/sdk/application/wearable/fd230app/nativelauncher/include/UiConfig.h index 28b74ea27..d8dfa8d27 100644 --- a/code/sdk/application/wearable/fd230app/nativelauncher/include/UiConfig.h +++ b/code/sdk/application/wearable/fd230app/nativelauncher/include/UiConfig.h @@ -18,13 +18,13 @@ namespace OHOS typedef enum { WATCH_FACE = 0, /* 主表盘枚举值不能修改 */ + SETCARD, HEART_RATE, COMPASS, MUSIC_PLAYER, BLOODOXGEN, WEATHER, TRAINING, - SETCARD, GOAL, SLEEP, MAX_CARD, diff --git a/code/sdk/application/wearable/fd230app/nativeui/main/src/MainModel.cpp b/code/sdk/application/wearable/fd230app/nativeui/main/src/MainModel.cpp index ccacb182e..bb5a7d56e 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/main/src/MainModel.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/main/src/MainModel.cpp @@ -17,6 +17,7 @@ namespace OHOS static const int DIAL_SETTING_VALUE_LEN = 64; // 更新主界面卡片需要更新Map const CardInfo cardInfoMap[] = { + {SETCARD, PNG_SET_CARD_MAIN}, {HEART_RATE, PNG_SET_CARD_HEART}, {COMPASS, PNG_SET_CARD_COMPASS}, {MUSIC_PLAYER, PNG_SET_CARD_PLAYER}, diff --git a/code/sdk/application/wearable/fd230app/nativeui/main/src/MainViewSample.cpp b/code/sdk/application/wearable/fd230app/nativeui/main/src/MainViewSample.cpp index d3eac908a..de7352644 100644 --- a/code/sdk/application/wearable/fd230app/nativeui/main/src/MainViewSample.cpp +++ b/code/sdk/application/wearable/fd230app/nativeui/main/src/MainViewSample.cpp @@ -30,13 +30,13 @@ namespace OHOS // 严格按照Id对应 static const MainViewMapper CardMapper[] = { {WATCH_FACE, &MainViewSample::InitWatchFacePage}, + {SETCARD, &MainViewSample::InitSetMainPage}, {HEART_RATE, &MainViewSample::InitHeartRatePage}, {COMPASS, &MainViewSample::InitCompassPage}, {MUSIC_PLAYER, &MainViewSample::InitMusicPlayerPage}, {BLOODOXGEN, &MainViewSample::InitBloodOxygenPage}, {WEATHER, &MainViewSample::InitWeatherPage}, {TRAINING, &MainViewSample::InitTrainingPage}, - {SETCARD, &MainViewSample::InitSetMainPage}, {GOAL, &MainViewSample::InitGoalPage}, {SLEEP, &MainViewSample::InitSleepPage}, @@ -215,7 +215,7 @@ namespace OHOS VertViewLoad(); mainSwipeGroup->SetPosition(0, 0, Screen::GetInstance().GetWidth(), Screen::GetInstance().GetHeight()); mainSwipeGroup->SetAnimatorTime(50); // 50: animator drag time(ms); - mainSwipeGroup->SetLoopState(false); // 关闭主界面循环 + mainSwipeGroup->SetLoopState(true); // 关闭主界面循环 mainSwipeGroup->EnableScreenCap(true); mainSwipeGroup->RegisterSwipeCallback(callback); if (presenter_->IsFromSetCardView()) diff --git a/tools/image_converter_tool/test/hert/maincard/SleepCard.png:Zone.Identifier b/tools/image_converter_tool/test/hert/maincard/SleepCard.png:Zone.Identifier deleted file mode 100644 index 053d1127c..000000000 --- a/tools/image_converter_tool/test/hert/maincard/SleepCard.png:Zone.Identifier +++ /dev/null @@ -1,3 +0,0 @@ -[ZoneTransfer] -ZoneId=3 -HostUrl=about:internet -- 2.17.1