解决applist弧形列表JS应用名字被修改问题 1772/1 1772/head 1773/target/1
authorluozheng <1732036298@qq.com>
Tue, 20 May 2025 10:01:28 +0000 (18:01 +0800)
committerluozheng <1732036298@qq.com>
Tue, 20 May 2025 10:01:28 +0000 (18:01 +0800)
code/sdk/application/wearable/fd230/nativeapp/nativeui/applist/src/AppItemView.cpp

index ec02338..8663911 100644 (file)
@@ -173,7 +173,12 @@ namespace OHOS {
     {
         itemInfo_ = itemInfo;
         image_->SetSrc(itemInfo.iconSmall);
-        label_->SetTextId(itemInfo.TextId);
+        if(VIEW_EXTERN_APP != itemInfo.id) {
+            label_->SetTextId(itemInfo.TextId);
+        } else {
+            // printf("ArcScaleListItemView::SetItemInfo:%s\r\n",itemInfo.label);
+            label_->SetText(itemInfo.label);
+        }
     }
 
     void ArcScaleListItemView::SetUpChild()