Reset pinch gesture on apps without seamless resize
This callback is normally applied in the applyFinishBoundsResize, which is not being used in case of apps not supporting seamless resize. Bug: 277677631 Test: http://recall/-/ekEuGtt9d9HWqkUtAzpHx8/dGjKDuKG30t3JPTVsMbHwq Test: manually, with ApiDemos and Maps - able to resize on every pinch Change-Id: I347cdc9aee6e9b818e93b48d500427b01860d2af
This commit is contained in:
@@ -1532,6 +1532,9 @@ public class PipTaskOrganizer implements ShellTaskOrganizer.TaskListener,
|
||||
if (snapshotSurface != null) {
|
||||
mSyncTransactionQueue.queue(wct);
|
||||
mSyncTransactionQueue.runInSync(t -> {
|
||||
// reset the pinch gesture
|
||||
maybePerformFinishResizeCallback();
|
||||
|
||||
// Scale the snapshot from its pre-resize bounds to the post-resize bounds.
|
||||
mSurfaceTransactionHelper.scale(t, snapshotSurface, preResizeBounds,
|
||||
snapshotDest);
|
||||
|
||||
Reference in New Issue
Block a user