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/add support to epub text searching #228

Merged
merged 4 commits into from
Sep 22, 2023

Conversation

nunommts
Copy link
Contributor

@nunommts nunommts commented Sep 21, 2023

What's this do?
This PR adds support to the EPUB text searching by handling the logic of showing/hiding the SearchFragment

Why are we doing this? (w/ JIRA link if applicable)
There's a feature request to include the EPUB text searching in the Palace app.

How should this be tested? / Do these changes have associated tests?
Open the Palace app
Select any EPUB
Click on the search icon
Type any query
Click on one of the results
Confirm you're redirected to that part of the book

Dependencies for merging? Releasing to production?
This PR also needs to be merged

Have you updated the changelog?
Yes

Has the application documentation been updated for these changes?
No

Did someone actually run this code to verify it works?
Tested by @nunommts

}
this.supportFragmentManager.beginTransaction()
.add(R.id.reader2FragmentHost, this.readerFragment)
.commit()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We aren't reusing fragment instances anymore?

Not that I mind, but ... does this have lifecycle repercussions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are. This adds the reader fragment and then all the operations on fragments are just showing/hiding the current instances (or add one if it's not added already) so there's no recreation of fragments. In the end, when we leave the screen all the instances are destroyed alongside with the activity

@nunommts nunommts requested a review from io7m September 22, 2023 14:41
Copy link
Contributor

@io7m io7m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@nunommts nunommts merged commit 73fa192 into main Sep 22, 2023
1 check passed
@nunommts nunommts deleted the feature/add-support-to-epub-text-searching branch September 22, 2023 16:39
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.

2 participants