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
|
// 3.x notification
|
||||||
String[] parts = {title, subtitle, body};
|
String[] parts = {title, subtitle, body};
|
||||||
return encodeBlobdbNotification((int) (ts & 0xffffffff), parts);
|
return encodeBlobdbNotification((int) (ts & 0xffffffff), parts);
|
||||||
} else if (mForceProtocol) {
|
} else if (mForceProtocol || type != NOTIFICATION_EMAIL) {
|
||||||
// 2.x notification
|
// 2.x notification
|
||||||
return encodeExtensibleNotification(id, (int) (ts & 0xffffffff), title, subtitle, body, type);
|
return encodeExtensibleNotification(id, (int) (ts & 0xffffffff), title, subtitle, body, type);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue