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

Skip to content
Commit abf87cf3 authored by Peter Kalauskas's avatar Peter Kalauskas
Browse files

Use PropertyAnimator for CUJ_SCREEN_OFF_SHOW_AOD

Previously ViewPropertyAnimator - e.g. View.animate() - and
PropertyAnimator were used at the same time for animations on the same
keyguard view. This made the state less predictable since one might
assume calling View.animate().cancel() would cancel all the
PropertyAnimators too (it does not). Since ViewPropertyAnimator was only
used for animating alpha, simplify things by removing usage of
View.animate() and replacing it with a new PropertyAnimator call for the
View.ALPHA property.

Also,

 - Mark KeyguardUserSwitcherController as deprecated

 - Throw IllegalArgumentException if KeyguardStatusView#animate() is
   called on a debuggable build

Test: capture perfetto trace while turning screen off
Test: turn screen off while on lock screen, observe that the fade
      and translation animations remain unchanged
from home screen
Bug: 262705829

Change-Id: I72d8f3986422e3c71a6f91b94e5692e929867737
parent 857b09eb
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