Fix: Handle Back press event for search header on multiple screens#56203
Conversation
|
@hungvu193 Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
|
Please note that the unit test is failing is not from this PR. This PR didn't change picker component. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2025-02-01.at.18.34.12.movAndroid: mWeb ChromeScreen.Recording.2025-02-01.at.18.37.05.moviOS: NativeIOS.moviOS: mWeb SafariScreen.Recording.2025-02-01.at.18.32.34.movMacOS: Chrome / SafariScreen.Recording.2025-02-01.at.18.28.24.movMacOS: DesktopScreen.Recording.2025-02-01.at.18.28.03.mov |
Co-authored-by: Hans <hungvu193@users.noreply.github.com>
Co-authored-by: Hans <hungvu193@users.noreply.github.com>
hungvu193
left a comment
There was a problem hiding this comment.
Thanks for your extra effort ⚡
Yep that's on main too. |
|
bump @grgia |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.0.95-0 🚀
|
|
🚀 Deployed to production by https://github.com/Julesssss in version: 9.0.95-6 🚀
|
We don't handle the back press in screens that support multiple select option. This PR fixes it.
Explanation of Change
Fixed Issues
$ #54378
PROPOSAL: #54378 (comment)
Tests
Prerequisite:
This PR only handles the back press button on Android, on other platforms the behavior remain the same.
Offline tests
Same as Tests.
QA Steps
// TODO: These must be filled out, or the issue title must include "[No QA]."
Same as Tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Screen.Recording.2025-02-01.at.15.36.13.mov
Android: mWeb Chrome
Screen.Recording.2025-02-01.at.18.25.36.mov
iOS: Native
Screen.Recording.2025-02-01.at.18.24.31.mov
iOS: mWeb Safari
Screen.Recording.2025-02-01.at.18.02.49.mov
MacOS: Chrome / Safari
Screen.Recording.2025-02-01.at.17.05.09.mov
MacOS: Desktop
Screen.Recording.2025-02-01.at.17.05.39.mov