summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Robert Horvath <robhor@google.com> 2022-04-12 18:53:24 +0200
committer Robert Horvath <robhor@google.com> 2022-04-12 20:21:22 +0200
commit3d0f6d2a5ce6a0e7ae48f638a78703313536068b (patch)
tree8ea4ae701076e05c57f85fd1b49773f2f73dfce6 /cmds/bootanimation/BootAnimation.cpp
parent6474fe47dd435c1d5a9b554b3d1ce586d0ce3dc0 (diff)
Improve handling of TV PiPs bigger than movement bounds
For very tall/wide expanded PiPs, the positioning algorithm considered the anchor position as invalid, as it crossed the movement bounds. It assumed that if no free valid position is found the PiP must be stashed and there exist keep clear areas overlapping the unstash position that caused that stashing. But in the case of these big PiPs there were no overlapping keep clear areas, resulting in a NPE. This change improves handling of oversize PiPs, allowing the anchor position to cross movement bounds without stashing, and improves null safety when searching for the stash position. Bug: 228948019 Test: atest TvPipKeepClearAlgorithmTest Change-Id: I6a7c6c316d03ca8902b9cfb1e0c4abcb873eff18
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions