mirror of
https://gitee.com/openharmony/applications_launcher
synced 2024-11-23 06:50:02 +00:00
桌面显示分层图标
Signed-off-by: lanpangzii <herunsong2@h-partners.com>
This commit is contained in:
parent
bbda98a584
commit
df85df183b
@ -80,7 +80,7 @@ export class ResourceManager {
|
||||
let imageDescriptor: DrawableDescriptor = (resMgr.getDrawableDescriptor(Number(iconId), undefined));
|
||||
let value: image.PixelMap = imageDescriptor.getPixelMap();
|
||||
if (imageDescriptor instanceof LayeredDrawableDescriptor) {
|
||||
Log.showDebug(TAG, `updateIconCache layered iconValue:${JSON.stringify(value)}`);
|
||||
Log.showDebug(TAG, 'updateIconCache layered icon');
|
||||
this.setAppResourceCache(cacheKey, KEY_ICON, value);
|
||||
} else {
|
||||
let moduleContext = globalThis.desktopContext.createModuleContext(bundleName, moduleName);
|
||||
@ -90,7 +90,7 @@ export class ResourceManager {
|
||||
await moduleContext.resourceManager
|
||||
.getMediaBase64(iconId)
|
||||
.then((value) => {
|
||||
Log.showDebug(TAG, `updateIconCache iconValue:${value}`);
|
||||
Log.showDebug(TAG, 'updateIconCache normal icon');
|
||||
if (value != null) {
|
||||
this.setAppResourceCache(cacheKey, KEY_ICON, value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user