From 9401591b44cd8f7959bd337d43675fe803163d3f Mon Sep 17 00:00:00 2001 From: Selim Cinek Date: Thu, 25 Jun 2020 19:06:38 -0700 Subject: [PATCH] Added Panel animation when media disappears from the expanded qs Previously there was no animation. This is not perfect yet, but we at least animate the quick settings. Animating the carousel will require significantly more work and will be tackled in a later release. Fixes: 158445487 Test: add media, kill in when expanded Change-Id: I537d366e2ec18c4eb082a1ac848890a57d7f1a04 --- .../src/com/android/systemui/qs/QSContainerImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/qs/QSContainerImpl.java b/packages/SystemUI/src/com/android/systemui/qs/QSContainerImpl.java index 6b12e478f627c..eba4465018abe 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/QSContainerImpl.java +++ b/packages/SystemUI/src/com/android/systemui/qs/QSContainerImpl.java @@ -96,6 +96,11 @@ public class QSContainerImpl extends FrameLayout { mAnimateBottomOnNextLayout = true; } }); + mQSPanel.setMediaVisibilityChangedListener((visible) -> { + if (mQSPanel.isShown()) { + mAnimateBottomOnNextLayout = true; + } + }); setImportantForAccessibility(IMPORTANT_FOR_ACCESSIBILITY_NO);