diff options
| author | 2024-10-01 15:15:50 -0700 | |
|---|---|---|
| committer | 2024-10-03 16:31:16 -0700 | |
| commit | bd5ccf06921b1aa87b88383d7c22bdb2b55ad18f (patch) | |
| tree | 5863a94124fc4774bbefb0302f921de51c702e6a /libs/androidfw/AssetsProvider.cpp | |
| parent | f9c546be4f63466a1dd71ff5e207aff5df142367 (diff) | |
Determine indicator type for input outside of display.
Removes explicit TO_DESKTOP region calculation in favor of using
defaults for inputs outside display bounds. Namely:
- Inputs with x < 0 will return a TO_SPLIT_LEFT indicator.
- Inputs with x > display width will return TO_SPLIT_RIGHT indicator.
- Inputs anywhere else not in an explicitly defined region will default
to NO_INDICATOR for freeform task drags and TO_DESKTOP for all others.
- Fullscreen region is updated to have the top be Short.MIN_VALUE to
serve as an arbitrarily low number.
This fixes an issue where certain transitions could crash when receiving
input outside of display bounds.
Indicator test is updated accordingly.
Fix: 370613574
Test: Manual
Flag: EXEMPT bug fix
Change-Id: I5ad1aceab557f4546c68e841e5a8998b834143c6
Diffstat (limited to 'libs/androidfw/AssetsProvider.cpp')
0 files changed, 0 insertions, 0 deletions