using non final id reference for stub id, ids in library modules are not final
This commit is contained in:
parent
657796c8b5
commit
bbbea4f316
|
@ -246,7 +246,7 @@ abstract class CallTileTimelineItem : AbsBaseMessageItem<CallTileTimelineItem.Ho
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageCallStub
|
||||
private val STUB_ID = R.id.messageCallStub
|
||||
}
|
||||
|
||||
data class Attributes(
|
||||
|
|
|
@ -61,6 +61,6 @@ abstract class DefaultItem : BaseEventItem<DefaultItem.Holder>(R.layout.item_tim
|
|||
)
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageContentDefaultStub
|
||||
private val STUB_ID = R.id.messageContentDefaultStub
|
||||
}
|
||||
}
|
||||
|
|
|
@ -271,7 +271,7 @@ abstract class MergedRoomCreationItem : BasedMergedItem<MergedRoomCreationItem.H
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageContentMergedCreationStub
|
||||
private val STUB_ID = R.id.messageContentMergedCreationStub
|
||||
}
|
||||
|
||||
data class Attributes(
|
||||
|
|
|
@ -63,7 +63,7 @@ abstract class MergedSimilarEventsItem : BasedMergedItem<MergedSimilarEventsItem
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageContentMergedHeaderStub
|
||||
private val STUB_ID = R.id.messageContentMergedHeaderStub
|
||||
}
|
||||
|
||||
data class Attributes(
|
||||
|
|
|
@ -210,6 +210,6 @@ abstract class MessageAudioItem : AbsMessageItem<MessageAudioItem.Holder>() {
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageContentAudioStub
|
||||
private val STUB_ID = R.id.messageContentAudioStub
|
||||
}
|
||||
}
|
||||
|
|
|
@ -118,6 +118,6 @@ abstract class MessageFileItem : AbsMessageItem<MessageFileItem.Holder>() {
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageContentFileStub
|
||||
private val STUB_ID = R.id.messageContentFileStub
|
||||
}
|
||||
}
|
||||
|
|
|
@ -113,6 +113,6 @@ abstract class MessageImageVideoItem : AbsMessageItem<MessageImageVideoItem.Hold
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageContentMediaStub
|
||||
private val STUB_ID = R.id.messageContentMediaStub
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,6 +47,6 @@ abstract class MessageLiveLocationInactiveItem :
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageContentLiveLocationInactiveStub
|
||||
private val STUB_ID = R.id.messageContentLiveLocationInactiveStub
|
||||
}
|
||||
}
|
||||
|
|
|
@ -116,6 +116,6 @@ abstract class MessageLiveLocationItem : AbsMessageLocationItem<MessageLiveLocat
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageContentLiveLocationStub
|
||||
private val STUB_ID = R.id.messageContentLiveLocationStub
|
||||
}
|
||||
}
|
||||
|
|
|
@ -47,6 +47,6 @@ abstract class MessageLiveLocationStartItem :
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageContentLiveLocationStartStub
|
||||
private val STUB_ID = R.id.messageContentLiveLocationStartStub
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,6 +27,6 @@ abstract class MessageLocationItem : AbsMessageLocationItem<MessageLocationItem.
|
|||
class Holder : AbsMessageLocationItem.Holder(STUB_ID)
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageContentLocationStub
|
||||
private val STUB_ID = R.id.messageContentLocationStub
|
||||
}
|
||||
}
|
||||
|
|
|
@ -144,6 +144,6 @@ abstract class MessageTextItem : AbsMessageItem<MessageTextItem.Holder>() {
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageContentTextStub
|
||||
private val STUB_ID = R.id.messageContentTextStub
|
||||
}
|
||||
}
|
||||
|
|
|
@ -179,6 +179,6 @@ abstract class MessageVoiceItem : AbsMessageItem<MessageVoiceItem.Holder>() {
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageContentVoiceStub
|
||||
private val STUB_ID = R.id.messageContentVoiceStub
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,6 +83,6 @@ abstract class NoticeItem : BaseEventItem<NoticeItem.Holder>(R.layout.item_timel
|
|||
)
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageContentNoticeStub
|
||||
private val STUB_ID = R.id.messageContentNoticeStub
|
||||
}
|
||||
}
|
||||
|
|
|
@ -92,6 +92,6 @@ abstract class PollItem : AbsMessageItem<PollItem.Holder>() {
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageContentPollStub
|
||||
private val STUB_ID = R.id.messageContentPollStub
|
||||
}
|
||||
}
|
||||
|
|
|
@ -29,6 +29,6 @@ abstract class RedactedMessageItem : AbsMessageItem<RedactedMessageItem.Holder>(
|
|||
class Holder : AbsMessageItem.Holder(STUB_ID)
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageContentRedactedStub
|
||||
private val STUB_ID = R.id.messageContentRedactedStub
|
||||
}
|
||||
}
|
||||
|
|
|
@ -76,7 +76,7 @@ abstract class StatusTileTimelineItem : AbsBaseMessageItem<StatusTileTimelineIte
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageVerificationDoneStub
|
||||
private val STUB_ID = R.id.messageVerificationDoneStub
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -137,7 +137,7 @@ abstract class VerificationRequestItem : AbsBaseMessageItem<VerificationRequestI
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageVerificationRequestStub
|
||||
private val STUB_ID = R.id.messageVerificationRequestStub
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -66,7 +66,7 @@ abstract class WidgetTileTimelineItem : AbsBaseMessageItem<WidgetTileTimelineIte
|
|||
}
|
||||
|
||||
companion object {
|
||||
private const val STUB_ID = R.id.messageWidgetStub
|
||||
private val STUB_ID = R.id.messageWidgetStub
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue