X-SLAYER / flutter_accessibility_service

Flutter plugin for interacting with Accessibility Service in Android.
https://pub.dev/packages/flutter_accessibility_service
MIT License
33 stars 24 forks source link

Fix: Prevent IllegalArgumentException by Checking BroadcastReceiver Registration Status and some typos #24

Open fahimfoysal2 opened 7 months ago

fahimfoysal2 commented 7 months ago

Checker

The app will crash and throw an IllegalArgumentException in the onDetachedFromEngine() method when you try to close the app without invoking any method call using the specified channel. The reason is it will try to unregister the actionsReceiverwhen it is not registered in the first place.

Revision

Also, fixed some typos.