Task: Don't set crop for Organized surfaces.
Currently we check mCreatedByOrganizer so we don't set them on split-screen TaskRoots. We also don't want to set the crop from Framework in PIP as the SysUI implementation needs to synchronize it with animation frames. Bug: 150810705 Test: Resize pip. No weird cropping. Change-Id: Idaaed49b03bd7d2ccf93998708b7b5a98a10a362
This commit is contained in:
committed by
Wale Ogunwale
parent
2162a2f2eb
commit
1530eee0f3
@@ -2013,7 +2013,7 @@ class Task extends WindowContainer<WindowContainer> {
|
||||
}
|
||||
|
||||
void updateSurfaceSize(SurfaceControl.Transaction transaction) {
|
||||
if (mSurfaceControl == null || mCreatedByOrganizer) {
|
||||
if (mSurfaceControl == null || isOrganized()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user