mirror of
https://gitee.com/openharmony/applications_photos
synced 2025-02-17 05:38:21 +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
33802d4237
commit
ae58b8d371
@ -557,6 +557,7 @@ 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();
|
||||
@ -566,7 +567,6 @@ 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');
|
||||
@ -626,6 +626,7 @@ export struct TimelinePage {
|
||||
Log.debug(TAG, `onModeChange current mode ${this.isSelectedMode}`);
|
||||
if (this.isSelectedMode) {
|
||||
this.isSelectedMode = false;
|
||||
this.isAllSelected = false;
|
||||
this.mSelectManager.onModeChange(false);
|
||||
this.updateGroupSelectMode();
|
||||
AppStorage.delete(Constants.PHOTO_GRID_SELECT_MANAGER);
|
||||
|
Loading…
x
Reference in New Issue
Block a user