update feature/timeline/src/main/ets/view/TimelinePage.ets.

Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
liujuan 2024-08-11 08:55:02 +00:00 committed by Gitee
parent e9fc1b8652
commit a48fa0452d
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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');