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

Skip to content
Commit 0aaf6a43 authored by Yeabkal Wubshit's avatar Yeabkal Wubshit
Browse files

Create default ScrollFeedbackProvider creator

We're now hiding the specific platform implementations of the
ScrollFeedbackProvider interface, and instead, creating a method for
clients to get a default implementation of the interface. This is
because we think that
- there is not much value for clients to know what kind of feedback is
  being provided on the device
- more work for client to identify and create the right feedback
  provider

Currently, this creator just gives an instance of the Haptic feedback
provider. If/when we get more implementations of the interface, we
can wrap all of those in a single implementation of the interface
and return it from this new creator method.

This allows for a consistent scroll feedback across different
surfaces on the device, while also giving the OEM control of the
device's feedback behavior.

We're also removing the usage of IntDefs for the scroll feedback
params, as these are expected to come from a system generated motion
event, as documented in the interface's Javadoc.

Bug: 299647683
Test: unit tests
Change-Id: I3046da85c62a2c16489103e49d4d928f8d94d68a
parent 07a7e3ed
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment