mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-26 02:25:50 +01:00
Pebble: do not call setReceiversEnableState() from PebbleIoThread anymore, handling had been moved to generic code
This commit is contained in:
parent
2eb62ebff3
commit
462f9f028f
@ -103,7 +103,6 @@ public class PebbleIoThread extends GBDeviceIoThread {
|
||||
|
||||
public void run() {
|
||||
mIsConnected = connect(gbDevice.getAddress());
|
||||
GB.setReceiversEnableState(mIsConnected, getContext()); // enable/disable BroadcastReceivers
|
||||
mQuit = !mIsConnected; // quit if not connected
|
||||
|
||||
byte[] buffer = new byte[8192];
|
||||
@ -265,7 +264,6 @@ public class PebbleIoThread extends GBDeviceIoThread {
|
||||
mConnectionAttempts = 0;
|
||||
if (!mIsConnected) {
|
||||
mBtSocket = null;
|
||||
GB.setReceiversEnableState(false, getContext());
|
||||
Log.i(TAG, "Bluetooth socket closed, will quit IO Thread");
|
||||
mQuit = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user