Timeline : add non empty content to displayable conditions => should probably be removed later if we want to handle this case with special epoxy item.

This commit is contained in:
ganfra 2019-03-28 16:24:40 +01:00
parent a7b81a4671
commit 2e2d5b9f86

View file

@ -39,7 +39,7 @@ object TimelineDisplayableEvents {
}
fun TimelineEvent.isDisplayable(): Boolean {
return TimelineDisplayableEvents.DISPLAYABLE_TYPES.contains(root.type)
return TimelineDisplayableEvents.DISPLAYABLE_TYPES.contains(root.type) && !root.content.isNullOrEmpty()
}
fun List<TimelineEvent>.filterDisplayableEvents(): List<TimelineEvent> {