Reset stack position when all the bubbles are removed

Test: manual
1. have stack on right side of screen
2. dismiss the stack
3. get a new bubble
=> observe flyout animates from correct side of bubble

Bug: 145212704
Change-Id: Ia39ead10a8562a550a0eb069613f071ad53cd253
This commit is contained in:
Mady Mellor
2019-11-18 15:06:44 -08:00
parent 2e1da35b3b
commit d6edbca410

View File

@@ -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);
}
}