[STL] Increase default transitionInterceptionThreshold to 0.05
In SceneTransitionLayout, the transitionInterceptionThreshold value is used during a transition to decide whether the new gesture should control the transition or the element in the scene. The default value is currently 0, which means that the animation does not need to be 100% complete before the gesture can control the transition in the STL. This CL sets the tolerance value to 0.05 (5% tolerance), which means that the gesture will control the elements of the scene when the animation is 95% complete. This is because many animations slow down as they approach completion and may appear finished even when they have not reached 100%. See b/345176528#comment2 - before.mp4 vs after.mp4 Test: Manually tested on our demo app Bug: 345176528 Flag: com.android.systemui.scene_container Change-Id: Ia8c354a8137da17591e3275e0de10b18fa21bec6
Loading
Please register or sign in to comment