diff --git a/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/AbsMessageItem.kt b/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/AbsMessageItem.kt index 3f2cfd4b..5ff41a01 100644 --- a/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/AbsMessageItem.kt +++ b/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/AbsMessageItem.kt @@ -21,13 +21,10 @@ import android.widget.ImageView import android.widget.TextView import im.vector.riotredesign.R import com.airbnb.epoxy.EpoxyAttribute -import com.jakewharton.rxbinding2.view.RxView -import im.vector.riotredesign.core.epoxy.VectorEpoxyHolder -import im.vector.riotredesign.core.epoxy.VectorEpoxyModel import im.vector.riotredesign.features.home.AvatarRenderer -abstract class AbsMessageItem : AEventItemBase() { +abstract class AbsMessageItem : BaseEventItem() { abstract val informationData: MessageInformationData diff --git a/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/AEventItemBase.kt b/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/BaseEventItem.kt similarity index 96% rename from vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/AEventItemBase.kt rename to vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/BaseEventItem.kt index ad7d55d2..7e6a2bc1 100644 --- a/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/AEventItemBase.kt +++ b/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/BaseEventItem.kt @@ -25,7 +25,7 @@ import im.vector.riotredesign.R import im.vector.riotredesign.core.epoxy.VectorEpoxyHolder import im.vector.riotredesign.core.epoxy.VectorEpoxyModel -abstract class AEventItemBase : VectorEpoxyModel() { +abstract class BaseEventItem : VectorEpoxyModel() { var avatarStyle: AvatarStyle = Companion.AvatarStyle.SMALL diff --git a/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/DefaultItem.kt b/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/DefaultItem.kt index 5e3594c5..3985e8c1 100644 --- a/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/DefaultItem.kt +++ b/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/DefaultItem.kt @@ -22,7 +22,7 @@ import com.airbnb.epoxy.EpoxyModelClass import im.vector.riotredesign.R @EpoxyModelClass(layout = R.layout.item_timeline_event_base_noinfo) -abstract class DefaultItem : AEventItemBase() { +abstract class DefaultItem : BaseEventItem() { @EpoxyAttribute var text: CharSequence? = null diff --git a/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/MergedHeaderItem.kt b/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/MergedHeaderItem.kt index 227b0e1d..6cdd7e15 100644 --- a/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/MergedHeaderItem.kt +++ b/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/MergedHeaderItem.kt @@ -31,7 +31,7 @@ data class MergedHeaderItem(private val isCollapsed: Boolean, private val mergeId: String, private val mergeData: List, private val onCollapsedStateChanged: (Boolean) -> Unit -) : AEventItemBase() { +) : BaseEventItem() { private val distinctMergeData = mergeData.distinctBy { it.userId } diff --git a/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/NoticeItem.kt b/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/NoticeItem.kt index a16ac254..dd06cb0c 100644 --- a/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/NoticeItem.kt +++ b/vector/src/main/java/im/vector/riotredesign/features/home/room/detail/timeline/item/NoticeItem.kt @@ -25,7 +25,7 @@ import im.vector.riotredesign.R import im.vector.riotredesign.features.home.AvatarRenderer @EpoxyModelClass(layout = R.layout.item_timeline_event_base_noinfo) -abstract class NoticeItem : AEventItemBase() { +abstract class NoticeItem : BaseEventItem() { @EpoxyAttribute var noticeText: CharSequence? = null