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
}
val topSuggestionIcon = painterResource(id = R.drawable.top_suggestion)
//val topSuggestionIcon = painterResource(id = R.drawable.top_suggestion)
val textButtonModifier = when (isPrimary) {
true -> Modifier.drawBehind {
with(topSuggestionIcon) {
/*with(topSuggestionIcon) {
val iconSize = topSuggestionIcon.intrinsicSize
translate(
left = (size.width - iconSize.width) / 2.0f,
top = size.height - iconSize.height * 2.0f
) {
draw(topSuggestionIcon.intrinsicSize)
draw(topSuggestionIcon.intrinsicSize) // Needs to be tinted
}
}
}*/
}
false -> Modifier
}