Add requestLayout when textfields are updated.
These fields appear to not resize themselves correctly and there appears to be a possible race where they can end up wrongly ellipsizing themselves.
This commit is contained in:
parent
d8d95d8efe
commit
8dc45263cd
1 changed files with 2 additions and 0 deletions
|
@ -894,10 +894,12 @@ class StoryViewerPageFragment :
|
|||
}
|
||||
|
||||
from.setOnClickListener { onSenderClicked(storyPost.sender.id) }
|
||||
from.requestLayout()
|
||||
}
|
||||
|
||||
private fun presentDate(date: TextView, storyPost: StoryPost) {
|
||||
date.text = DateUtils.getBriefRelativeTimeSpanString(context, Locale.getDefault(), storyPost.dateInMilliseconds)
|
||||
date.requestLayout()
|
||||
}
|
||||
|
||||
private fun presentSenderAvatar(senderAvatar: AvatarImageView, post: StoryPost) {
|
||||
|
|
Loading…
Add table
Reference in a new issue