···3636 fun addRecord() {
3737 val name = "Name"
3838 val color = ColorMapper.getAvailableColors().first()
3939- val icon = iconMapper.availableIconsNames.values.first()
3939+ val icon = iconImageMapper.availableIconsNames.values.first()
4040 val comment = "Comment"
41414242 // Add activity
···4141 val newName = "Test2"
4242 val firstColor = ColorMapper.getAvailableColors().first()
4343 val lastColor = ColorMapper.getAvailableColors().last()
4444- val firstIcon = iconMapper.availableIconsNames.values.first()
4545- val lastIcon = iconMapper.availableIconsNames.values.last()
4444+ val firstIcon = iconImageMapper.availableIconsNames.values.first()
4545+ val lastIcon = iconImageMapper.availableIconsNames.values.last()
4646 val comment = "comment"
4747 val newComment = "new comment"
4848
···3030 fun changeUntracked() {
3131 val name = "Test"
3232 val color = ColorMapper.getAvailableColors().first()
3333- val icon = iconMapper.availableIconsNames.values.first()
3333+ val icon = iconImageMapper.availableIconsNames.values.first()
34343535 // Add activity
3636 testUtils.addActivity(name, color, icon)
···2727 fun deleteRecord() {
2828 val name = "Name"
2929 val color = ColorMapper.getAvailableColors().first()
3030- val icon = iconMapper.availableIconsNames.values.first()
3030+ val icon = iconImageMapper.availableIconsNames.values.first()
31313232 // Add activity
3333 testUtils.addActivity(name, color, icon)
···2929 fun deleteRecordType() {
3030 val name = "Test"
3131 val color = ColorMapper.getAvailableColors().first()
3232- val icon = iconMapper.availableIconsNames.values.first()
3232+ val icon = iconImageMapper.availableIconsNames.values.first()
33333434 tryAction { clickOnViewWithText(R.string.running_records_add_type) }
3535 checkViewIsNotDisplayed(withId(R.id.btnChangeRecordTypeDelete))
···4040 fun showUntrackedSetting() {
4141 val name = "Test"
4242 val color = ColorMapper.getAvailableColors().first()
4343- val icon = iconMapper.availableIconsNames.values.first()
4343+ val icon = iconImageMapper.availableIconsNames.values.first()
44444545 // Add activity
4646 testUtils.addActivity(name, color, icon)
···3636 fun statisticsDetailOverall() {
3737 val name = "Test"
3838 val color = ColorMapper.getAvailableColors().first()
3939- val icon = iconMapper.availableIconsNames.values.first()
3939+ val icon = iconImageMapper.availableIconsNames.values.first()
40404141 // Add activity
4242 testUtils.addActivity(name, color, icon)
···105105 fun statisticsDetailDay() {
106106 val name = "Test"
107107 val color = ColorMapper.getAvailableColors().first()
108108- val icon = iconMapper.availableIconsNames.values.first()
108108+ val icon = iconImageMapper.availableIconsNames.values.first()
109109110110 // Add activity
111111 testUtils.addActivity(name, color, icon)
···176176 fun statisticsDetailWeek() {
177177 val name = "Test"
178178 val color = ColorMapper.getAvailableColors().first()
179179- val icon = iconMapper.availableIconsNames.values.first()
179179+ val icon = iconImageMapper.availableIconsNames.values.first()
180180181181 // Add activity
182182 testUtils.addActivity(name, color, icon)
···247247 fun statisticsDetailMonth() {
248248 val name = "Test"
249249 val color = ColorMapper.getAvailableColors().first()
250250- val icon = iconMapper.availableIconsNames.values.first()
250250+ val icon = iconImageMapper.availableIconsNames.values.first()
251251252252 // Add activity
253253 testUtils.addActivity(name, color, icon)
···318318 fun statisticsDetailYear() {
319319 val name = "Test"
320320 val color = ColorMapper.getAvailableColors().first()
321321- val icon = iconMapper.availableIconsNames.values.first()
321321+ val icon = iconImageMapper.availableIconsNames.values.first()
322322323323 // Add activity
324324 testUtils.addActivity(name, color, icon)
···11-package com.example.util.simpletimetracker.domain.model
22-33-data class EmojiCategory(
44- val type: EmojiType,
55- val name: String,
66- val emojiCode: String
77-)
···11+package com.example.util.simpletimetracker.domain.model
22+33+data class IconEmojiCategory(
44+ val type: IconEmojiType,
55+ val name: String,
66+ val categoryIcon: Int
77+)
···11+package com.example.util.simpletimetracker.domain.model
22+33+data class IconImageCategory(
44+ val type: IconImageType,
55+ val name: String,
66+ val categoryIcon: Int
77+)
···11-package com.example.util.simpletimetracker.feature_change_record_type.viewData
22-33-import com.example.util.simpletimetracker.core.adapter.ViewHolderType
44-import com.example.util.simpletimetracker.domain.model.EmojiType
55-66-data class ChangeRecordTypeEmojiCategoryViewData(
77- val type: EmojiType,
88- val emoji: String
99-): ViewHolderType {
1010-1111- override fun getUniqueId(): Long = type.ordinal.toLong()
1212-1313- override fun isValidType(other: ViewHolderType): Boolean = other is ChangeRecordTypeEmojiCategoryViewData
1414-}
···11package com.example.util.simpletimetracker.feature_change_record_type.viewData
2233import com.example.util.simpletimetracker.core.adapter.ViewHolderType
44-import com.example.util.simpletimetracker.domain.model.EmojiType
5465data class ChangeRecordTypeIconCategoryInfoViewData(
77- val type: EmojiType,
66+ val type: ChangeRecordTypeIconTypeViewData,
87 val text: String
98) : ViewHolderType {
1091111- override fun getUniqueId(): Long = type.ordinal.toLong()
1010+ override fun getUniqueId(): Long = type.id
12111313- override fun isValidType(other: ViewHolderType): Boolean = other is ChangeRecordTypeIconCategoryInfoViewData
1212+ override fun isValidType(other: ViewHolderType): Boolean =
1313+ other is ChangeRecordTypeIconCategoryInfoViewData
1414}
···11+package com.example.util.simpletimetracker.feature_change_record_type.viewData
22+33+import com.example.util.simpletimetracker.core.adapter.ViewHolderType
44+55+data class ChangeRecordTypeIconCategoryViewData(
66+ val type: ChangeRecordTypeIconTypeViewData,
77+ val categoryIcon: Int
88+): ViewHolderType {
99+1010+ override fun getUniqueId(): Long = type.id
1111+1212+ override fun isValidType(other: ViewHolderType): Boolean = other is ChangeRecordTypeIconCategoryViewData
1313+}
···11package com.example.util.simpletimetracker.feature_change_record_type.viewData
2233-import com.example.util.simpletimetracker.core.view.buttonsRowView.ButtonsRowViewData
44-import com.example.util.simpletimetracker.domain.model.IconType
33+import com.example.util.simpletimetracker.domain.model.IconEmojiType
44+import com.example.util.simpletimetracker.domain.model.IconImageType
55+66+sealed class ChangeRecordTypeIconTypeViewData {
77+ abstract val id: Long
5866-data class ChangeRecordTypeIconTypeViewData(
77- val iconType: IconType,
88- override val name: String,
99- override val isSelected: Boolean
1010-) : ButtonsRowViewData() {
99+ data class Image(
1010+ val type: IconImageType,
1111+ override val id: Long = type.ordinal.toLong()
1212+ ) : ChangeRecordTypeIconTypeViewData()
11131212- override val id: Long = iconType.ordinal.toLong()
1414+ data class Emoji(
1515+ val type: IconEmojiType,
1616+ override val id: Long = type.ordinal.toLong()
1717+ ) : ChangeRecordTypeIconTypeViewData()
1318}