Skip to content
Snippets Groups Projects
Commit ed36c99f authored by Aleksandras Kostarevas's avatar Aleksandras Kostarevas
Browse files

Fix emoji tone popup being misplaced for 1 frame

parent efac63ac
No related branches found
No related tags found
1 merge request!7Merge model-metadata to master
...@@ -226,6 +226,7 @@ fun Emojis( ...@@ -226,6 +226,7 @@ fun Emojis(
var viewWidth by remember { mutableIntStateOf(0) } var viewWidth by remember { mutableIntStateOf(0) }
var viewHeight by remember { mutableIntStateOf(0) } var viewHeight by remember { mutableIntStateOf(0) }
var popupSize by remember { mutableStateOf(IntSize(0, 0)) }
Box(modifier = modifier) { Box(modifier = modifier) {
AndroidView( AndroidView(
...@@ -267,8 +268,6 @@ fun Emojis( ...@@ -267,8 +268,6 @@ fun Emojis(
) )
activePopup?.let { popupInfo -> activePopup?.let { popupInfo ->
var popupSize by remember { mutableStateOf(IntSize(0, 0)) }
val posX = popupInfo.x - popupSize.width / 2 val posX = popupInfo.x - popupSize.width / 2
val posY = popupInfo.y - popupSize.height val posY = popupInfo.y - popupSize.height
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment