diff options
author | jorgegil@google.com <jorgegil@google.com> | 2020-12-15 15:02:06 -0800 |
---|---|---|
committer | jorgegil@google.com <jorgegil@google.com> | 2020-12-15 15:12:03 -0800 |
commit | b630bb28021e8e1b2ee3f47d8165de9d80ab56f1 (patch) | |
tree | 7d8c7570c1feaecb9c33243acfc6768f7ec34574 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 73cc15b505a859d04cd0c328f3787500c1acaf14 (diff) |
Prevent duplicate call to update movement bounds on rotation
When rotating the display while in PIP mode, there's 1 call
to reset the shelf offset back to zero which triggers a call
to PipController.updateMovementBounds(fromShelfAdj=true).
Then, another call is made immediately to
PipController.updateMovementBounds(fromRotation=true).
While both are useful when called independently, we now
avoid calling the first on rotation, otherwise it'll try to
offset the pre-rotation PIP bounds and use those bounds as
the post-rotation bounds instead of calculating the new bounds
using the rotated display and the previous snap fraction.
Bug: 174669093
Test: PIP position is preserved when rotating the home screen
Change-Id: I071ace219bd26a5c8078b60c77a8b2442470305c
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions