summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2024-02-09 16:22:55 -0800
committer Mady Mellor <madym@google.com> 2024-02-09 17:14:30 -0800
commit3ac5d4e8066c88d437a188b1b02f20f7c2c7c97d (patch)
tree1fd7c5a9d120ad531c26893af4f21546fc07f477 /libs/androidfw/StringPool.cpp
parent9a9bb3808e5f14df1f23ec6495f3b848393afcdb (diff)
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions