Increase max size of notification message to 100 char.
Fix bug in message handling that would ignore the last character of the notification.
This commit is contained in:
parent
ef5670c7e0
commit
440ae412b9
6 changed files with 30 additions and 41 deletions
|
|
@ -8,7 +8,7 @@ namespace Pinetime {
|
|||
class NotificationManager {
|
||||
public:
|
||||
enum class Categories {Unknown, SimpleAlert, Email, News, IncomingCall, MissedCall, Sms, VoiceMail, Schedule, HighProriotyAlert, InstantMessage };
|
||||
static constexpr uint8_t MessageSize{18};
|
||||
static constexpr uint8_t MessageSize{100};
|
||||
|
||||
struct Notification {
|
||||
using Id = uint8_t;
|
||||
|
|
@ -28,6 +28,7 @@ namespace Pinetime {
|
|||
bool ClearNewNotificationFlag();
|
||||
bool AreNewNotificationsAvailable();
|
||||
|
||||
static constexpr uint8_t MaximumMessageSize() { return MessageSize; };
|
||||
|
||||
private:
|
||||
Notification::Id GetNextId();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue