1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-24 01:25:50 +01:00

Zepp OS 3.5+: Fix notification vibration

This commit is contained in:
José Rebelo 2024-12-17 18:43:44 +00:00
parent 199a6835a2
commit f4bc2ed6af

View File

@ -357,7 +357,7 @@ public class ZeppOsNotificationService extends AbstractZeppOsService {
baos.write((byte) (hasReply ? 1 : 0));
if (version >= 5) {
baos.write(1); // ?
baos.write(0); // 1 for silent
}
if (supportsPictures) {
baos.write((byte) (notificationSpec.picturePath != null ? 1 : 0));
@ -366,7 +366,9 @@ public class ZeppOsNotificationService extends AbstractZeppOsService {
}
}
if (supportsNotificationKey) {
baos.write(notificationSpec.key.getBytes(StandardCharsets.UTF_8));
if (notificationSpec.key != null) {
baos.write(notificationSpec.key.getBytes(StandardCharsets.UTF_8));
}
baos.write(0);
}