mirror of
https://github.com/twofas/2fas-android.git
synced 2024-11-21 17:59:50 +01:00
Fix sorting and colors on notifications screen
This commit is contained in:
parent
fce6b00371
commit
2ac74348e7
@ -46,7 +46,7 @@ internal class NotificationsRepositoryImpl(
|
||||
}
|
||||
|
||||
private fun List<Notification>.sortedByTime(): List<Notification> {
|
||||
return sortedWith(compareBy({ it.isRead }, { it.publishTime.unaryMinus() }))
|
||||
return sortedByDescending { it.publishTime }
|
||||
}
|
||||
|
||||
override suspend fun getPeriodicNotificationCounter(): Int {
|
||||
|
@ -98,7 +98,7 @@ private fun ScreenContent(
|
||||
onInternalRouteClick(notification.internalRoute.orEmpty())
|
||||
}
|
||||
}
|
||||
.background(if (notification.isRead) TwTheme.color.surface else TwTheme.color.background)
|
||||
.background(if (notification.isRead) TwTheme.color.background else TwTheme.color.surface)
|
||||
.padding(16.dp)
|
||||
)
|
||||
HorizontalDivider(color = TwTheme.color.divider)
|
||||
|
Loading…
Reference in New Issue
Block a user