Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f9a90d86 authored by Lucas Silva's avatar Lucas Silva
Browse files

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
parent 9adec260
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment