fix typo :/

here
Andreas Shimokawa 2015-12-27 19:16:56 +01:00
parent 11e02fbf5f
commit 2caef02309
1 changed files with 1 additions and 1 deletions

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 + ")");