1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

Initial implementation of grouped notifications

This commit is contained in:
purian23
2025-07-14 10:50:48 -04:00
parent 68bcc2b049
commit cf5c26522b
4 changed files with 654 additions and 216 deletions

View File

@@ -245,10 +245,13 @@ ShellRoot {
"notification": notification // Keep reference for action handling
}
// Add to history (prepend to show newest first)
// Add to grouped notifications
NotificationGroupingService.addNotification(notifObj)
// Also add to legacy flat history for backwards compatibility
notificationHistory.insert(0, notifObj)
// Keep only last 50 notifications
// Keep only last 50 notifications in flat history
while (notificationHistory.count > 50) {
notificationHistory.remove(notificationHistory.count - 1)
}
@@ -303,7 +306,7 @@ ShellRoot {
bluetoothAvailable: root.bluetoothAvailable
bluetoothEnabled: root.bluetoothEnabled
shellRoot: root
notificationCount: notificationHistory.count
notificationCount: NotificationGroupingService.totalCount
processDropdown: processListDropdown
// Connect tray menu properties