diff options
| author | petter <39340152+petterhs@users.noreply.github.com> | 2021-02-07 12:31:02 (GMT) |
|---|---|---|
| committer | petter <39340152+petterhs@users.noreply.github.com> | 2021-02-07 12:31:02 (GMT) |
| commit | 1e2cc3ce91b402459790332b84e3f8dcbe5dc340 (patch) | |
| tree | 4d75e4dad6ed4fdb7fa62d964ae007982ca614b7 /src/displayapp | |
| parent | 7ab153cd7690db8a43bde1af792edecc5e0f8d5d (diff) | |
add vibration toggle
Diffstat (limited to 'src/displayapp')
| -rw-r--r-- | src/displayapp/screens/Notifications.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/displayapp/screens/Notifications.cpp b/src/displayapp/screens/Notifications.cpp index ece9eb0..b481c97 100644 --- a/src/displayapp/screens/Notifications.cpp +++ b/src/displayapp/screens/Notifications.cpp @@ -92,6 +92,10 @@ bool Notifications::OnTouchEvent(Pinetime::Applications::TouchEvents event) { currentItem.reset(new NotificationItem("\nNotification", nextNotification.message.data(), nextNotification.index, notificationManager.NbNotifications(), mode)); } return true; + case Pinetime::Applications::TouchEvents::LongTap: { + notificationManager.toggleVibrations(); + return true; + } default: return false; } |
