mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-28 12:56:49 +01:00
Pebble: fix incoming calls (recently broken)
This commit is contained in:
parent
8f988de49d
commit
f2e6ce6380
@ -121,13 +121,11 @@ public class PebbleSupport extends AbstractSerialDeviceSupport {
|
|||||||
@Override
|
@Override
|
||||||
public void onSetCallState(CallSpec callSpec) {
|
public void onSetCallState(CallSpec callSpec) {
|
||||||
if (reconnect()) {
|
if (reconnect()) {
|
||||||
if (callSpec.command == CallSpec.CALL_OUTGOING) {
|
if ((callSpec.command != CallSpec.CALL_OUTGOING) || GBApplication.getPrefs().getBoolean("pebble_enable_outgoing_call", true)) {
|
||||||
if (GBApplication.getPrefs().getBoolean("pebble_enable_outgoing_call",true)) {
|
|
||||||
super.onSetCallState(callSpec);
|
super.onSetCallState(callSpec);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onSetMusicState(MusicStateSpec musicStateSpec) {
|
public void onSetMusicState(MusicStateSpec musicStateSpec) {
|
||||||
|
Loading…
Reference in New Issue
Block a user