This Pull Request adds to the repository functionality to actually cancel the Bluetooth connection. Either by pressing the Cancel button in the WaitingActivity or the back button in any of the activities that appear in the Bluetooth connection process
Why
This Pull Request is needed because it makes it possible to cancel a Bluetooth connection whenever a user wants to. Besides that it also makes it so the actual connection is stopped, not just the activities.
How
This feature can be viewed/tested within the project by starting a Bluetooth connection and trying to cancel it from every activity. Be sure to check if you can immediately start a new connection, as this shows that the previous connection has been canceled.
Alternative implementation
None considered
Notes
Not sure if this.serviceLocator.getBluetoothHandler().stop(); is the correct way to stop a Bluetooth connection 🤔
Relevant Issues: #278
Related Pull Requests: -
What
This Pull Request adds to the repository functionality to actually cancel the Bluetooth connection. Either by pressing the Cancel button in the
WaitingActivity
or the back button in any of the activities that appear in the Bluetooth connection processWhy
This Pull Request is needed because it makes it possible to cancel a Bluetooth connection whenever a user wants to. Besides that it also makes it so the actual connection is stopped, not just the activities.
How
This feature can be viewed/tested within the project by starting a Bluetooth connection and trying to cancel it from every activity. Be sure to check if you can immediately start a new connection, as this shows that the previous connection has been canceled.
Alternative implementation
None considered
Notes
Not sure if
this.serviceLocator.getBluetoothHandler().stop();
is the correct way to stop a Bluetooth connection 🤔