diff options
| author | 2021-01-29 20:51:34 -0600 | |
|---|---|---|
| committer | 2021-01-29 20:51:34 -0600 | |
| commit | 3a5f6c0acc686e7d851a5682550f28a02c6acd66 (patch) | |
| tree | f4a265976a8c4373fdb90b37444fe68ddf98db1f | |
| parent | 8f046c76d7a93e8b343f65ccd480fb065e2e50e2 (diff) | |
Skip reorder animation while collapsing
Fixes: 178499353
Test: add new bubble while expanded, then collapse
=> collapse animation runs okay
Change-Id: Ieca5ebc4d799ce081794620928fa90e914c30dfc
| -rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java index fac368677d12..2ad29e99de92 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/BubbleStackView.java @@ -1475,6 +1475,9 @@ public class BubbleStackView extends FrameLayout * Update bubble order and pointer position. */ public void updateBubbleOrder(List<Bubble> bubbles) { + if (isExpansionAnimating()) { + return; + } final Runnable reorder = () -> { for (int i = 0; i < bubbles.size(); i++) { Bubble bubble = bubbles.get(i); |