Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3ac5d4e8 authored by Mady Mellor's avatar Mady Mellor
Browse files

Fix bubbles being on the wrong side after fold -> unfold

When bubbles are on the right hand edge of the device before unfolding
the position after unfolding would be on the left instead of the
right.

This was happening because the resting stack position is based in
the previous bounds, not the new ones.

To fix this, when the bounds change in BubblePositioner, the resting
stack position can be saved as a relative stack position using the
previous bounds and then restored using the new bounds. This converts
it to the correct spot on screen.

Test: manual - have bubbles on right side of fold phone, unfold
             => observe they are still on the right
             - check bubble position after orientation changes
Test: atest BubblePositionerTest
Bug: 256993976
Flag NONE; bug fix

Change-Id: Id515efa1c2aa32942e6d2eaffe69aa69f40bf5ca
parent 9a9bb380
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment