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

Pebble: fix App installation

This commit is contained in:
Andreas Shimokawa 2015-05-18 23:14:32 +02:00
parent 50c7206cf6
commit 1c5d6de3ad

View File

@ -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();