add vibration toggle

This commit is contained in:
petter 2021-02-07 13:31:02 +01:00
parent 7ab153cd76
commit 1e2cc3ce91
4 changed files with 16 additions and 1 deletions

View file

@ -71,6 +71,14 @@ bool NotificationManager::AreNewNotificationsAvailable() {
return newNotification;
}
bool NotificationManager::isVibrationEnabled() {
return vibrationEnabled;
}
void NotificationManager::toggleVibrations() {
vibrationEnabled = !vibrationEnabled;
}
bool NotificationManager::ClearNewNotificationFlag() {
return newNotification.exchange(false);
}