mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-11-29 05:16:51 +01:00
Pebble: always use 2.x notification on FW 2.x except for K9
FW 2.x notifications enables the "dismiss all" action, but for K9 we would loose the mail icon. So K9 still needs the force option.
This commit is contained in:
parent
4ba5a7804a
commit
c69bf1b0af
@ -268,7 +268,7 @@ public class PebbleProtocol extends GBDeviceProtocol {
|
||||
// 3.x notification
|
||||
String[] parts = {title, subtitle, body};
|
||||
return encodeBlobdbNotification((int) (ts & 0xffffffff), parts);
|
||||
} else if (mForceProtocol) {
|
||||
} else if (mForceProtocol || type != NOTIFICATION_EMAIL) {
|
||||
// 2.x notification
|
||||
return encodeExtensibleNotification(id, (int) (ts & 0xffffffff), title, subtitle, body, type);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user