Pebble: fix App installation
This commit is contained in:
parent
50c7206cf6
commit
1c5d6de3ad
|
@ -325,7 +325,7 @@ public class PebbleIoThread extends GBDeviceIoThread {
|
||||||
@Override
|
@Override
|
||||||
synchronized public void write(byte[] bytes) {
|
synchronized public void write(byte[] bytes) {
|
||||||
// block writes if app installation in in progress
|
// block writes if app installation in in progress
|
||||||
if (mIsConnected && !mIsInstalling) {
|
if (mIsConnected && (!mIsInstalling || mInstallState == PebbleAppInstallState.APP_WAIT_SLOT)) {
|
||||||
try {
|
try {
|
||||||
mOutStream.write(bytes);
|
mOutStream.write(bytes);
|
||||||
mOutStream.flush();
|
mOutStream.flush();
|
||||||
|
|
Loading…
Reference in New Issue