Skip to content

Commit

Permalink
improve random emojis
Browse files Browse the repository at this point in the history
  • Loading branch information
T8RIN committed Feb 18, 2024
1 parent 29fb5cb commit 9ed26d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9ed26d2

Please sign in to comment.