summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Mady Mellor <madym@google.com> 2023-08-18 15:41:31 -0700
committer Mady Mellor <madym@google.com> 2023-08-22 08:49:40 -0700
commit37533d287801d5c33696a7a785ad4fa1c801955d (patch)
treed447414f02eec0a0e50682102342040334b0e082 /libs/input/PointerController.cpp
parent250f036d70c0ae92a1c39e6c1f3c8d25cc18fdce (diff)
Modify the default start position of app bubbles on tablet
It's a bit tricky to pipe the current top bubble through all the places we getDefaultPosition / getRestingPosition / isStackOnLeft. These are used by Stack/ExpandedAnimationControllers when the views are initialized, before we know which bubble is getting added. So instead of piping that info to those methods, I'm overriding that info when an app bubble is added (and the resting position hasn't been set previously). Test: atest BubblePositionerTest BubbleDataTest Test: manual - reboot the device so we don't have a previous resting location for bubbles - get an app bubble => observe in LTR the app bubble appears on the right => observe in RTL the app bubble appears on the left - test with a normal chat bubble and it should be the opposite (left in RTL, right in RTL). Bug: 283910436 Change-Id: I4d32608dfd726384237e3963d469a4ad4db1e43d
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions