-
Notifications
You must be signed in to change notification settings - Fork 224
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
Bookmarks - Add search on podcast page #1211
Conversation
@Composable | ||
fun SearchView( | ||
bookmarkHeader: BookmarkHeader, | ||
modifier: Modifier = Modifier, | ||
) { | ||
val hintText = stringResource(id = LR.string.bookmarks_search) | ||
AndroidView( | ||
modifier = modifier, | ||
factory = { context -> | ||
EpisodeSearchView(context).apply { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we haven't moved to material3 yet, which includes a search bar component for Compose, I have reused the existing search component in the Compose view.
"""SELECT bookmarks.* | ||
FROM bookmarks | ||
LEFT JOIN podcast_episodes ON bookmarks.episode_uuid = podcast_episodes.uuid | ||
WHERE bookmarks.podcast_uuid = :podcastUuid | ||
AND UPPER(bookmarks.title) LIKE UPPER(:title) | ||
OR UPPER(podcast_episodes.title) LIKE UPPER(:title) | ||
AND deleted = :deleted""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Searching for both episode and bookmark titles while searching bookmarks for a podcast.
...les/services/model/src/main/java/au/com/shiftyjelly/pocketcasts/models/db/dao/BookmarkDao.kt
Outdated
Show resolved
Hide resolved
...src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/helper/search/BookmarkSearchHandler.kt
Outdated
Show resolved
Hide resolved
...src/main/java/au/com/shiftyjelly/pocketcasts/podcasts/helper/search/BookmarkSearchHandler.kt
Outdated
Show resolved
Hide resolved
…casts/models/db/dao/BookmarkDao.kt Co-authored-by: Philip Simpson <[email protected]>
9875a3d
to
0bd594e
Compare
Description
This adds bookmark search on the podcast page.
Testing Instructions
Podcast Details
pageScreenshots or Screencast
search.mp4
Checklist
./gradlew spotlessApply
to automatically apply formatting/linting)modules/services/localization/src/main/res/values/strings.xml
I have tested any UI changes...