1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-15 14:39:26 +01:00

Pebble: fix non-working SMS reply regression

This commit is contained in:
Andreas Shimokawa 2018-11-01 19:12:43 +01:00
parent 5fc2a704a3
commit 7c0c50e960
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
package nodomain.freeyourgadget.gadgetbridge.deviceevents;
public class GBDeviceEventNotificationControl extends GBDeviceEvent {
public int handle;
public long handle;
public String phoneNumber;
public String reply;
public String title;

View File

@ -323,7 +323,7 @@ public abstract class AbstractDeviceSupport implements DeviceSupport {
break;
case REPLY:
if (deviceEvent.phoneNumber == null) {
deviceEvent.phoneNumber = (String) GBApplication.getIDSenderLookup().lookup(deviceEvent.handle);
deviceEvent.phoneNumber = (String) GBApplication.getIDSenderLookup().lookup((int) (deviceEvent.handle >> 4));
}
if (deviceEvent.phoneNumber != null) {
LOG.info("Got notification reply for SMS from " + deviceEvent.phoneNumber + " : " + deviceEvent.reply);