kopia lustrzana https://github.com/vitorpamplona/amethyst
Adding an additional refresher of notification icons based on new notes in the database.
rodzic
ccf7d78cea
commit
4b0d1d32a6
|
@ -121,6 +121,10 @@ private fun NotifiableIcon(item: Route, currentRoute: String?, accountViewModel:
|
|||
hasNewItems = item.hasNewItems(account, notif.cache, context)
|
||||
}
|
||||
|
||||
LaunchedEffect(key1 = db) {
|
||||
hasNewItems = item.hasNewItems(account, notif.cache, context)
|
||||
}
|
||||
|
||||
if (hasNewItems) {
|
||||
Box(
|
||||
Modifier
|
||||
|
|
Ładowanie…
Reference in New Issue