1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-01 06:22:55 +01:00

fix typo :/

This commit is contained in:
Andreas Shimokawa 2015-12-27 19:16:56 +01:00
parent 11e02fbf5f
commit 2caef02309

View File

@ -357,7 +357,7 @@ public class PebbleIoThread extends GBDeviceIoThread {
mIsConnected = false;
int reconnectAttempts = Integer.valueOf(sharedPrefs.getString("pebble_reconnect_attempts", "10"));
if (reconnectAttempts > 0) {
gbDevice.setState(GBDevice.State.CONNECTED);
gbDevice.setState(GBDevice.State.CONNECTING);
gbDevice.sendDeviceUpdateIntent(getContext());
while (reconnectAttempts-- > 0 && !mQuit) {
LOG.info("Trying to reconnect (attempts left " + reconnectAttempts + ")");