*/
#include "common/image_cache_manager.h"
+#include "imgdecode/cache_manager.h"
#include "ui_resource_image.h"
#include <ui_scroll_view.h>
#include "components/ui_button.h"
GRAPHIC_LOGE("surfaceView is nullptr\n");
return;
}
- colorKey_.full = 0xff202020;
+ colorKey_.full = 0xffecdbd4;
surfaceView_->SetViewId("sur");
surfaceView_->SetPosition(0, 0, VIDEO_WIDTH, VIDEO_HEIGHT);
surfaceView_->SetStyle(STYLE_BACKGROUND_COLOR, Color::Black().full);
WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "ThunderBirdMainView::SwitchIconImage: Switching to image: %s", imagePath);
+
+ // 清除图片缓存,确保重新加载
+ CacheManager::GetInstance().Close(imagePath);
+
+ // 设置新的图片源
iconView->SetSrc(imagePath);
iconView->Invalidate();
}