change readme

Signed-off-by: liulinna4 <liulinna4@huawei.com>
This commit is contained in:
liulinna4
2022-03-16 09:54:28 +08:00
parent b2e8545c2f
commit e59cc0e2fb
2 changed files with 2 additions and 6 deletions
-4
View File
@@ -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);
});
```
+2 -2
View File
@@ -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;