commit | 640d1ff6b6d6457d43b7ef62e55101d550919f48 | [log] [tgz] |
---|---|---|
author | Nader Jawad <[email protected]> | Wed Jul 24 01:20:30 2024 +0000 |
committer | Gerrit Code Review <[email protected]> | Wed Jul 24 01:20:30 2024 +0000 |
tree | df7d83452e996ab120daac27acc11c4e3da38dde | |
parent | dee03ec559eef46210b79fa7e8c587f6fafbfd6c [diff] | |
parent | 26b1654c456d945c4d692da202feade80f0fbeb6 [diff] |
Merge "Fix testDensityChangeInvalidatesDrawWithCache" into androidx-main
diff --git a/compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/draw/DrawModifierTest.kt b/compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/draw/DrawModifierTest.kt index f58c9ee..7aa5b1a 100644 --- a/compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/draw/DrawModifierTest.kt +++ b/compose/ui/ui/src/androidInstrumentedTest/kotlin/androidx/compose/ui/draw/DrawModifierTest.kt
@@ -292,8 +292,10 @@ modifier = Modifier.drawWithCache { resolvedDensity = Density(density, fontScale) - drawLatch.countDown() - onDrawBehind { drawDensity = Density(density, fontScale) } + onDrawBehind { + drawDensity = Density(density, fontScale) + drawLatch.countDown() + } }, text = "Change Layout Direction" )