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

Unverified Commit 8a627e1b authored by Dhina17's avatar Dhina17 Committed by Michael Bestas
Browse files

SystemUI: Fix system animation disable checks

Settings sets the animator_duration_scale value to a float value of 0.0.
Getting its value as a string returns '0.0' not '0'.
So the check is broken here.

Because of this, UnlockedScreenOffAnimationController tries to
start the AOD screen animation even if the system animation disabled.
It makes the AOD screen goes black or just status bar visible due to the
animation flow messed up.
It's even worse and clearly noticeable when screen lock is set to none.

Test:
1. Set screen lock to 'None'
2. Turn off system animations in accessibility settings.
3. Enable AOD.
4. Turn off screen via power button.
5. AOD screen is visible correctly

Change-Id: Icc3753c8cb462c1233b418095e4129eb992c1f9c
parent 90a72d39
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