mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-27 01:01:06 +00:00
!556 【master】修复setThumbnail函数传参问题
Merge pull request !556 from liujuan/master
This commit is contained in:
commit
c80076c80f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user