diff --git a/core/settings/src/main/java/ru/tech/imageresizershrinker/core/settings/presentation/UiSettingsState.kt b/core/settings/src/main/java/ru/tech/imageresizershrinker/core/settings/presentation/UiSettingsState.kt index 6fc07d26a0..2dcb06878c 100644 --- a/core/settings/src/main/java/ru/tech/imageresizershrinker/core/settings/presentation/UiSettingsState.kt +++ b/core/settings/src/main/java/ru/tech/imageresizershrinker/core/settings/presentation/UiSettingsState.kt @@ -112,7 +112,7 @@ fun SettingsState.toUiState( getEmojiColorTuple: (String, (ColorTuple?) -> Unit) -> Unit = { _, _ -> }, randomEmojiKey: Any? = null ): UiSettingsState { - val selectedEmojiIndex by remember(selectedEmoji, useRandomEmojis, randomEmojiKey) { + val selectedEmojiIndex by remember(selectedEmoji, useRandomEmojis, randomEmojiKey, this) { derivedStateOf { selectedEmoji?.takeIf { it != -1 }?.let { if (useRandomEmojis) allEmojis.indices.random()