using non final id reference for stub id, ids in library modules are not final

This commit is contained in:
Adam Brown 2022-07-11 15:07:23 +01:00
parent 657796c8b5
commit bbbea4f316
19 changed files with 19 additions and 19 deletions

View File

@ -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(

View File

@ -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
}
}

View File

@ -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(

View File

@ -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(

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -47,6 +47,6 @@ abstract class MessageLiveLocationInactiveItem :
}
companion object {
private const val STUB_ID = R.id.messageContentLiveLocationInactiveStub
private val STUB_ID = R.id.messageContentLiveLocationInactiveStub
}
}

View File

@ -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
}
}

View File

@ -47,6 +47,6 @@ abstract class MessageLiveLocationStartItem :
}
companion object {
private const val STUB_ID = R.id.messageContentLiveLocationStartStub
private val STUB_ID = R.id.messageContentLiveLocationStartStub
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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
}
/**

View File

@ -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
}
/**

View File

@ -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
}
/**