aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/ble/NotificationManager.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix conflict in NotificationManagerJean-François Milants2025-05-211-1/+1
|\
| * notification: Initialise messageFinlay Davidson2023-03-161-1/+1
| | | | | | | | | | | | Prevents reading uninitialised memory if notification gets cut off due to being more than 100 chars. The last character is assumed to be \0, but it is actually uninitialised.
* | NotificationManager.h: Reorder notification struct fields to allow easier ↵Max Friedrich2023-07-091-3/+4
|/ | | | | | | | | | | | | | creation. (#1774) This commit changes the order for the notification struct fields to allow the creation of notifications using a string literal. ```cpp NotificationManager::Notifiation notification { "String literal with notification text", 42, NotificationManager::Categories::SimpleAlert }; ``` Co-authored-by: minacode <minamoto9@web.de>
* Format header filesFinlay Davidson2023-01-091-0/+2
| | | | In my PR updating clang-format, I forgot to also format the headers.
* Dismiss notifications by swiping rightSimon Willshire2022-06-281-10/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new interface `NotificationManager::Dismiss(id)` to delete a notification with the specified `id`. The animate the notification dismiss the `RightAnim` transition to a black screen is used. After the dismiss the new message is swiped in from below or above. If we dismiss the oldest message (when we are at 5/5, or 3/3), then the new message after a dismiss should appear to come from below. Otherwise (when we are at 2/3) the new message after a dismiss should appear to come from above. Rework the index code to show the index of the currently viewed notification. Instead of calculating the index relative to the oldest `id` introduce a new interface `NotificationManager::IndexOf(id)`. This is done because the `id` of the notifications in the buffer aren't continuous anymore (as some messages could have been dismissed). Rework notification ring buffer to have a beginIdx and a size internally to make the dismissal of notifications easier. Fixes: https://github.com/InfiniTimeOrg/InfiniTime/issues/176 Co-authored-by: Simon Willshire <me@simonwillshire.com> Co-authored-by: Reinhold Gschweicher <pyro4hell@gmail.com>
* Toggle notifications only, keep vibrations.Riku Isokoski2021-09-121-4/+1
|
* Changed access modified indentationAvamander2021-04-241-2/+2
|
* Reformatted all the files according to clang-format styleAvamander2021-04-241-25/+39
|
* Add support for notification title. The notification buffer must contain the ↵Jean-François Milants2021-04-041-0/+4
| | | | | | title and the message separated by a '\0' character. If the buffer does not contain any \0, the whole buffer is considered to be the message of the notification. A default title will be displayed in the notification app.
* Fix merge conflict.Jean-François Milants2021-02-141-0/+3
|\
| * add vibration togglepetter2021-02-071-0/+3
|/
* Include cleanup: componentsokaestne2020-11-161-1/+3
|
* Notifications : Fix copy when the messages is spread across multiple os_mbuf.JF2020-10-221-1/+1
|
* Notifications : Fix display of notification index/number.JF2020-10-211-1/+1
|
* Increase max size of notification message to 100 char.JF2020-10-211-1/+2
| | | | Fix bug in message handling that would ignore the last character of the notification.
* Integrate new notification UI with notifications coming from BLEJF2020-10-201-1/+14
|
* Fixed all the includes that were broken due to the renamesAvamander2020-10-021-0/+29