mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Always display the date in story viewer.
This commit is contained in:
committed by
Greyson Parrelli
parent
86a345a4f3
commit
1af576c157
@@ -889,11 +889,7 @@ class StoryViewerPageFragment :
|
||||
}
|
||||
|
||||
private fun presentDate(date: TextView, storyPost: StoryPost) {
|
||||
val messageRecord = storyPost.conversationMessage.messageRecord
|
||||
date.text = when {
|
||||
messageRecord.isOutgoing && !messageRecord.isSent -> getString(R.string.StoriesLandingItem__sending)
|
||||
else -> DateUtils.getBriefRelativeTimeSpanString(context, Locale.getDefault(), storyPost.dateInMilliseconds)
|
||||
}
|
||||
date.text = DateUtils.getBriefRelativeTimeSpanString(context, Locale.getDefault(), storyPost.dateInMilliseconds)
|
||||
}
|
||||
|
||||
private fun presentSenderAvatar(senderAvatar: AvatarImageView, post: StoryPost) {
|
||||
|
||||
Reference in New Issue
Block a user