Skip to content

Commit

Permalink
Fix emojis quality
Browse files Browse the repository at this point in the history
  • Loading branch information
T8RIN committed Nov 27, 2024
1 parent 462a216 commit 24e8dee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ fun EmojiItem(
modifier: Modifier = Modifier,
fontSize: TextUnit = LocalTextStyle.current.fontSize,
fontScale: Float,
isFullQuality: Boolean = true,
onNoEmoji: @Composable (size: Dp) -> Unit = {}
) {
val context = LocalContext.current
Expand All @@ -80,6 +79,7 @@ fun EmojiItem(
.data(emoji)
.memoryCacheKey(emoji)
.diskCacheKey(emoji)
.size(512)
.listener(
onStart = {
shimmering = true
Expand All @@ -93,9 +93,7 @@ fun EmojiItem(
}
}.value,
imageLoader = LocalImageLoader.current,
filterQuality = if (isFullQuality) {
FilterQuality.High
} else FilterQuality.None
filterQuality = FilterQuality.High
)

AnimatedContent(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,7 @@ fun EmojiSelectionSheet(
EmojiItem(
emoji = emoji.toString(),
fontSize = MaterialTheme.typography.headlineLarge.fontSize,
fontScale = 1f,
isFullQuality = false
fontScale = 1f
)
}
}
Expand Down

0 comments on commit 24e8dee

Please sign in to comment.