I'm trying write compose to bitmap. https://developer.android.com/develop/ui/compose/graphics/draw/modifiers#composable-to-bitmap
Text("Hello $name!",
modifier = Modifier
.drawWithContent {
graphicsLayer.record {
[email protected]()
}
drawLayer(graphicsLayer)
},
)
IconButton({
scope.launch(Dispatchers.IO) {
mBitmap = graphicsLayer.toImageBitmap()
showDialog = true
}
} ...
On Samsung SM-A720F (Android 8) I got:

Like horizontal synchronization failure.
On other smartphones and emulator I got the corrent bitmap:

How to fix this bug on Samsung SM-A720F?