#include "VocassistModel.h"\r
#include "VocassistView.h"\r
#include "VocassistPresenter.h"\r
+#include "uicomponents/UIComponents.h"\r
\r
static constexpr uint16_t SWITCH_MAP_NUM = 16;\r
static constexpr uint16_t ANI_X = 84;\r
callwordContext = nullptr;\r
delete workFrame;\r
workFrame = nullptr;\r
+\r
+ (void)memset_s(storPicPathBuf, sizeof(storPicPathBuf), 0, sizeof(storPicPathBuf));\r
+ for (int i = 0; i < ANI_TOTAL_NUM; i++) {\r
+ sprintf_s(storPicPathBuf[i], sizeof(storPicPathBuf[i]),\r
+ RES_PATH"/VOICE_ASSISTANT_%02d.bin", i + 1);\r
+ ImageCacheManager::GetInstance().UnloadSingleRes((const char *)storPicPathBuf[i]);\r
+\r
+ }\r
}\r
\r
VoiceAssistance *VoiceAssistance::GetInstance()\r
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Splice failed!!");\r
return;\r
}\r
- imageAnimatorInfo[i].imagePath = (const char *)storPicPathBuf[i];\r
+ imageAnimatorInfo[i].imageInfo = ImageCacheManager::GetInstance().LoadSingleRes((const char *)storPicPathBuf[i]);\r
imageAnimatorInfo[i].pos.x = ANI_X;\r
imageAnimatorInfo[i].pos.y = ANI_Y;\r
imageAnimatorInfo[i].width = ANI_SL;\r
imageAnimatorInfo[i].height = ANI_SL;\r
- imageAnimatorInfo[i].imageType = IMG_SRC_FILE_PATH;\r
+ imageAnimatorInfo[i].imageType = IMG_SRC_IMAGE_INFO;\r
}\r
WEARABLE_LOGD(WEARABLE_LOG_MODULE_APP, "[VoiceAssistView] VoiceAssistanceInitImageAnimatorSource success!!");\r
}\r