chore: do not show "today" next to today timestamps
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
879ddf03d6
commit
2ea495f401
|
|
@ -161,6 +161,9 @@ fun formatLongAsTime(time: Long): String {
|
|||
)
|
||||
val relativeTime = DateFormat.getTimeInstance(DateFormat.SHORT).format(date)
|
||||
|
||||
if (DateUtils.isToday(time)) {
|
||||
return relativeTime
|
||||
}
|
||||
"$relativeDate $relativeTime"
|
||||
} else {
|
||||
val absoluteDate = DateFormat.getDateInstance(DateFormat.SHORT).format(date)
|
||||
|
|
|
|||
Loading…
Reference in New Issue