Pebble: fix incoming calls (recently broken)

here
Andreas Shimokawa 2017-01-10 18:23:35 +01:00
parent 8f988de49d
commit f2e6ce6380
1 changed files with 2 additions and 4 deletions

View File

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