OSDN Git Service

Don't animate clock when turning screen off.
authorRobert Snoeberger <snoeberger@google.com>
Fri, 19 Jul 2019 20:35:35 +0000 (16:35 -0400)
committerRobert Snoeberger <snoeberger@google.com>
Mon, 22 Jul 2019 20:36:03 +0000 (16:36 -0400)
commitdc8fee7ea1f0f46cd49195846600c4a4da0d0d14
treeba51fc8b7fbb395699decf7bd910d56ed5ceef1c
parent32cc70651986a3e08fa76a92dec8e3e84c1e1fa8
Don't animate clock when turning screen off.

This change stops the animation because there isn't a
transition from the no-header state to the music header
state when turning the screen off (to AOD). Since there
isn't a transition, there isn't an animation.

This assumes that there isn't a transition from unlocked to
lock screen. If there is, then there would be an animation
of the music going away while arriving at the lock screen.

Fixes: 137383007
Test: Checked repro steps in bug, clock doesn't animate.
Test: Also checked repro steps when audio is paused, clock doesn't
animate.
Test: atest KeyguardSliceProviderTest.java

Change-Id: If39777340b72bc623d6690bc4f784c7f5c26ea8d
packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitch.java
packages/SystemUI/src/com/android/keyguard/KeyguardSliceView.java
packages/SystemUI/src/com/android/systemui/keyguard/KeyguardSliceProvider.java
packages/SystemUI/tests/src/com/android/systemui/keyguard/KeyguardSliceProviderTest.java