-
- Downloads
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
Showing
- packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/NotificationScrimNestedScrollConnection.kt 35 additions, 26 deletions.../ui/composable/NotificationScrimNestedScrollConnection.kt
- packages/SystemUI/compose/features/src/com/android/systemui/notifications/ui/composable/NotificationStackNestedScrollConnection.kt 24 additions, 13 deletions.../ui/composable/NotificationStackNestedScrollConnection.kt
- packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/DraggableHandler.kt 53 additions, 44 deletions...c/com/android/compose/animation/scene/DraggableHandler.kt
- packages/SystemUI/compose/scene/src/com/android/compose/nestedscroll/LargeTopAppBarNestedScrollConnection.kt 34 additions, 18 deletions...pose/nestedscroll/LargeTopAppBarNestedScrollConnection.kt
- packages/SystemUI/compose/scene/src/com/android/compose/nestedscroll/PriorityNestedScrollConnection.kt 234 additions, 130 deletions...id/compose/nestedscroll/PriorityNestedScrollConnection.kt
- packages/SystemUI/compose/scene/tests/src/com/android/compose/nestedscroll/PriorityNestedScrollConnectionTest.kt 20 additions, 10 deletions...ompose/nestedscroll/PriorityNestedScrollConnectionTest.kt
Loading
Please register or sign in to comment