diff --git a/packages/SystemUI/src/com/android/systemui/bubbles/animation/StackAnimationController.java b/packages/SystemUI/src/com/android/systemui/bubbles/animation/StackAnimationController.java index 2ec09a9dbea24..793f8b9bc05ba 100644 --- a/packages/SystemUI/src/com/android/systemui/bubbles/animation/StackAnimationController.java +++ b/packages/SystemUI/src/com/android/systemui/bubbles/animation/StackAnimationController.java @@ -686,6 +686,10 @@ public class StackAnimationController extends } else { // If there's no other bubbles, and we were in the dismiss target, reset the flag. mWithinDismissTarget = false; + // When all children are removed ensure stack position is sane + setStackPosition(mRestingStackPosition == null + ? getDefaultStartPosition() + : mRestingStackPosition); } }