Skip to content
Snippets Groups Projects
Verified Commit 778bc745 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Set the timestamp of notifications correctly

parent fa7f3e59
Branches
Tags
No related merge requests found
......@@ -180,6 +180,7 @@ class QuasseldroidNotificationManager @Inject constructor(private val context: C
replyPendingIntent
).addRemoteInput(remoteInput).build()
)
.setWhen(notifications.last().time.toEpochMilli())
.apply {
if (bufferInfo.type.hasFlag(Buffer_Type.QueryBuffer)) {
notifications.lastOrNull()?.avatar?.let {
......@@ -187,8 +188,7 @@ class QuasseldroidNotificationManager @Inject constructor(private val context: C
}
}
}
return Handle(bufferInfo.bufferId,
notification)
return Handle(bufferInfo.bufferId, notification)
}
fun notificationBackground(): Handle {
......@@ -218,8 +218,7 @@ class QuasseldroidNotificationManager @Inject constructor(private val context: C
.setSmallIcon(R.mipmap.ic_logo)
.setColor(context.getColorCompat(R.color.colorPrimary))
.setPriority(NotificationCompat.PRIORITY_MIN)
return Handle(BACKGROUND_NOTIFICATION_ID,
notification)
return Handle(BACKGROUND_NOTIFICATION_ID, notification)
}
fun notify(handle: Handle) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment