summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author omarmt <omarmt@google.com> 2024-01-24 13:13:29 +0000
committer omarmt <omarmt@google.com> 2024-01-31 17:27:27 +0000
commit936ea61036f3f8118b491b113f6f823e8b7aeb1c (patch)
tree5bb24b7ff09f0290271effc5dd2e34109e759812
parent0f06ee2dccdec1643c6a9f965cc319bda35c3b89 (diff)
Update transitionInterceptionThreshold whenever there is a new value
The demo application gave the option to modify the value, however, the behavior remained unchanged. The reason for this was that the layout did not receive the updated value and hence could not reflect the changes. Test: manual tested Bug: 317063114 Flag: NA Change-Id: I82cd1f2efb6fccb06dc5e7f86c950a3c2a9f88c2
-rw-r--r--packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/SceneTransitionLayout.kt1
1 files changed, 1 insertions, 0 deletions
diff --git a/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/SceneTransitionLayout.kt b/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/SceneTransitionLayout.kt
index 5258078e0e9a..d904c8b770bf 100644
--- a/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/SceneTransitionLayout.kt
+++ b/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/SceneTransitionLayout.kt
@@ -504,6 +504,7 @@ internal fun SceneTransitionLayoutForTesting(
layoutImpl.density = density
layoutImpl.swipeSourceDetector = swipeSourceDetector
+ layoutImpl.transitionInterceptionThreshold = transitionInterceptionThreshold
}
layoutImpl.Content(modifier)