Filter group summary notifications in app detail popup

This commit is contained in:
MM20 2023-05-09 16:11:41 +02:00
parent b678662121
commit e370a32b66
No known key found for this signature in database
GPG Key ID: 0B61A8F2DEAFA389
2 changed files with 1 additions and 2 deletions

View File

@ -91,7 +91,7 @@ class SearchableItemVM : ListItemViewModel(), KoinComponent {
val notifications = searchable.flatMapLatest { searchable ->
if (searchable !is LauncherApp) emptyFlow()
else notificationRepository.notifications.map { it.filter { it.packageName == searchable.`package` } }
else notificationRepository.notifications.map { it.filter { it.packageName == searchable.`package` && !it.isGroupSummary } }
}
val shortcuts = searchable.map {

View File

@ -1,6 +1,5 @@
package de.mm20.launcher2.badges.providers
import android.app.Notification
import de.mm20.launcher2.badges.Badge
import de.mm20.launcher2.notifications.NotificationRepository
import de.mm20.launcher2.search.Searchable