kopia lustrzana https://github.com/ryukoposting/Signal-Android
Always display the date in story viewer.
rodzic
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) {
|
||||
|
|
Ładowanie…
Reference in New Issue