- Open the project in Android Studio. I used
Android Studio Electric Eel | 2022.1.1 Build #AI-221.6008.13.2211.9477386
. The bug is reproducable in newer versions too - Open MainActivity.kt in which
DemoLayout
is present whose pictographic arrangement is given at the end. - Run the project in any emulator or physical device.
- Open the Layout Inspector to see the Recomposition counts
- Start typing any text in the
OutlinedTextField
. - The recomposition counts of
OutlinedTextField
increases which is expected but the recomposition counts ofImage
also increases which is neither expected and nor should it happen. To draw parallels, there is also aBox
composable present in the same Row as Image but that doesn't recomposes too which is the main reason to reach to a conclusion that there is a bug in the Image Composable of theandroidx.compose.foundation
library
avidraghav / bugdemo Goto Github PK
View Code? Open in Web Editor NEWhttps://issuetracker.google.com/issues/271552515