···11+package com.example.util.simpletimetracker.feature_statistics_detail.viewData
22+33+import com.example.util.simpletimetracker.feature_base_adapter.ViewHolderType
44+55+object StatisticsDetailPreviewCompareViewData : ViewHolderType {
66+77+ // Only one item in recycler
88+ override fun getUniqueId(): Long = 1L
99+1010+ override fun isValidType(other: ViewHolderType): Boolean =
1111+ other is StatisticsDetailPreviewCompareViewData
1212+}
···6677data class StatisticsDetailPreviewViewData(
88 val id: Long,
99+ val type: Type,
910 val name: String,
1011 val iconId: RecordTypeIcon? = null,
1112 @ColorInt val color: Int
···1415 override fun getUniqueId(): Long = id
15161617 override fun isValidType(other: ViewHolderType): Boolean =
1717- other is StatisticsDetailPreviewViewData
1818+ other is StatisticsDetailPreviewViewData && other.type == type
1919+2020+ enum class Type {
2121+ FILTER, COMPARISON
2222+ }
1823}