-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 Crash in LocationPickerActivity when device configuration is changed #5500
Fix Crash in LocationPickerActivity when device configuration is changed #5500
Conversation
@nicolas-raoul Please Review this PR |
Hi @nicolas-raoul , is there any change required in this PR? |
Student Review Screencast of Before: Screencast of After: The crash does not happen after merging this PR, but some bugs still remain:
It seems to be happening due to |
This one is not a bug as you haven't selected any location , you are just hovering over it so it is not saved anywhere. |
@ShashwatKedia Thanks for reporting the Null Pointer Exception, fixing it now |
@nicolas-raoul @RitikaPahwa4444 can you review and merge this , thanks |
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.
Tested, fixes the crash.
Thanks!
Description (required)
Fixes #5474
What changes did you make and why?
Identified and fixed a critical issue in the open-source project related to the
LocationPickerActivity
.The crash occurred when the device configuration changed, specifically during UI mode switches (dark to light or light to dark mode)
Investigated the crash root cause, which was tied to how the activity handled UI mode changes.
Tests performed (required)
Tested 4.2.1-debug on Xiaomi 11 Lite NE with API level 33
Screenshots (for UI changes only)
WhatsApp.Video.2024-01-31.at.12.10.27.PM.mp4