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

Skip to content
Commit cf92b9b3 authored by omarmt's avatar omarmt
Browse files

Add ScrollController in PriorityNestedScrollConnection

Now, `onStart` needs to provides a `ScrollController` to manage the
scrolling.

A PriorityNestedScrollConnection ensures only one ScrollController is
active at a time, guaranteeing methods are called in the correct
sequence.

The ScrollController provides control over the scroll gesture.
It allows you to:
- Scroll the content by a given pixel amount.
- Stop the scrolling with a given initial velocity.
- Cancel the current scroll operation.

Test: Refactor. Manually tested on the demo app and Flexiglass
Bug: 371984715
Flag: com.android.systemui.scene_container
Change-Id: I86724b73f4178995c39d167daea0a7de6370f7d4
parent 80d63f34
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