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

Commit 90fe8141 authored by Daniel Norman's avatar Daniel Norman
Browse files

feat(expressive): Add more customization options in SliderPreference

These are all to match functionality previously available in
SeekBarPreference to unblock migration to SliderPreference:

- Allows callers to set custom touch and change listeners.
- Allows callers to set icon drawable & content description IDs at
  runtime, needed for non-XML (Catalyst) users of this preference.
- Allows callers to set a state description. This is necessary for
  sliders to share custom state with screen readers.
- Allows callers to access the underlying Slider widget.

Bug: 375168747
Test: used in com.android.settings.accessibility tests
Flag: EXEMPT refactor to unblock migration. This change is a no-op
      for callers that do not use the new methods.
Change-Id: I0ba2d5728983577d334545d9f3819ccffceb0f4c
parent ce2deed9
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