diff options
| author | 2018-05-08 05:52:36 +0000 | |
|---|---|---|
| committer | 2018-05-08 05:52:36 +0000 | |
| commit | 1b5e2d8b3e9694a809433ecc1b40f266eea9349d (patch) | |
| tree | 1c430df10dbc496c9aa42f1d68884846c65c9b99 | |
| parent | f687efc4553658867998c9f9fa072b3baad6385b (diff) | |
| parent | c445dcc50526065a76e97e64a0ca54778d8dde48 (diff) | |
Merge "AOD padding animation should match slice" into pi-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java index 7370c4c1c0d1..5deebffc4778 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/stack/NotificationStackScrollLayout.java @@ -3331,8 +3331,16 @@ public class NotificationStackScrollLayout extends ViewGroup private void generateTopPaddingEvent() { if (mTopPaddingNeedsAnimation) { - mAnimationEvents.add( - new AnimationEvent(null, AnimationEvent.ANIMATION_TYPE_TOP_PADDING_CHANGED)); + AnimationEvent event; + if (mAmbientState.isDark()) { + event = new AnimationEvent(null /* view */, + AnimationEvent.ANIMATION_TYPE_TOP_PADDING_CHANGED, + KeyguardSliceView.DEFAULT_ANIM_DURATION); + } else { + event = new AnimationEvent(null /* view */, + AnimationEvent.ANIMATION_TYPE_TOP_PADDING_CHANGED); + } + mAnimationEvents.add(event); } mTopPaddingNeedsAnimation = false; } |