diff options
author | 2025-03-24 10:29:27 +0800 | |
---|---|---|
committer | 2025-03-24 10:29:27 +0800 | |
commit | 960df119c538ebd94b7e2de6c42029bf684aa3b3 (patch) | |
tree | 43af0b90f036c9c63e4552f7df21b1410750268d /libs | |
parent | 15cde45d3ed3ece5b055d96710ba4720bf503537 (diff) |
Use crop method that allows invalid rect
Restore to be the same as legacy WindowAnimationSpec that
uses setWindowCrop as well. In case the animation's
transform.getClipRect causes to an invalid rect. And setCrop
will throw exception for that. But it should be fine to set
invalid rect as clearing crop.
Bug: 400316924
Flag: EXEMPT bugfix
Test: Use makeClipRevealAnimation with invalid rect to launch app
Change-Id: I8987d699f79af50f70cee545f90efb37c9f3b268
Diffstat (limited to 'libs')
-rw-r--r-- | libs/WindowManager/Shell/src/com/android/wm/shell/transition/DefaultSurfaceAnimator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/WindowManager/Shell/src/com/android/wm/shell/transition/DefaultSurfaceAnimator.java b/libs/WindowManager/Shell/src/com/android/wm/shell/transition/DefaultSurfaceAnimator.java index bff08ba6d88f..3240cbb779c6 100644 --- a/libs/WindowManager/Shell/src/com/android/wm/shell/transition/DefaultSurfaceAnimator.java +++ b/libs/WindowManager/Shell/src/com/android/wm/shell/transition/DefaultSurfaceAnimator.java @@ -169,7 +169,7 @@ public class DefaultSurfaceAnimator { needCrop = true; } if (needCrop) { - t.setCrop(leash, mAnimClipRect); + t.setWindowCrop(leash, mAnimClipRect); } } } |