mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-23 07:00:09 +00:00
problem
Signed-off-by: z00513345 <zhuchengfeng1@huawei.com>
This commit is contained in:
parent
f04d581df6
commit
88dbd53335
@ -326,16 +326,15 @@ struct PhotoBrowser {
|
||||
if (currentPhoto == undefined) {
|
||||
return;
|
||||
}
|
||||
if (this.pageFrom == Constants.ENTRY_FROM.CAMERA || this.pageFrom == Constants.ENTRY_FROM.CARD) {
|
||||
this.menuList = [Action.GOTO_PHOTOS, Action.INFO];
|
||||
} else if (this.pageFrom == Constants.ENTRY_FROM.RECYCLE) {
|
||||
this.menuList = [];
|
||||
} else {
|
||||
this.menuList = [Action.INFO]
|
||||
}
|
||||
|
||||
this.toolMenuList = [];
|
||||
this.getActionList(currentPhoto).then((list: Array<Action>) => {
|
||||
if (this.pageFrom == Constants.ENTRY_FROM.CAMERA || this.pageFrom == Constants.ENTRY_FROM.CARD) {
|
||||
this.menuList = [Action.GOTO_PHOTOS, Action.INFO];
|
||||
} else if (this.pageFrom == Constants.ENTRY_FROM.RECYCLE) {
|
||||
this.menuList = [];
|
||||
} else {
|
||||
this.menuList = [Action.INFO]
|
||||
}
|
||||
if (this.isHorizontal) {
|
||||
this.menuList = this.menuList.concat(list);
|
||||
} else {
|
||||
|
@ -362,8 +362,10 @@ export struct TimelinePage {
|
||||
startTrace('onModeChange');
|
||||
this.onModeChange();
|
||||
finishTrace('onModeChange');
|
||||
mediaObserver.registerObserver(this.dataObserver);
|
||||
animateTo({ duration: Constants.DELETE_ANIMATE_DURATION }, () => this.timelineDataSource.dataRemove())
|
||||
animateTo({
|
||||
duration: Constants.DELETE_ANIMATE_DURATION,
|
||||
onFinish: () => mediaObserver.registerObserver(this.dataObserver)
|
||||
}, () => this.timelineDataSource.dataRemove())
|
||||
}
|
||||
|
||||
onCopyStart(): void {
|
||||
|
Loading…
Reference in New Issue
Block a user