mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-27 09:12:32 +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
0835e45afb
commit
399a3ea883
@ -138,7 +138,6 @@ export struct PhotoBrowserComponent {
|
|||||||
private theDeleteItem: MediaItem;
|
private theDeleteItem: MediaItem;
|
||||||
private geometryTransitionEnable: boolean = false;
|
private geometryTransitionEnable: boolean = false;
|
||||||
private isShowMenuFromThirdView: boolean = true;
|
private isShowMenuFromThirdView: boolean = true;
|
||||||
private isFromTrash = false;
|
|
||||||
|
|
||||||
onPageChanged() {
|
onPageChanged() {
|
||||||
Log.info(TAG, `call page status changed ${this.pageStatus}`)
|
Log.info(TAG, `call page status changed ${this.pageStatus}`)
|
||||||
@ -766,7 +765,6 @@ export struct PhotoBrowserComponent {
|
|||||||
this.isFromFACard = true;
|
this.isFromFACard = true;
|
||||||
this.geometryTransitionEnable = true;
|
this.geometryTransitionEnable = true;
|
||||||
} else if (this.pageFrom == Constants.ENTRY_FROM.RECYCLE) {
|
} else if (this.pageFrom == Constants.ENTRY_FROM.RECYCLE) {
|
||||||
this.isFromTrash = true;
|
|
||||||
this.dataSource.setAlbumUri(this.albumUri);
|
this.dataSource.setAlbumUri(this.albumUri);
|
||||||
this.dataSource.setAlbumDataSource(AppStorage.Get(Constants.APP_KEY_PHOTO_BROWSER));
|
this.dataSource.setAlbumDataSource(AppStorage.Get(Constants.APP_KEY_PHOTO_BROWSER));
|
||||||
} else if (this.pageFrom == Constants.ENTRY_FROM.DISTRIBUTED) {
|
} else if (this.pageFrom == Constants.ENTRY_FROM.DISTRIBUTED) {
|
||||||
@ -1197,8 +1195,7 @@ export struct PhotoBrowserComponent {
|
|||||||
if (!this.isHorizontal) {
|
if (!this.isHorizontal) {
|
||||||
PhotoBrowserToolBar({
|
PhotoBrowserToolBar({
|
||||||
onMenuClicked: this.onMenuClicked.bind(this),
|
onMenuClicked: this.onMenuClicked.bind(this),
|
||||||
isFromPhotoBrowser: true,
|
isFromPhotoBrowser: true
|
||||||
isFromTrash: this.isFromTrash
|
|
||||||
})
|
})
|
||||||
.opacity(this.geometryOpacity)
|
.opacity(this.geometryOpacity)
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
Loading…
Reference in New Issue
Block a user