Skip to content

Conversation

@gladiuscode
Copy link
Owner

Goal

This PR implements a missing check to avoid calling: context.unregisterReceiver if the receiver was not registered yet.
It should fix #63, even tho I was not actually able to reproduce it yet.

@ylssssssss
Copy link

@gladiuscode

I tried patching the library with this PR, and it fixed the crash.

@gladiuscode
Copy link
Owner Author

@gladiuscode

I tried patching the library with this PR, and it fixed the crash.

Thank you!
I'll merge it tonight

@gladiuscode gladiuscode marked this pull request as ready for review April 10, 2025 17:46
@gladiuscode gladiuscode changed the title fix: missing check before unregistering receiver fix(android): missing check before unregistering receiver Apr 10, 2025
@gladiuscode gladiuscode merged commit bbebf56 into main Apr 10, 2025
5 checks passed
@gladiuscode gladiuscode deleted the fix/android-illegal-argument-exception-receiver branch April 10, 2025 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android Android only bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Android] Receiver not registered: com.orientationdirector.implementation.ConfigurationChangedBroadcastReceiver@e06fce9

3 participants