From 0bb453577f7a016e73f4ab1d0d51e57b0bbb269e Mon Sep 17 00:00:00 2001 From: suwenxiang Date: Tue, 19 Apr 2022 16:53:12 +0800 Subject: [PATCH 1/2] Description: fix font garbled on wearable device IssueNo: https://gitee.com/openharmony/applications_sample_camera/issues/I4ZRTL Feature or Bugfix: Bugfix Binary Source:No Signed-off-by: suwenxiang --- launcher/launcher/src/main/cpp/swipe_view.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/launcher/launcher/src/main/cpp/swipe_view.cpp b/launcher/launcher/src/main/cpp/swipe_view.cpp index 1fe5348..8a5025b 100755 --- a/launcher/launcher/src/main/cpp/swipe_view.cpp +++ b/launcher/launcher/src/main/cpp/swipe_view.cpp @@ -130,7 +130,9 @@ void SwipeView::OnSetUpView() if (memcmp(SCREENSAVER_BUNDLE_NAME, pBundleInfos[j].bundleName, strlen(pBundleInfos[j].bundleName)) == 0) { break; } - + if (pBundleInfos[j].abilityInfos->abilityType == SERVICE) { + break; + } AppInfo* app = new AppInfo(); app->funcclick_ = AppEvent::ClickEvent; app->funclPress_ = AppEvent::LongPressEvent; -- Gitee From 6098caf6b182aa1395ec5c5e5a461d747535c30e Mon Sep 17 00:00:00 2001 From: suwenxiang Date: Tue, 19 Apr 2022 17:01:08 +0800 Subject: [PATCH 2/2] Description: fix font garbled on wearable device IssueNo: https://gitee.com/openharmony/applications_sample_camera/issues/I4ZRTL Feature or Bugfix: Bugfix Binary Source:No Signed-off-by: suwenxiang --- launcher/launcher/src/main/cpp/swipe_view.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/launcher/launcher/src/main/cpp/swipe_view.cpp b/launcher/launcher/src/main/cpp/swipe_view.cpp index 8a5025b..e937f80 100755 --- a/launcher/launcher/src/main/cpp/swipe_view.cpp +++ b/launcher/launcher/src/main/cpp/swipe_view.cpp @@ -130,7 +130,7 @@ void SwipeView::OnSetUpView() if (memcmp(SCREENSAVER_BUNDLE_NAME, pBundleInfos[j].bundleName, strlen(pBundleInfos[j].bundleName)) == 0) { break; } - if (pBundleInfos[j].abilityInfos->abilityType == SERVICE) { + if (pBundleInfos[j].abilityInfos->abilityType == SERVICE) { break; } AppInfo* app = new AppInfo(); -- Gitee