From ea7a5e6142883a0c9cf977ec58a09d8c20f5c81a Mon Sep 17 00:00:00 2001 From: heguokai <275503077@qq.com> Date: Thu, 4 Sep 2025 18:12:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DNotificationIconButton?= =?UTF-8?q?=E4=B8=ADtxet=E8=B5=8B=E5=80=BC=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: heguokai <275503077@qq.com> --- frameworks/ets/ani/src/sts_notification_content.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/ets/ani/src/sts_notification_content.cpp b/frameworks/ets/ani/src/sts_notification_content.cpp index ccbad5b3d..c6ecea8eb 100644 --- a/frameworks/ets/ani/src/sts_notification_content.cpp +++ b/frameworks/ets/ani/src/sts_notification_content.cpp @@ -294,7 +294,7 @@ ani_status UnWarpNotificationIconButton(ani_env *env, ani_object obj, Notificati } if (GetPropertyString(env, obj, "text", isUndefined, tempStr) == ANI_OK && isUndefined == ANI_FALSE) { std::string text = GetResizeStr(tempStr, STR_MAX_SIZE); - iconButton.SetName(text); + iconButton.SetText(text); } else { ANS_LOGD("UnWarpNotificationIconButton: get text failed"); } -- Gitee