This Pull Request adds to the repository the removal of duplicate code. setupBluetoothAdapter was already used in ActivateBluetoothActivity and thus is not needed anymore BluetoothConnectionActivity. Also, I fixed a potential bug in which connectThread was not cancelled.
Why
This Pull Request is needed because we don't want bugs and we don't want duplicate code
How
This feature can be viewed/tested within the project by static code analysis
Alternative implementation
Other implementations that I've have considered are
Relevant Issues: -
Related Pull Requests: -
What
This Pull Request adds to the repository the removal of duplicate code. setupBluetoothAdapter was already used in ActivateBluetoothActivity and thus is not needed anymore BluetoothConnectionActivity. Also, I fixed a potential bug in which connectThread was not cancelled.
Why
This Pull Request is needed because we don't want bugs and we don't want duplicate code
How
This feature can be viewed/tested within the project by static code analysis
Alternative implementation
Other implementations that I've have considered are
Notes