Fixed two issues, one is caused when Bluetooth permissions are granted after audioswitch has been started and audio switch is subsequently stopped. The other issue has existed for some time and is the result of devices sending multiple disconnect events.
Breakdown
Fixed issue where InvalidStateException on audioswitch.stop(..) was being thrown when the bluetooth subsystem was not registered due to lack of permissions.
Fixed issue where spurious audioDeviceChanged events were being sent as a reaction to spurious events from system.
Added test case to test spurious audioDeviceChanged events
Validation
Tested both use-cases outlined by customer
Added unit test case for spurious events
Additional Notes
None
Submission Checklist
[*] The source has been evaluated for semantic versioning changes and are reflected in gradle.properties
[*] The CHANGELOG.md reflects any feature, bug fixes, or known issues made in the source code
Description
Fixed two issues, one is caused when Bluetooth permissions are granted after audioswitch has been started and audio switch is subsequently stopped. The other issue has existed for some time and is the result of devices sending multiple disconnect events.
Breakdown
Validation
Additional Notes
None
Submission Checklist
gradle.properties
CHANGELOG.md
reflects any feature, bug fixes, or known issues made in the source code