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

Commit d7cf20f7 authored by Anton Potapov's avatar Anton Potapov
Browse files

Simplify slider animation code and reduce spring stiffness

That code was there to address that the Volume Dialog and Volume Slider
handle immediate volume state differently. Volume Dialog used to lack
any immediate state and relied on the Slider to hold it for a smoother
touch experience. Not it has this state in the View Model which allows
me to simplify the Composable and make a smoother animation when the
user holds a physical button

Flag: com.android.systemui.volume_redesign
Fixes: 398303967
Test: atest VolumeDialogScreenshotTest
Test: atest VolumePanelScreenshotTest
Test: manual on the foldable. Adjust volume with touch and physical
buttons

Change-Id: I80957ed57b08096c0be40f63c19d79be6246243d
parent 1760acbd
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