Disable top suggestion icon

This commit is contained in:
Aleksandras Kostarevas 2023-08-22 20:40:12 +03:00
parent d11025192e
commit 05fce3bd09

View File

@ -168,18 +168,18 @@ fun RowScope.SuggestionItem(words: SuggestedWords, idx: Int, isPrimary: Boolean,
null null
} }
val topSuggestionIcon = painterResource(id = R.drawable.top_suggestion) //val topSuggestionIcon = painterResource(id = R.drawable.top_suggestion)
val textButtonModifier = when (isPrimary) { val textButtonModifier = when (isPrimary) {
true -> Modifier.drawBehind { true -> Modifier.drawBehind {
with(topSuggestionIcon) { /*with(topSuggestionIcon) {
val iconSize = topSuggestionIcon.intrinsicSize val iconSize = topSuggestionIcon.intrinsicSize
translate( translate(
left = (size.width - iconSize.width) / 2.0f, left = (size.width - iconSize.width) / 2.0f,
top = size.height - iconSize.height * 2.0f top = size.height - iconSize.height * 2.0f
) { ) {
draw(topSuggestionIcon.intrinsicSize) draw(topSuggestionIcon.intrinsicSize) // Needs to be tinted
} }
} }*/
} }
false -> Modifier false -> Modifier
} }