Skip to content

Conversation

@vivek0046
Copy link

Prevent duplicate PhoneStateListener registration in CallDetectionManagerModule

  • Added null check to avoid re-registering listener if already active
  • Ensures compliance with Android's limit on registered listeners
  • Improves app stability and prevents IllegalStateException on some devices
  • Added safe null checks for TelephonyManager and activity

Prevent duplicate PhoneStateListener registration in CallDetectionManagerModule

- Added null check to avoid re-registering listener if already active
- Ensures compliance with Android's limit on registered listeners
- Improves app stability and prevents IllegalStateException on some devices
- Added safe null checks for TelephonyManager and activity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant