-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[Bug]: Crash when opening Nearby when location permission hasn't been granted yet #5413
Comments
@nicolas-raoul @sivaraam I would like to work on this issue, if no one else is on it. |
I tried to reproduce this issue on some physical devices (Android 13, 12 and 8), but the app behaved correctly, asking for permission first and thus did not crash. Interestingly, it did crash on both the emulators I tested upon, with the same device logs as given above. |
I faced the same issue on my device that has android 14. |
@sivaraam @nicolas-raoul Kindly review the above PR :] |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
@sivaraam As the original reporter, would you mind checking? :-) |
Does this issue still persist? |
@bhoomigadhiya Sorry we will test @ShashwatKedia 's pull request soon. |
Summary
The app crashes when trying to open the Nearby screen. I observe this on a fresh installation when the app doesn't have the location permission.
Steps to reproduce
Expected behaviour
The app should open the Nearby screen properly requesting for the location permission.
Actual behaviour
The app crashes with the exception trace found below. The location permission request is shown after the app screen goes away.
Device name
OnePlus Nord
Android version
12
Commons app version
Should be reproducible on master
Device logs
Screen-shots
No response
Would you like to work on the issue?
None
The text was updated successfully, but these errors were encountered: