From 1c5d6de3ad3788456dc07ceff1b3e13cf0b2747c Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Mon, 18 May 2015 23:14:32 +0200 Subject: [PATCH] Pebble: fix App installation --- .../freeyourgadget/gadgetbridge/pebble/PebbleIoThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/pebble/PebbleIoThread.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/pebble/PebbleIoThread.java index 97f7e746..58862d5a 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/pebble/PebbleIoThread.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/pebble/PebbleIoThread.java @@ -325,7 +325,7 @@ public class PebbleIoThread extends GBDeviceIoThread { @Override synchronized public void write(byte[] bytes) { // block writes if app installation in in progress - if (mIsConnected && !mIsInstalling) { + if (mIsConnected && (!mIsInstalling || mInstallState == PebbleAppInstallState.APP_WAIT_SLOT)) { try { mOutStream.write(bytes); mOutStream.flush();