diff options
author | Hongwei Wang <hwwang@google.com> | 2019-11-07 16:00:32 -0800 |
---|---|---|
committer | Hongwei Wang <hwwang@google.com> | 2019-11-08 14:02:01 -0800 |
commit | e75e191b3dfd069b4035b1768d2696f1be37273f (patch) | |
tree | 4c3cdbd1abd61cc453f2a6dbe9c53129d039289a /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | d660afae5700e2890a11573d3ddbd2ae8a3b30fc (diff) |
Fixes regression on preserving PiP position
The reentry fraction of PiP is used to be saved in
ActivityRecord.onConfigurationChanged when activity leaves PiP mode to
fullscreen. With ag/9539033, the pinned stack gets removed ahead of this
configuration change and therefore, there is no bounds to save.
The new approach is to move the saving logic to TaskRecord.reparent,
right before the pinned stack is removed due to reparenting.
Bug: 144099989
Test: atest PinnedStackTests#testEnterPictureInPictureSavePosition
Change-Id: Iceaf7244f16ed0ca1450e3117b85fd6b3d97313c
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions