summaryrefslogtreecommitdiff
path: root/libs/input/PointerController.cpp
diff options
context:
space:
mode:
author Cosmin Băieș <cosminbaies@google.com> 2023-09-01 17:44:03 +0200
committer Cosmin Băieș <cosminbaies@google.com> 2023-09-05 12:49:33 +0200
commita4229cc58c6ef8d8dd9cd64c3aba73209edf7196 (patch)
tree1d8e399fe0be488c1bec00ac723f39d8e335e4df /libs/input/PointerController.cpp
parent5d425594bbe4f68bb866936b4d95e3445b1eef70 (diff)
Fix IME hidden nav bar bottom insets
In some apps, when the content would fill the screen, with the code path exercised for hiding the IME navigation bar and with the IME in floating mode, a larger bottom inset size would be sent to the app. This is due to an older assumption in DisplayPolicy#getImeSourceFrameProvider that is no longer applicable now that we have the IME navigation bar in the IME process. This also fixes DisplayPolicyTests testImeMinimalSourceFrame and testImeInsetsGivenContentFrame which were setting values on displayInfo but not using these consistently, which would sometimes conflict with the real display height and cause the test to wrongly pass. Test: install Gboard canary, open any app with a large scroll view (e.g. Chrome omnibox), launch Gboard in floating mode, observe how app content is displayed around the bottom of the screen (not cut off) Bug: 298162496 Change-Id: Ibda9e18182cea0860d88b43fde4579810b89463b
Diffstat (limited to 'libs/input/PointerController.cpp')
0 files changed, 0 insertions, 0 deletions