From c436c4c055d32125dd1f2b25fede5c2f4a5f3170 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Sat, 20 Feb 2016 22:20:02 +0100 Subject: [PATCH] Pebble: Fix wrong(previous) contact being displayed on the pebble. Fixes #228 --- CHANGELOG.md | 1 + .../gadgetbridge/externalevents/PhoneCallReceiver.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 465db271b..e05f4495d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ * Pebble: Support Pebble Health: steps/activity data are stored correctly. Sleep time is considered as light sleep. Deep sleep is discarded. The pebble will send data where it deems appropriate, there is no action to perform on the watch for this to happen. * Pebble: Fix support for newer version of morpheuz (>=3.3?) * Pebble: Allow to select the preferred activity tracker via settings activity (Health, Misfit, Morpheuz) +* Pebble: Fix wrong(previous) contact being displayed on the pebble * Mi Band: improvements to pairing ####Version 0.7.4 diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/PhoneCallReceiver.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/PhoneCallReceiver.java index c17829176..26513a067 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/PhoneCallReceiver.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/externalevents/PhoneCallReceiver.java @@ -31,7 +31,6 @@ public class PhoneCallReceiver extends BroadcastReceiver { } else if (TelephonyManager.EXTRA_STATE_RINGING.equals(stateStr)) { state = TelephonyManager.CALL_STATE_RINGING; } - onCallStateChanged(context, state, number); } } @@ -52,6 +51,7 @@ public class PhoneCallReceiver extends BroadcastReceiver { callCommand = ServiceCommand.CALL_START; } else { callCommand = ServiceCommand.CALL_OUTGOING; + mSavedNumber = number; } break; case TelephonyManager.CALL_STATE_IDLE: