Fix issue with system gesture areas being too large
- Currently, SystemGesturesPointerEventListener config change is only
called when initializing and if the overlays change, which causes
the swipe threshold to be adjusted for the display cutout touchable
region in the other orientations as well.
In addition, the context used to pull the status bar height is not
updated on config changes which results the portrait status bar
height to be used for landscape gesture recognition as well (the
same height is used for both status and nav bar thresholds).
Together, these two issues make the swipe area almost 3x larger, which
conflicts with immersive games. Instead, we should load the right
status bar height based on the current orientation, and also
update the thresholds when the display info changes.
Bug: 189220056
Test: Enable a display cutout on the device, open a game and try to
swipe up near the edge
Change-Id: Ic573da624756768f8b7b600831eb0b7964720760
2 files changed