mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02: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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user