-
Notifications
You must be signed in to change notification settings - Fork 207
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
Profile bookmarks - Add search #2037
Conversation
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.
Works as expected.
|
||
@OptIn(ExperimentalCoroutinesApi::class) | ||
suspend fun getBookmarkSearchResultsFlow() = searchQueryFlow.flatMapLatest { searchTerm -> | ||
if (searchTerm.isNotEmpty()) { |
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.
It would be useful to trim()
the searchTerm
so things like My bookmark
work.
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.
Yes, here you go: a115ab3
id = if (state.bookmarks.size > 1) { | ||
LR.string.bookmarks_plural | ||
} else { | ||
LR.string.bookmarks_singular |
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.
I realize this is already in our app but shouldn't this be handles with plural strings and not regular strings? Otherwise it doesn't translate well to different languages that have different grammar rules for different quantities.
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.
I don't know the full context but it could be due to GlotPress not supporting plurals yet. I'll leave it for now and we can discuss it internally.
a115ab3
to
afa6e29
Compare
When sorting by Podcast & Episode, custom files don't get split up for each file, so all of them are just sorted by timestamp, jumbled together. Don't really have time to open an Issue right now, so just commenting here. |
Description
This adds search to the profile bookmarks screen.
Testing Instructions
Screenshots 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...