mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-03 04:21:52 +02:00
Pebble: fix non-working SMS reply regression
This commit is contained in:
parent
5fc2a704a3
commit
7c0c50e960
@ -17,7 +17,7 @@
|
|||||||
package nodomain.freeyourgadget.gadgetbridge.deviceevents;
|
package nodomain.freeyourgadget.gadgetbridge.deviceevents;
|
||||||
|
|
||||||
public class GBDeviceEventNotificationControl extends GBDeviceEvent {
|
public class GBDeviceEventNotificationControl extends GBDeviceEvent {
|
||||||
public int handle;
|
public long handle;
|
||||||
public String phoneNumber;
|
public String phoneNumber;
|
||||||
public String reply;
|
public String reply;
|
||||||
public String title;
|
public String title;
|
||||||
|
@ -323,7 +323,7 @@ public abstract class AbstractDeviceSupport implements DeviceSupport {
|
|||||||
break;
|
break;
|
||||||
case REPLY:
|
case REPLY:
|
||||||
if (deviceEvent.phoneNumber == null) {
|
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) {
|
if (deviceEvent.phoneNumber != null) {
|
||||||
LOG.info("Got notification reply for SMS from " + deviceEvent.phoneNumber + " : " + deviceEvent.reply);
|
LOG.info("Got notification reply for SMS from " + deviceEvent.phoneNumber + " : " + deviceEvent.reply);
|
||||||
|
Loading…
Reference in New Issue
Block a user