summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2022-05-20 22:12:33 +0000
committer Mady Mellor <madym@google.com> 2022-05-20 22:37:24 +0000
commitab3b6083130067e94c13677b658a31bfef0a0a60 (patch)
tree6f14ff509f05b3ea2a916c6e14ee6da5a415b0fe /libs/androidfw/StringPool.cpp
parent2e16265eee91cced844b090733d48d1c49b6b124 (diff)
Fix an issue where the start position of the stack is wrong in RTL
In RTL, when the stack shown for the first time with user education, the stack would be positioned offscreen. This is because we were incorrectly passing the whole screen size in getDefaultStartPosition() This would work fine when the stack starts on the left, but not in RTL when it starts on the right and the size of the stack needs to be subtracted. To fix this I moved over getAllowableStackPositionRegion into BubblePositioner and use that when retrieving the starting position. Test: manual - be in RTL, show user education, observe that the stack is fully on screen as expected. Also check in LTR. Bug: 233402922 Change-Id: Ib8ad2a289f373fdc1c61527c47793461fc34d929
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions