-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Fix an issue with search results disappearing after returning from site details #24121
Conversation
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr24121-45c1b7c | |
Version | 25.7.1 | |
Bundle ID | org.wordpress.alpha | |
Commit | 45c1b7c | |
App Center Build | WPiOS - One-Offs #11563 |
|
App Name | ![]() |
|
Configuration | Release-Alpha | |
Build Number | pr24121-45c1b7c | |
Version | 25.7.1 | |
Bundle ID | com.jetpack.alpha | |
Commit | 45c1b7c | |
App Center Build | jetpack-installable-builds #10593 |
@@ -41,6 +41,7 @@ final class ReaderSearchViewController: UIViewController { | |||
private var currentChildVC: UIViewController? | |||
private var previousSearchTopic: ReaderAbstractTopic? | |||
private let contextManager = ContextManager.shared | |||
private var isFirstAppearance = false |
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.
Is this value supposed to be true?
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.
Right. No idea how I tested it
@@ -62,8 +63,11 @@ final class ReaderSearchViewController: UIViewController { | |||
override func viewDidAppear(_ animated: Bool) { | |||
super.viewDidAppear(animated) | |||
|
|||
DispatchQueue.main.async { | |||
self.searchController.searchBar.becomeFirstResponder() | |||
if isFirstAppearance { |
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.
Is isMovingToParent
applicable here?
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. I trust viewDidAppear(_ animated: Bool)
and isFirstAppearance
more.
a9974db
to
17e3677
Compare
Fixes #24112.
Before:
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-02-26.at.13.17.01.mp4
After:
Simulator.Screen.Recording.-.iPhone.16.Pro.-.2025-02-26.at.13.18.49.mp4
To test:
Regression Notes
Potential unintended areas of impact
What I did to test those areas of impact (or what existing automated tests I relied on)
What automated tests I added (or what prevented me from doing so)
PR submission checklist:
RELEASE-NOTES.txt
if necessary.Testing checklist: