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

Skip to content
Commit 9144c23b authored by Juan Sebastian Martinez's avatar Juan Sebastian Martinez
Browse files

Adding a SliderDragVelocityProvider for slider haptics

The provider is a small abstraction around different methods to obtain
the velocity with which a slider is being dragged. This can make the
SliderHapticFeedbackProvider usable for SeekBars as well as Slider
composables. Velocity computation can be done in any arbitrary unit
instead of only pixels. This is now reflected on the
SliderHapticFeedbackConfig docstring

Test: atest SystemUITests:SliderHapticFeedbackProviderTest
Flag: NONE minor refactor to adapt for future usages
Bug: 356389497
Change-Id: I4d31923c2cf9eecb138dac36af02d019c9a6f831
parent b13bf71c
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