Reimplement catch RemoteAnimationTarget.rotationChange (#5126)
* Update QuickstepTransitionManager.java Signed-off-by: Pun Butrach <pun.butrach@gmail.com> * Update AbsSwipeUpHandler.java Signed-off-by: Pun Butrach <pun.butrach@gmail.com> --------- Signed-off-by: Pun Butrach <pun.butrach@gmail.com>
This commit is contained in:
1 parent
5421b45235
commit
45c8552319
2 files changed
+18
-8
No files matched your search
@@ -1306,8 +1306,12 @@ 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;
|
||||
// LC: https://github.com/LawnchairLauncher/lawnchair/pull/3776
|
||||
try {
|
||||
if (Math.abs(target.rotationChange) > Math.abs(rotationChange)) {
|
||||
rotationChange = target.rotationChange;
|
||||
}
|
||||
} catch (NoSuchFieldError ignored) {
|
||||
}
|
||||
}
|
||||
return rotationChange;
|
||||
@@ -2206,4 +2210,4 @@ public class QuickstepTransitionManager implements OnDeviceProfileChangeListener
|
||||
stateDepth.setValue(launcher.getDepthController().stateDepth.getValue());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user