mirror of
https://github.com/openharmony/miscservices_wallpaper.git
synced 2026-07-20 22:56:53 -04:00
@@ -197,10 +197,6 @@ wallpaper.getWallpaperExtension((error, extension) => {
|
||||
console.error(` failed to getWallpaperExtensionInfo because: ` + JSON.stringify(error));
|
||||
return;
|
||||
}
|
||||
console.log(`success to getWallpaperExtensionInfo`);
|
||||
console.log(`current wallpaper extension's name: ` + extension.context.currentHapModuleInfo.name);
|
||||
console.log(`current wallpaper extension's description: ` + extension.context.currentHapModuleInfo.description);
|
||||
console.log(`current wallpaper extension's icon: ` + extension.context.currentHapModuleInfo.icon);
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
@@ -622,9 +622,9 @@ IWallpaperService::mapFD WallpaperService::GetPixelMap(int wallpaperType)
|
||||
mtx.lock();
|
||||
mapFD mapFd;
|
||||
HILOG_INFO("WallpaperService::getPixelMap --> start ");
|
||||
bool perGet = WPCheckCallingPermission(WALLPAPER_PERMISSION_NAME_SET_WALLPAPER);
|
||||
bool permissionGet = WPCheckCallingPermission(WALLPAPER_PERMISSION_NAME_SET_WALLPAPER);
|
||||
bool perUserStorage = WPCheckCallingPermission(WALLPAPER_PERMISSION_NAME_READ_USER_STORAGE);
|
||||
if (!perGet || !perUserStorage) {
|
||||
if (!permissionGet || !perUserStorage) {
|
||||
HILOG_INFO("GetPixelMap no get or no user read permission!");
|
||||
mtx.unlock();
|
||||
return mapFd;
|
||||
|
||||
Reference in New Issue
Block a user