!556 【master】修复setThumbnail函数传参问题

Merge pull request !556 from liujuan/master
This commit is contained in:
openharmony_ci 2024-04-17 02:42:11 +00:00 committed by Gitee
commit c80076c80f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -367,7 +367,7 @@ export struct ThirdSelectPhotoBrowserBase {
let dataImpl: PhotoDataImpl | undefined = BrowserDataFactory.getFeature(BrowserDataFactory.TYPE_PHOTO) as PhotoDataImpl | undefined;
dataImpl?.getDataByUri(this.editNewUri).then((fileAsset: userFileManager.FileAsset | undefined): void => {
this.newMediaItem = new MediaItem(fileAsset);
this.newMediaItem.setThumbnail(dataImpl?.getThumbnailSafe(this.newMediaItem.uri, this.newMediaItem.path, this.newMediaItem.getDateModified()));
this.newMediaItem.setThumbnail(dataImpl?.getThumbnailSafe(this.newMediaItem.uri, this.newMediaItem.path));
this.editNewUri = '';
this.updateSelectItemByNewEditItem(this.newMediaItem, this.currentIndex);