mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-23 15:10:25 +00:00
update product/phone/src/main/ets/view/PhotoBrowserComponent.ets.
Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
parent
fc200072f4
commit
868d4b82e2
@ -138,6 +138,7 @@ export struct PhotoBrowserComponent {
|
||||
private theDeleteItem: MediaItem;
|
||||
private geometryTransitionEnable: boolean = false;
|
||||
private isShowMenuFromThirdView: boolean = true;
|
||||
private isFromTrash = false;
|
||||
|
||||
onPageChanged() {
|
||||
Log.info(TAG, `call page status changed ${this.pageStatus}`)
|
||||
@ -763,6 +764,7 @@ export struct PhotoBrowserComponent {
|
||||
this.isFromFACard = true;
|
||||
this.geometryTransitionEnable = true;
|
||||
} else if (this.pageFrom == Constants.ENTRY_FROM.RECYCLE) {
|
||||
this.isFromTrash = true;
|
||||
this.dataSource.setAlbumUri(this.albumUri);
|
||||
this.dataSource.setAlbumDataSource(AppStorage.Get(Constants.APP_KEY_PHOTO_BROWSER));
|
||||
} else if (this.pageFrom == Constants.ENTRY_FROM.DISTRIBUTED) {
|
||||
@ -1194,8 +1196,7 @@ export struct PhotoBrowserComponent {
|
||||
PhotoBrowserToolBar({
|
||||
onMenuClicked: this.onMenuClicked.bind(this),
|
||||
isFromPhotoBrowser: true,
|
||||
isFromCamera: this.isFromCamera,
|
||||
isFromFACard: this.isFromFACard
|
||||
isFromTrash: this.isFromTrash
|
||||
})
|
||||
.opacity(this.geometryOpacity)
|
||||
// @ts-ignore
|
||||
|
Loading…
Reference in New Issue
Block a user