From f2e6ce63807f511118db889d0718ec9e153dc997 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Tue, 10 Jan 2017 18:23:35 +0100 Subject: [PATCH] Pebble: fix incoming calls (recently broken) --- .../gadgetbridge/service/devices/pebble/PebbleSupport.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleSupport.java index 56087f238..122f6da59 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/pebble/PebbleSupport.java @@ -121,10 +121,8 @@ public class PebbleSupport extends AbstractSerialDeviceSupport { @Override public void onSetCallState(CallSpec callSpec) { if (reconnect()) { - if (callSpec.command == CallSpec.CALL_OUTGOING) { - if (GBApplication.getPrefs().getBoolean("pebble_enable_outgoing_call",true)) { - super.onSetCallState(callSpec); - } + if ((callSpec.command != CallSpec.CALL_OUTGOING) || GBApplication.getPrefs().getBoolean("pebble_enable_outgoing_call", true)) { + super.onSetCallState(callSpec); } } }