Refactor logic to allow touches to use SceneTransitionLayout APIs
MutableSceneTransitionLayoutState already offers a way to pass in a
function which gets called when a gesture is detected, to determine
whether the gesture is allowed to change scenes or not. This change
migrates the existing mechanism which disallows touches to this built-in
API instead.
This has the benefit of not needing to recompose the container when the
shade is expanded/collapsed.
In the future, we can also check falsing signal inside this same
callback.
Bug: 336330508
Test: atest CommunalViewModelTest
Flag: ACONFIG com.android.systemui.communal_hub TEAMFOOD
Change-Id: I558f03b5e26d5d520bfd07f690278a049e56fd2c
3 files changed