Chorus-RF-Laptimer icon indicating copy to clipboard operation
Chorus-RF-Laptimer copied to clipboard

Fix crash when enabling bluetooth after starting the app

Open Smeat opened this issue 5 years ago • 0 comments

When enabling bluetooth after starting the app and trying to connect, the app crashes due to mChatService being null. This adds a listener to the bluetooth state and starts the bluetooth service when the user enables bluetooth.

I never did much in Android, so I hope implementing it this way is correct.

Smeat avatar Jul 15 '19 15:07 Smeat