Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Enable search in grid/wall view #519

Merged
merged 17 commits into from
Jan 7, 2022

Conversation

wutschel
Copy link
Collaborator

@wutschel wutschel commented Dec 7, 2021

Description

Closes #467.

This PR enables the search in grid/wall view (tested with albums, artists and movies):

  • Search field usable as for list view
  • Correct results are shown
  • Longpressing or selecting an item processes the details of the correct item
  • Show amount of found items in section header

Screenshots:
https://abload.de/img/simulatorscreenshot-iqrkga.png
https://abload.de/img/simulatorscreenshot-iajj2g.png
https://abload.de/img/simulatorscreenshot-i9tk5e.png

Summary for release notes

Feature: Enable search in grid/wall view

@wutschel wutschel marked this pull request as ready for review December 16, 2021 06:27
@wutschel
Copy link
Collaborator Author

Should be merged after #521.

@kambala-decapitator
Copy link
Collaborator

Please fix conflicts

@wutschel
Copy link
Collaborator Author

Rebased to master.

XBMC Remote/DetailViewController.m Outdated Show resolved Hide resolved
XBMC Remote/DetailViewController.m Outdated Show resolved Hide resolved
XBMC Remote/DetailViewController.m Show resolved Hide resolved
XBMC Remote/DetailViewController.m Outdated Show resolved Hide resolved
XBMC Remote/DetailViewController.m Outdated Show resolved Hide resolved
XBMC Remote/DetailViewController.m Show resolved Hide resolved
XBMC Remote/DetailViewController.m Show resolved Hide resolved
Disconnect searchController from dataList.tableHeaderView when entering grid view mode. Connect it back again when re-entering list view. This resolves an issue where the search bar was not properly shown in grid view after first being initialized in list view.
The delegates were implemented to implement a workaround for UISearchDisplayController under iOS7. This is not effective anymore and can be removed.
Use the same icon as iOS's index (magnifying glass with transparent circle, handle bar to lower right side).
- Call init during first time setup of grid/wall view
- Set visibility when initializing and when changing the view
- Set invisible during search and restore after search ended
- Use the magnifying lens directly, avoiding the UTF code

fixup: magnifier lens
The index is only shown when there are valid index titles which are derived from the sections. But for fullscreen the sections are removed. As the check for visibility is called from configureLibraryView, we just need to move the call of configureLibraryView before the sections are emptied out.
This is a workaround. If not deactivating the search the ShowViewController cannot be presented.
Before this change the fullscreen's searchbar first appearance was too small when entering this from a list view.
@wutschel
Copy link
Collaborator Author

wutschel commented Jan 7, 2022

Squashed fixups and rebased to master.

@kambala-decapitator kambala-decapitator merged commit 991fbf5 into xbmc:master Jan 7, 2022
@wutschel wutschel deleted the grid_search branch January 13, 2022 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support search in grid/wall mode
2 participants