1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-25 18:15:49 +01:00

Pebble: do not call setReceiversEnableState() from PebbleIoThread anymore, handling had been moved to generic code

This commit is contained in:
Andreas Shimokawa 2015-04-27 01:24:42 +02:00
parent 2eb62ebff3
commit 462f9f028f

View File

@ -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;
}