Add snapToIdleIfClose in BaseSceneTransitionLayoutState

Check if a transition is in progress. If the progress value is near 0 or
 1, immediately snap to the closest scene.
We ignore the currentScene, assuming the user wants to go to the closest
 scene.

Test: atest SceneTransitionLayoutStateTest
Bug: 317063114
Flag: NA
Change-Id: I874adb96813a3071fa0a782bb9b1b355d6ef0f2c
3 files changed