mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-11 18:35:49 +01:00
Zepp OS 3.5+: Fix notification vibration
This commit is contained in:
parent
199a6835a2
commit
f4bc2ed6af
@ -357,7 +357,7 @@ public class ZeppOsNotificationService extends AbstractZeppOsService {
|
|||||||
|
|
||||||
baos.write((byte) (hasReply ? 1 : 0));
|
baos.write((byte) (hasReply ? 1 : 0));
|
||||||
if (version >= 5) {
|
if (version >= 5) {
|
||||||
baos.write(1); // ?
|
baos.write(0); // 1 for silent
|
||||||
}
|
}
|
||||||
if (supportsPictures) {
|
if (supportsPictures) {
|
||||||
baos.write((byte) (notificationSpec.picturePath != null ? 1 : 0));
|
baos.write((byte) (notificationSpec.picturePath != null ? 1 : 0));
|
||||||
@ -366,7 +366,9 @@ public class ZeppOsNotificationService extends AbstractZeppOsService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (supportsNotificationKey) {
|
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);
|
baos.write(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user