Catch RemoteAnimationTarget.rotationChange (#3776)

This commit is contained in:
Goooler authored and GitHub committed 2023-11-27 10:42:32 +08:00
1 parent 5df11142ea
commit 2c8539c8f0
2 files changed
+12 -5

No files matched your search

@@ -1273,8 +1273,11 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
private static int getRotationChange(RemoteAnimationTarget[] appTargets) {
int rotationChange = 0;
for (RemoteAnimationTarget target : appTargets) {
if (Math.abs(target.rotationChange) > Math.abs(rotationChange)) {
rotationChange = target.rotationChange;
try {
if (Math.abs(target.rotationChange) > Math.abs(rotationChange)) {
rotationChange = target.rotationChange;
}
} catch (NoSuchFieldError ignored) {
}
}
return rotationChange;