mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-25 18:15:49 +01: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;
|
||||
|
||||
public class GBDeviceEventNotificationControl extends GBDeviceEvent {
|
||||
public int handle;
|
||||
public long handle;
|
||||
public String phoneNumber;
|
||||
public String reply;
|
||||
public String title;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user