From 97aed43518786bf8c1441f81b6d63014fba2c462 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Sat, 17 Dec 2016 00:17:05 +0100 Subject: [PATCH] Pebble: fix for previous commit (potential crashes when installing and receiving notifications) --- .../gadgetbridge/service/devices/pebble/PebbleIoThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java index 8bbc5b57c..bd990d2d6 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleIoThread.java @@ -595,7 +595,7 @@ class PebbleIoThread extends GBDeviceIoThread { } } - private void writeInstallApp(byte[] bytes) { + synchronized private void writeInstallApp(byte[] bytes) { if (!mIsInstalling) { return; }