修复勿扰模式Slice图标消失问题
authorluozheng <1732036298@qq.com>
Mon, 26 Aug 2024 09:42:10 +0000 (17:42 +0800)
committerluozheng <1732036298@qq.com>
Mon, 26 Aug 2024 09:42:10 +0000 (17:42 +0800)
code/sdk/application/wearable/fd230app/nativeui/dnotdisturb/src/DnotDisturbView.cpp

index ef60f68..7dea6f5 100644 (file)
@@ -2,7 +2,7 @@
  * @Author: luozheng 1732036298@qq.com
  * @Date: 2024-04-10 11:58:21
  * @LastEditors: luozheng 1732036298@qq.com
- * @LastEditTime: 2024-08-10 10:59:45
+ * @LastEditTime: 2024-08-26 17:39:08
  * @FilePath: /FD230/code/sdk/application/wearable/fd230app/nativeui/dnotdisturb/src/DnotDisturbView.cpp
  */
 #include "dnotdisturb/include/DnotDisturbView.h"
@@ -17,7 +17,6 @@
 namespace OHOS
 {
 
-    static constexpr const char *DROPDOWN_DNOTDISTURB_IMAGE = "/user/res/dropdown/DROPDOWN_DNOTDISTURB.bin";
     static DnotDisturbView *g_pDnotDisturbView{nullptr};
 
     DnotDisturbView::DnotDisturbView()
@@ -124,8 +123,8 @@ namespace OHOS
             DnotDisturbImage->SetStyle(STYLE_BACKGROUND_OPA, 0xff);
             DnotDisturbImage->SetStyle(STYLE_BORDER_RADIUS, 100);
             DnotDisturbImage->SetAutoEnable(false);
-            DnotDisturbImage->SetResizeMode(UIImageView::CENTER);
-            DnotDisturbImage->SetSrc(DROPDOWN_DNOTDISTURB_IMAGE);
+            DnotDisturbImage->SetResizeMode(UIImageView::FILL);
+            DnotDisturbImage->SetSrc(PNG_APPLIST_DISTURB_IMAGE);
             /* -------------------------------------------------------------------------- */
             AttentionLabel = new UILabelExt();
             if (AttentionLabel == nullptr)