Filter group summary notifications in app detail popup
This commit is contained in:
parent
b678662121
commit
e370a32b66
@ -91,7 +91,7 @@ class SearchableItemVM : ListItemViewModel(), KoinComponent {
|
|||||||
|
|
||||||
val notifications = searchable.flatMapLatest { searchable ->
|
val notifications = searchable.flatMapLatest { searchable ->
|
||||||
if (searchable !is LauncherApp) emptyFlow()
|
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 {
|
val shortcuts = searchable.map {
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
package de.mm20.launcher2.badges.providers
|
package de.mm20.launcher2.badges.providers
|
||||||
|
|
||||||
import android.app.Notification
|
|
||||||
import de.mm20.launcher2.badges.Badge
|
import de.mm20.launcher2.badges.Badge
|
||||||
import de.mm20.launcher2.notifications.NotificationRepository
|
import de.mm20.launcher2.notifications.NotificationRepository
|
||||||
import de.mm20.launcher2.search.Searchable
|
import de.mm20.launcher2.search.Searchable
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user