Search While Delete: Pass searchDataSource to EditController in initialization.
Still a work in progress because of a lot of UI glitches.
Fixes #675 (closed)
A screen recording of it in action:
Changes:
- new computed variable "currentDataSet" in both MediaCategoryViewController and EditController that returns either searchDataSource.searchData or model.anyfiles
- searchDataSource reference from MediaCategoryViewController is passed to EditController
- isSearching bool now in LibrarySearchDataSource so that both view controllers maintain the same isSearching bool
- searchBar alpha and userInteraction is changed on editControllerDidSelectMultipleItem and editControllerDidDeSelectMultipleItem
Merge request reports
Activity
- Automatically resolved by Soomin Lee
added 1 commit
- 1071e07a - Deletion while editing: Simply dataset logic in EditController
- Resolved by Avi Wadhwa
changed milestone to %3.5.0
Fixed some UI bugs! The search bar no longer covers the content. However, it still behaves erratically when isEditing and isSearching are both true together.
When search bar is visible on screen and user starts editing: search bar is sticky to the top of the screen. this is unintended behaviour when the search bar is empty. should only stick to the top if user is actually searching.
When search bar is not visible on screen and user starts editing: no search bar available on screen. User wonders why they can't search and select items.
So far unable to understand how the searchbar being on screen changes the behaviour in the edit screen
added 1 commit
- 05ae45ce - Search While Editing: scrollViewDidScroll behaviour in editController mirrors...
added MediaLibrary label
- Resolved by Avi Wadhwa
added 1 commit
- 8d011dfc - Edit Controller: call delegate's scrollDidView method
- Resolved by Avi Wadhwa
Have you tried the actual delete action while searching?
From what I tested the delete action is performed correctly but it doesn't update the view so you still see the deleted items.
I have made two screen recordings to show the behavior:
The rename action seems to have the expected behavior but I have not tested the other actions of the Edit Controller
added 1 commit
- cba54e60 - Edit Controller: call delegate's scrollDidView method
added 1 commit
- 82256037 - Media Category View Controller: disable search-bar if any item is selected