mirror of
https://gitee.com/openharmony/applications_photos
synced 2024-11-22 22:50:14 +00:00
update feature/timeline/src/main/ets/view/TimelinePage.ets.
Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
parent
e9fc1b8652
commit
a48fa0452d
@ -567,7 +567,6 @@ export struct TimelinePage {
|
||||
Log.info(TAG, `onDeleteStart`);
|
||||
this.deleteMode = true;
|
||||
this.isDataFreeze = true;
|
||||
this.onModeChange();
|
||||
if (this.dataSource != null) {
|
||||
this.dataSource.unregisterTimelineObserver();
|
||||
this.dataSource.freeze();
|
||||
@ -577,6 +576,7 @@ export struct TimelinePage {
|
||||
onDeleteEnd(): void {
|
||||
Log.info(TAG, `onDeleteEnd`);
|
||||
this.isDataFreeze = false;
|
||||
this.onModeChange();
|
||||
if (this.dataSource != null) {
|
||||
this.dataSource.registerTimelineObserver();
|
||||
this.dataSource.onChange('image');
|
||||
|
Loading…
Reference in New Issue
Block a user